{"_id":"@bubojs/uploader-aws-s3","_rev":"10-445165a4397cd1e89a63cb977e32dedc","name":"@bubojs/uploader-aws-s3","dist-tags":{"dev":"1.0.0-dev.461edac08a70deeb5d4a137055080f2d7d93eff0","latest":"1.0.0"},"versions":{"0.1.0-dev.c0c27096963d0ea96c5b9e1f18926e10f6384120":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.c0c27096963d0ea96c5b9e1f18926e10f6384120","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"author":{"name":"Owlie"},"license":"MIT","module":"Esnext","devDependencies":{"@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.0.4","typescript":"^4.7.4"},"gitHead":"c0c27096963d0ea96c5b9e1f18926e10f6384120","description":"[Back To Main Menu](../../../README.md#validateur-de-route)","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.c0c27096963d0ea96c5b9e1f18926e10f6384120","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-BrLpPn0GBGBf9rXnFsEAdvkrFXd714wX8PVtMDzmuoMfLZ9qFMbJ3EYNC3xz86/7tZAaCukTdqmzANhfgt8Pkg==","shasum":"ba35d04731ef926a9abf2fb533cea57ddc60ff0c","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.c0c27096963d0ea96c5b9e1f18926e10f6384120.tgz","fileCount":17,"unpackedSize":16084,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWfMzk8XopfzO439tJFRkhTQYsWWvaWSHKiNZWS/BVFAiEAlhx/gCrnq26Ykvkj6GkCbl44X0tn+IF7Fal8SWFEJEA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2TFTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpC0BAAkQxBwQwthCAUL7m2mVOtQNqidYUuDArS8ahMeLmi6QMcsleF\r\ng5HWV3dvspLvFMk/L5/G8CheVpDh+soT+0HKVHzq03Xdoglm/nNXwneYLo3l\r\n5z9JsuPm1J5Qxp1WZmFDQXlYpNGcHxNefUqcnfELlrHswDyrM4eYF1WxHfQZ\r\n7vgvLBCQudvEQzgBQA2nHQGzhnDFTxQnqyIBaS9xj7XNuDkKFVUEoniWx4UY\r\nwlf9HiBUjVOmFvag4P2SVu9W3wAjjN8RJvwilFcfJ8mGB2nAncpZ7q7K8yar\r\noFVEq/13g+szaIaeQT9MDV+/dMVMe9uLH3oKlC+kOZ2FsOgtozTldgkO4y0d\r\nWjX+QrfYNHNd7fLv09Yh9JQw1TUZZXR+OAUrGjxBRpPbcLhA/+i1LCK5azWL\r\nNdkIkrrbbnHUFOgjBncSYLFAM1m6kTB8XIxRbL/d/CB6tzqYLMbqlXHi4OpK\r\neO5ZtcpHRLVweJhkQNAuanKMqVQKu4mtIWnewszfJjFb9L8ttKtEpt+Ow3Cf\r\n+v7A5gKzq7vopcc7hDMZ9d0FbXHV6x/5/U+TogFciil49H5hJwv6WsFXo852\r\ndUUccsQa3MwQsVQUbBsh1AMUbKYqx8dLlU2viIHWAuLvQTSP7YTSa4/gtKz7\r\nvktJlOAeAxg8LL3Mr3aXUS8XOb3+uYeX9qs=\r\n=dDr5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.c0c27096963d0ea96c5b9e1f18926e10f6384120_1675178323274_0.3782252587991157"},"_hasShrinkwrap":false},"0.1.0-dev.4d61f2dc3f032a3bd8cdfc494762c89f48e90de9":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.4d61f2dc3f032a3bd8cdfc494762c89f48e90de9","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"author":{"name":"Owlie"},"license":"MIT","module":"Esnext","devDependencies":{"@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.0.4","typescript":"^4.7.4"},"readme":"# Amazon S3\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n## Storage Instance\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n## Example of a controller using the uploader\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n### buildUploadEndpoint\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n### buildDownloadEndpoint\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n### buildDeleteEndpoint\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n","readmeFilename":"README.md","gitHead":"4d61f2dc3f032a3bd8cdfc494762c89f48e90de9","description":"[Back To Main Menu](../../../README.md#files-managers)","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.4d61f2dc3f032a3bd8cdfc494762c89f48e90de9","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-RB5FF6GOhTsyI2neOqu5tWJt0XQbA9pHO3DDm4VsKNi3x+JIPLB77B7NPjZ6eENG04IBFOCi6ms31ANBFkx5Xg==","shasum":"84d9114ab029b2b5d1d0e4579512a4422fb25c40","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.4d61f2dc3f032a3bd8cdfc494762c89f48e90de9.tgz","fileCount":17,"unpackedSize":15951,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICfwCD2KrRYbeBeZv9I8af6DGfbvzplPJPIGnq5a/os7AiEAluwfXmx8glJ1UeGsHi5tKVFxx0o6u8RaixZ+zUJuZ9s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5nZ7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonsBAAhpjitAk59JfI6jGH3KLM2M6F7KZyNJ5GYew/mJgLKqOOj3py\r\n5Zf8bFdv6wBjeKkMRSOjt9RKvjSycFqTP35UFsOG1vp92zAhQsngwS9qArih\r\nHSStwnOtb144DdUKDtlgR4z4T7zvABhBQV7sJDPSlfIwfvU9geeAdrB5P0pZ\r\nE6k5j1YtSj939gYxSxLE0z870+XfosMvVLZ8PjXr4feM5Pa/ncWQS2XQryRD\r\n4uDNSNZUD8Q9+tAHa8eIhJyUv444+549c+zCWnZRYXUX6aAwprHMUbeyTZPr\r\noJScNAGDpMSs6r0bT8jgjKJ28ErPLAu6eQQXD2pKZJxRVEa5B6/LEuDP3nQa\r\n0z6emt0zLtAjlagCOrYtUkYqlV7VwtVcaAQbNDkpyDwpizMEIi4wMXmCnxM+\r\nOYWYDO+wrBZYyPcj7m3Bgyyol0tDWLASXVpFHkPodSvPb8vOKRTFUsQfez5M\r\n+B+L6pqJnTCbZ2vpqRG3KJcbWjVziczHv0+bzNfAxAQrnKKKqIPFcx0i3Xg8\r\nGgb9pTv1Hn6lwvi65M/4mH1Ee8v+V6l9Yaxp0aDZMgi3XwGyAdTEn2oP7jZc\r\nHVldkZWFtRcdFnwDXW+Arc5/N0o2gsqYs++vqakNWwVlmVT1fBZylNLhLfKz\r\nsqS2EhGJKLzqmFhxKuKMaaYxYZRKmwFpAH4=\r\n=p0eT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.4d61f2dc3f032a3bd8cdfc494762c89f48e90de9_1676047995466_0.7157293564323222"},"_hasShrinkwrap":false},"0.1.0-dev.b1dc82309aefa814986773b5e983afdf55bafd89":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.b1dc82309aefa814986773b5e983afdf55bafd89","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"author":{"name":"Owlie"},"license":"MIT","module":"Esnext","devDependencies":{"@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.0.4","typescript":"^4.7.4"},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/owliehq/buboJS/tree/develop\">\n    <img src=\"https://owlie.xyz/bubo/bubo-js.png\">\n  </a>\n</p>\n\n## Amazon S3 ##\n\n[![uploader s3](https://img.shields.io/npm/v/@bubojs/uploader-aws-s3?label=uploader-aws-s3)](https://www.npmjs.com/package/@bubojs/uploader-aws-s3)\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n### Storage Instance ###\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n### Example of a controller using the uploader ###\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n#### buildUploadEndpoint ####\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n#### buildDownloadEndpoint ####\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n#### buildDeleteEndpoint ####\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n\n## Editor ##\n\n<p>\n  <a href=\"https://www.owlie.xyz\">\n    <img style=\"border-radius:50%\" width=\"100\" height=\"100\" src=\"https://www.owlie.xyz/bubo/owlielogo.png\">\n  </a>\n</p>\n","readmeFilename":"README.md","gitHead":"b1dc82309aefa814986773b5e983afdf55bafd89","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.b1dc82309aefa814986773b5e983afdf55bafd89","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-c/SK92w+NXcKULdxebjSxumP5ICUX4ph+WdUw4OtstG/3J33q8w5omoJAM3gkwH7Xdyt67xaih9eADHmtzS3yQ==","shasum":"b332a998b28937f52a709a02d70bdeeb469edcc9","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.b1dc82309aefa814986773b5e983afdf55bafd89.tgz","fileCount":17,"unpackedSize":16449,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLGIQi4ZynIQAJEVG3Ez1rH9r1h/aj+EDo6F0lMKN1FQIgMvyhVADLnENcCFByAWDiSV4yTxJYO7HfScJrSw1VPoU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/OsfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUqBAAghYiknqIGBk4UHJnzUwxnHdFyfzSgIRZLlwDIXQ1mMNvnPEq\r\no7KgWLvocervxfJcjM3YPUVN0tbgtwCn2KUBFlb+u1qFJzCtXSgKR0bUGfFB\r\nsVrHMflPcvEr/Q/GX9wG9vbU7g0FUpKv55hpvKeokolsn9MoN1xCeznzFLfo\r\nq1s5CEoYIJnvIfCMCC02BQJbyojUuHDfi9n27eHSB9XwyJvXpqj60T33o3wl\r\ng7irD5m35iWVFbNa2r805QOGRDRGL0Stn74+YvEfsprjulFo3u5NCAIBMyLA\r\n4tHIbWHNqOupz4bRY79/d6gy8fwo5TYf8YX2jhMFt4E1NtY+BR8EdK2bIY4v\r\nnGD6KG+TJ8Pp03VvlkWj+0b8rOWiYl2EWxzKuZiiCgqzq13HJ/5U+GKfpD5R\r\nrskojbS5yOPzSYyJkk3y5lGK5VzLNqVrGUklbthsOJg93eFwHXSkHk62LM2e\r\nZstDwqexFlJC7t/q1SRDYDa3z3rrIxFU9jlt1Vs4HzWoe+0I6QJkzsXt5Jwr\r\n/n4QHpIUqwFNv+5aalaQwkCXuePPpknN4WLw4XGOoNWYXCVpkw2s/4aFENdF\r\nNDqq1lwfb3Sl81dy8MPNr0zqVutxmDE8IDu3OP6ZFB9fgoGFngnrWtZHyMBu\r\nowxkCSXo5+KDmkSXgSzMsuRZUdswNMoexV0=\r\n=Wo6l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.b1dc82309aefa814986773b5e983afdf55bafd89_1677519647515_0.3390789316176097"},"_hasShrinkwrap":false},"0.1.0-dev.1ca59e9f74645b102b9e9cace755e56878721920":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.1ca59e9f74645b102b9e9cace755e56878721920","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"author":{"name":"Owlie"},"license":"MIT","module":"Esnext","devDependencies":{"@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.1.1","typescript":"^4.7.4"},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/owliehq/buboJS/tree/develop\">\n    <img src=\"https://owlie.xyz/bubo/bubo-js.png\">\n  </a>\n</p>\n\n## Amazon S3 ##\n\n[![uploader s3](https://img.shields.io/npm/v/@bubojs/uploader-aws-s3?label=uploader-aws-s3)](https://www.npmjs.com/package/@bubojs/uploader-aws-s3)\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n### Storage Instance ###\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n### Example of a controller using the uploader ###\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n#### buildUploadEndpoint ####\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n#### buildDownloadEndpoint ####\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n#### buildDeleteEndpoint ####\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n\n## Editor ##\n\n<p>\n  <a href=\"https://www.owlie.xyz\">\n    <img style=\"border-radius:50%\" width=\"100\" height=\"100\" src=\"https://www.owlie.xyz/bubo/owlielogo.png\">\n  </a>\n</p>\n","readmeFilename":"README.md","gitHead":"1ca59e9f74645b102b9e9cace755e56878721920","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.1ca59e9f74645b102b9e9cace755e56878721920","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-nSQya8TSGDcH2N5LNdixjqsXP7qJSp4UvDp9qqyGq6TBOkgnQ+/Wj7EUPeNGEWH89udLqEXyrO+M5RjIWKfLpw==","shasum":"a207efb7382f2c4c7e37b851ea860494e8d1d040","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.1ca59e9f74645b102b9e9cace755e56878721920.tgz","fileCount":17,"unpackedSize":16449,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCC4oR3UR1PCuQMly5DyZdtAr6f9Z1bkKHIrjNGw0QnwIhAIhAsyHUEFq3pFmsQGqpEBe8SH1dwC8mNkkVri64v2qT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/gmoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpicQ//S21eweOI3NREvA5IK1NgVAgU3Ofz8b9vjBrDH5rx8PQ2mKsa\r\nF+nNXlmpyrSaCayn2n6mSpvb4MqQDJTu2H0cjh6f5eXgn9+vf10P5zoTudon\r\nmwtFKfUsDXsefghh6PXFHLDfg/W6v7UONCxHyy3cozBUlV7T9iyNBjAqgh2/\r\noIRukaMdC93cetrjzcbOIiV22Qs2opU+CoMKyFNuEV33CxxDmIkQ8Nu1c6rG\r\nJK+zwiLeSngAkQjdrRGD/7tCvIP3qc/CAwuT/T+o/sJ88OEsTuqKHkn1gM0I\r\nju7DEVLp2/LInaHBmHDS57AXawWK2TYbh9mGLcsoU/PDmIFXpejNv7Dye7bT\r\nKf11p4wE87tIceSdRoUOK1p+XKz61qNMei2ChlJzuqFgiFD1IQLOeTFRvK0S\r\n5M/CNyL0pKI3+0sgtIyNeVTq/V5WnTNg3yd27lGD57azucZnbKnTP9XvIsVF\r\n3rUVxJni9Gvr+Y7mFkjkXKDNTdS9u8rrzX7eB1/mnJd29Tme68NdnDtL1MZh\r\nz4HkRZqaZ1QUdYwO19Ig9NHEGlN49DelfrY+O6C9Z9MSijSPw7QtPMIRT8dj\r\nHD8zzsiGEkoOuTBpCSAYS5W917IMjOUuFMumLIscvPB98GLRJxyXudjh8ci4\r\ncxeAvDLR5e8shuJ/x5JFg8CtVwgNOUzZW4Y=\r\n=iOOU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.1ca59e9f74645b102b9e9cace755e56878721920_1677593000011_0.5970986580533104"},"_hasShrinkwrap":false},"0.1.0-dev.90b7250275d861177d8483a3c453d0f004f744f2":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.90b7250275d861177d8483a3c453d0f004f744f2","author":{"name":"Owlie"},"license":"MIT","module":"Esnext","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"devDependencies":{"@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.1.1","typescript":"^4.7.4"},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/owliehq/buboJS/tree/develop\">\n    <img src=\"https://owlie.xyz/bubo/bubo-js.png\">\n  </a>\n</p>\n\n## Amazon S3 ##\n\n[![uploader s3](https://img.shields.io/npm/v/@bubojs/uploader-aws-s3?label=uploader-aws-s3)](https://www.npmjs.com/package/@bubojs/uploader-aws-s3)\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n### Storage Instance ###\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n### Example of a controller using the uploader ###\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n#### buildUploadEndpoint ####\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n#### buildDownloadEndpoint ####\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n#### buildDeleteEndpoint ####\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n\n## Editor ##\n\n<p>\n  <a href=\"https://www.owlie.xyz\">\n    <img style=\"border-radius:50%\" width=\"100\" height=\"100\" src=\"https://www.owlie.xyz/bubo/owlielogo.png\">\n  </a>\n</p>\n","readmeFilename":"README.md","gitHead":"90b7250275d861177d8483a3c453d0f004f744f2","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.90b7250275d861177d8483a3c453d0f004f744f2","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-X3Chz6nQCh9w0NhCBqQE4GvIrBSMO1tByEndRYqosCksI3ztCSuoQrPKm8TZSH5EPBBQSeXYFXxhK38o8SmCmA==","shasum":"8ad1c5dd693a9ee3ad59a8700b7dba8c2f5d09dd","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.90b7250275d861177d8483a3c453d0f004f744f2.tgz","fileCount":17,"unpackedSize":16449,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE4a1EcfanIIs8hQOho/VkLPSZP37yjYXHLMS0XQSImsAiABpe3i1HgJcDgZ1cPDEBNuTcho0dnk7+QCItxmkcpNkw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/gqqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreMw/8DtLkI6eEjRuzUJpE0gJECSX9fqpCE8wCS9Fe8e+872qZGboO\r\nIP8dPorqHippeF0zvY8604NPb+SSKGQSSmWF2TaN//zAFCtrS1Hi/7HSf9Ym\r\nsLnDv2JwpGFJLj2iCxcM7itbcTGxtQ9IdM2vJmBE0rkW33tNcqwK/ztqsqlZ\r\nL0NJPxpRPZn9dfyqtatjDgysIVaMtZqwICPNPMgXmA5mh9ISCJnr0S/yjpTY\r\nyo8sEtEEgXvJKaWmqrRHEumhPPFRM7gDSbMIqNjOITfGQRoyxm33uiVRomDr\r\nF8sNFFsFhVRLCX03tFuJxEDMgU+mHj2hCezqw+dY1xr4E/4E/er4djFlH+Vk\r\nzOt2G6MDEEL4GbfO93ZTNDeskXAQMvnOaemDdVJeDSp3O8KhNBoT2/NjJdCB\r\n+T6UO/pvESUP9H2kZmYwjSIW1zo3CXwTMwSGNZ2kE3pKqlXfJKy8zL494mz/\r\nTBSNABW4wHRh4Q0lXojNfqXhpanovKnuD38MYOQXClm1mFIed4hAtv0ATUNq\r\nRxeJdQAOHlUqQYOrWbcNhPGUO+3yiInW53bQCOBm18kvxyMKZYAF7RQd67Ro\r\nZTT1Vte485lOLCLdA0iYME2n9QnHJyhQgqFKgxKB3wrttoaRXfJttdzXhA3I\r\n8w7JNzm0Hz0f/vZ/USeMl1TIJLxLAo2zgs0=\r\n=p7yI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.90b7250275d861177d8483a3c453d0f004f744f2_1677593257960_0.8366609922876544"},"_hasShrinkwrap":false},"0.1.0-dev.755ccf5076dd2073f835e8527908321888efbed8":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.755ccf5076dd2073f835e8527908321888efbed8","author":{"name":"Owlie"},"license":"MIT","module":"Esnext","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"devDependencies":{"@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.1.1","typescript":"^4.7.4"},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/owliehq/buboJS/tree/develop\">\n    <img src=\"https://owlie.xyz/bubo/bubo-js.png\">\n  </a>\n</p>\n\n## Amazon S3 ##\n\n[![uploader s3](https://img.shields.io/npm/v/@bubojs/uploader-aws-s3?label=uploader-aws-s3)](https://www.npmjs.com/package/@bubojs/uploader-aws-s3)\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n### Storage Instance ###\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n### Example of a controller using the uploader ###\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n#### buildUploadEndpoint ####\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n#### buildDownloadEndpoint ####\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n#### buildDeleteEndpoint ####\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n\n## Editor ##\n\n<p>\n  <a href=\"https://www.owlie.xyz\">\n    <img style=\"border-radius:50%\" width=\"100\" height=\"100\" src=\"https://www.owlie.xyz/bubo/owlielogo.png\">\n  </a>\n</p>\n","readmeFilename":"README.md","gitHead":"755ccf5076dd2073f835e8527908321888efbed8","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.755ccf5076dd2073f835e8527908321888efbed8","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-WzXVvGdtfoHnCsl3/oTOHTtxjIVq9TwclQsOyQeQJA5VYdWY5jPWII1zbaokZ51Ecp9QyS0Lt2cq/YkmM5/QJQ==","shasum":"c2b692a2dd6e7183a2688ee17e3e2681b80a3ce9","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.755ccf5076dd2073f835e8527908321888efbed8.tgz","fileCount":17,"unpackedSize":16449,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSBRHlU+8BB+MEMdVLBmH9AL5+auE91/LmfXiPOFyXSAiAwgC6tYvRWnceScPOVF9qkHM9MZEduRljXEog08/dxvA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/jYcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwCA/9F264lpKhXNMKBnlGRWdEKrj+rp16wgv3o+9cc9tdksh81uar\r\nEvxoxNxwSk6t8ul/v6CxjbqR9Xfbr51xVihg2ZXq7M4CGb2/X/h3MbkwjBxi\r\njoA466z3LytWH6a4HqhsSe0bMNiiRaURtrzabzCBO68k1E0ELRcm8TDDGNpx\r\nGNPDgNeTeTWIaRLTL8NZ53WnlMHOSzdwKuOQh/0m9a3SN0VWoepGCl+Oe9oG\r\ns3GEzeHkqsCYN4p9degRiVxFe6MnUiP2okF8EO0xLSSVBgBRbw38y+ROq5+h\r\n+bL1iyQ6Xr0Ti5SVwGpoMVQOVO1V67iuEHrx+R3Mt9LknEks1HbzrD7olyZ6\r\n7bD94mi6Ankj522H6SPYfE78KgqtRaCvmOmi5MEkBKVl31tzk/12zGFwobFs\r\nlGV0x+oWxKTqWGYhG+WoCgMm1wxkGMVdkZjbzIHXHvQYqxnJ779owA82LqOg\r\npRxTN9S6RL8xVt57CAfGjzAWByNnahiJajCMQd038+FIC6S8tQVN+qXXaEE3\r\n/AFdLLIzoY+YUaTfiAbGYABsliiuXEB8zCO5IFVQtmBIWDJnRLD4Gsz8eFyO\r\nJ1gqrAld6t84Go2YwC7TR6VkvXs8avbYp/TAypgHcc20iXOm9fpurwjZVLFt\r\niNTClZD7CJi46073VYgewqEtH2xbtM6kj9s=\r\n=gHzN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.755ccf5076dd2073f835e8527908321888efbed8_1677604380660_0.03383907963016308"},"_hasShrinkwrap":false},"0.1.0-dev.5d17248122556d4c09233c727c15115f980b5b71":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.5d17248122556d4c09233c727c15115f980b5b71","author":{"name":"Owlie"},"license":"MIT","module":"Esnext","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"devDependencies":{"@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.0.7","@semantic-release/npm":"^9.0.2","@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.1.1","typescript":"^4.7.4"},"release":{"branches":["+([0-9])?(.{+([0-9]),x}).x","main"]},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/owliehq/buboJS/tree/develop\">\n    <img src=\"https://owlie.xyz/bubo/bubo-js.png\">\n  </a>\n</p>\n\n## Amazon S3 ##\n\n[![uploader s3](https://img.shields.io/npm/v/@bubojs/uploader-aws-s3?label=uploader-aws-s3)](https://www.npmjs.com/package/@bubojs/uploader-aws-s3)\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n### Storage Instance ###\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n### Example of a controller using the uploader ###\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n#### buildUploadEndpoint ####\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n#### buildDownloadEndpoint ####\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n#### buildDeleteEndpoint ####\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n\n## Editor ##\n\n<p>\n  <a href=\"https://www.owlie.xyz\">\n    <img style=\"border-radius:50%\" width=\"100\" height=\"100\" src=\"https://www.owlie.xyz/bubo/owlielogo.png\">\n  </a>\n</p>\n","readmeFilename":"README.md","gitHead":"5d17248122556d4c09233c727c15115f980b5b71","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.5d17248122556d4c09233c727c15115f980b5b71","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-MeNoamoKWv/ZfJLAFteSlwYG6v2v2NWM9olYg8eUWXfUASfO3uzL9y09xmEMZNwbattPggzrvz6nvdR1VwIsNw==","shasum":"bdc21dfd5126fc1c3eace8c1d68b968b4d7c5299","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.5d17248122556d4c09233c727c15115f980b5b71.tgz","fileCount":17,"unpackedSize":16714,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaew7oNSOckjK10GdkEmH6wMD8zpkJOZDbw86LRX3ekAiEAwg+JvIGu9zQ3xsXLqkWye6ZRbEoewj8xIujAafIdLZI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/18OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUZw/9GCGBS/qpTSLgxx7/pbececivMTJ1/u2hxlkLQBA7Y6mCV2O3\r\n9kps0UJBYETT/eWvGjA5kt7DVBCa9BFWdCPkWGYq6yZUUJc4ZTvZ+Z1JnhWo\r\nVQV3LUoc0vrzpbCnk3XrGp3mEkoVBiBHVSsXHxFK9vBMtd8Qsq3MoQrHkJZy\r\nNSwtpl7GjPDMxftozxsHpSQmYpusF/wAV0A0wozTPpE6kdCPG91ZiPK8Wv20\r\nNdQhTu2uMPz5N0Jc0uvwEMf9puk+AP/nJ6OhxGSCNSgJI7z1YcqeElVNoIfa\r\nEfCj2bhZREHxlKG1BTL9TwVLZv7WypWbB3PwEkJ60HGVh89oC1cdOX0TdsKf\r\nLsUPQFnKI0IlDjPcRdV0rKg86KwTMpqW4Dq8PXJH4J7q6O6KA4hb74uLMoxd\r\n5liaVo/MKuXaK8MivVtg84AudF3wl5tsluOU7ay1opTQOrXk/RiYotqIvZuz\r\nUfBCMSwEl2rpu9fd5VDTdBiSQ26PIFqA5iJa+LtZ/fjKddg38gk2TbcIT9Wv\r\nkfEIHVPnvYIJLuE6cVv2f4X9rkAAvPGRJgXPA5D8Z4Na9NMCPSQ1JMjMkoYv\r\nPTn2AgcYPzI66beLY/0Y2SWHsMZqTgHty915sMlEhFZ3fDuvzGduV75wpWCJ\r\nM6FuDCBsgQBpxdkl1rDcDY4O9cC2j39C7dY=\r\n=ShS1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.5d17248122556d4c09233c727c15115f980b5b71_1677680398276_0.33339940355663433"},"_hasShrinkwrap":false},"0.1.0-dev.3e9609014354a83199a3383c0f1270c370fe5d3b":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.3e9609014354a83199a3383c0f1270c370fe5d3b","author":{"name":"Owlie"},"license":"MIT","module":"Esnext","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"devDependencies":{"@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.0.7","@semantic-release/npm":"^9.0.2","@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.1.1","typescript":"^4.7.4"},"release":{"branches":["+([0-9])?(.{+([0-9]),x}).x","main"]},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/owliehq/buboJS/tree/develop\">\n    <img src=\"https://owlie.xyz/bubo/bubo-js.png\">\n  </a>\n</p>\n\n## Amazon S3 ##\n\n[![uploader s3](https://img.shields.io/npm/v/@bubojs/uploader-aws-s3?label=uploader-aws-s3)](https://www.npmjs.com/package/@bubojs/uploader-aws-s3)\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n### Storage Instance ###\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n### Example of a controller using the uploader ###\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n#### buildUploadEndpoint ####\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n#### buildDownloadEndpoint ####\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n#### buildDeleteEndpoint ####\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n\n## Editor ##\n\n<p>\n  <a href=\"https://www.owlie.xyz\">\n    <img style=\"border-radius:50%\" width=\"100\" height=\"100\" src=\"https://www.owlie.xyz/bubo/owlielogo.png\">\n  </a>\n</p>\n","readmeFilename":"README.md","gitHead":"3e9609014354a83199a3383c0f1270c370fe5d3b","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.3e9609014354a83199a3383c0f1270c370fe5d3b","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-C7MPfmSlxP4prdQjcgHGsXB/FFVOqhmQ9DNO6QPeHmAWS8b5rlV3g7PnRy3/ROfbyltN6H+k3L1qF6MFU5DysQ==","shasum":"8062d4b1443a8d7bd9668d699ab85024b5884b46","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.3e9609014354a83199a3383c0f1270c370fe5d3b.tgz","fileCount":17,"unpackedSize":16714,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGjTO5xGbhGdchSYEeE/qTJzwZxKJJdAvNwLHY3xooJGAiEApFWmCx+fNI3OCntOeVAO0wflUL+T+241xs3zWJyMElY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/3CLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoD5g//QMlKUkrR37qDyP6el6jnu8LxJ3wI4N/u/RTAAH9USzPwvGfO\r\nr5/DrpHXC5a2/7jX+058Bp3CZ8nNtpxPlU+Rbv2qi4ptXKkM3qecbPfuRYil\r\n+gzHY7yY8c/aGo0uc9If6iUCvg23Tnc71Hp3Nu7wtMo9FEF3TY5dqBUDMaja\r\n5EMQATD1kktOcnfKoFPlSnk8E3l5+FA+CVz+TliU0NDF+HpWDKjLx8DXlZNt\r\na+J3aqHqAylWt/x4utih7XYSR4hwZOQpr3IblyB91hyO868y0TG40jfZygRw\r\nEV81IW3OBV0ToCrtK5WPsB6kkLOCPUUQK2VJ01ozon0tbrePEVc4JV8B1Vaq\r\neCfSRN9Hfgg9LGwIVbOczceL0EaqX+CWdLXqlUjS++JiarMTb4ZckzhAywFd\r\nY6V5P8l9X6bh2O8tlO1MZLWp9sx2Oay9nn0Xs+w/JpllW3MlSbyYvSQz4IBV\r\n819jc0/w2u7CVuB9FHz9hfDQ3dAD03Mgcdq0GS2xME3Nk5EtWQ3gI+czzT9t\r\nYzkUIyXKFGQlw7N6IbDzy3Ne3dVs4w1Wj6JvU+vpf2LkwdSWzBhMFuT0ZWRN\r\nleeoC0yoklvAh33tWjQM7kQ4PyKYgML6+VxjfAMpIsnWaLO++nIr70G9DSMf\r\nWzwA9cId8hqAIxWqUiP+4gWGo5shSA/dneE=\r\n=NjNQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.3e9609014354a83199a3383c0f1270c370fe5d3b_1677684875747_0.008304488275986843"},"_hasShrinkwrap":false},"0.1.0-dev.8fecf2f1fb0984c5b454158aaa5f0915119f77e2":{"name":"@bubojs/uploader-aws-s3","version":"0.1.0-dev.8fecf2f1fb0984c5b454158aaa5f0915119f77e2","author":{"name":"Owlie"},"license":"MIT","module":"Esnext","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"devDependencies":{"@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.0.7","@semantic-release/npm":"^9.0.2","@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.1.1","typescript":"^4.7.4"},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/owliehq/buboJS/tree/develop\">\n    <img src=\"https://owlie.xyz/bubo/bubo-js.png\">\n  </a>\n</p>\n\n## Amazon S3 ##\n\n[![uploader s3](https://img.shields.io/npm/v/@bubojs/uploader-aws-s3?label=uploader-aws-s3)](https://www.npmjs.com/package/@bubojs/uploader-aws-s3)\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n### Storage Instance ###\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n### Example of a controller using the uploader ###\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n#### buildUploadEndpoint ####\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n#### buildDownloadEndpoint ####\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n#### buildDeleteEndpoint ####\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n\n## Editor ##\n\n<p>\n  <a href=\"https://www.owlie.xyz\">\n    <img style=\"border-radius:50%\" width=\"100\" height=\"100\" src=\"https://www.owlie.xyz/bubo/owlielogo.png\">\n  </a>\n</p>\n","readmeFilename":"README.md","gitHead":"8fecf2f1fb0984c5b454158aaa5f0915119f77e2","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@0.1.0-dev.8fecf2f1fb0984c5b454158aaa5f0915119f77e2","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-/hMgmVqPKSnYKbLbzv7I4D6lBHgoF2yw2na5V7lYGiECi/y0nmB5SeRp9FMtAE39mm4oRak8x9tBZQUuYM5POg==","shasum":"945aea9bf436ae549fcf0301ac4384b33a64ab22","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-0.1.0-dev.8fecf2f1fb0984c5b454158aaa5f0915119f77e2.tgz","fileCount":17,"unpackedSize":16621,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSxOcnga7UpJwjayxOahyt7+HlpHmeVWyTBocw2T3CJQIhAMTRGMfko3ngg0cDY3bqX4eGOuTbpAjVT5EPqDXCvXDt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/48HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsSQ//a+orvZ9KMwBD5UlCDVGInkUlOBTgDIM0UTyDrBl8AoPTjVv1\r\nI0+kEpa4tHcSaUMiZlMuXkpPNNS0hRs7huorwX8yM5l7561z/9gy7l1giwtM\r\n11NmMoNJ1FgCbM1DQa1CkoIm1rW+8328tvEZNu2wUDiJn4vS0YRU1Bq9ISgQ\r\nr5G1csii7NUZkE7COQ+HdVGZAGp/dKdmpkK7JeFMSn+VPo+4eNl5x6gTTiyY\r\nZBamgJGDfjK8vmoOybc7OwiANnoaERrPPe3ngTOJdY1UoFwz3h6+bA9B6nf7\r\nHw2hbhvW9UGE6N1H9jdU0XuhCam4Z744qwPsiJ3UmjIBvejc/f/jVQzaLtmr\r\ncq67EJKK6tzKsOtjmJp3b9DX4ov4K1LsTFKO9VoA7KVKKuIf5WMHiLyYytox\r\n4JijxJOISWVN245mDM0rJHipDvRfHCLSBdIR92mEF7VD08TmOA15JV4ZIgfg\r\nEsEAP8nnSrqFM4hxmcUrkmwjCk5AeLWCyqhMlIGJgVKUA1mx9OoHWbdPHptM\r\nAnKPpp1jwhpnbtdSamRM79Qv1e2w2DQMjFh2pp2JwLtg1DW4Bb94ZMbtNPXQ\r\niZzz6ldgvlBxD1f6RkfovM9ropi9qNJvuRPw/GKwNSqeo+LtSqT2i27cDmr6\r\nXJA/cmcU85PNeMemt5SOqw4eGcZpbtGjRII=\r\n=CpTO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_0.1.0-dev.8fecf2f1fb0984c5b454158aaa5f0915119f77e2_1677692678898_0.5653317708454517"},"_hasShrinkwrap":false},"1.0.0":{"name":"@bubojs/uploader-aws-s3","version":"1.0.0","author":{"name":"Owlie"},"license":"MIT","module":"Esnext","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"devDependencies":{"@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.0.7","@semantic-release/npm":"^9.0.2","@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.1.1","typescript":"^4.7.4"},"gitHead":"d08213f1222d61cbd18a001c176a66cc7a6f6708","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@1.0.0","_nodeVersion":"18.14.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-CbuybSbnZrOg3ckE+qIfgNkTII626/9NHWasuTyobquxsrCuG2YTBNEvVFsTpE08BOshlrTZZ1WASiXER27ALQ==","shasum":"b6607b510b0d875e4c617eff94f328b73b7fc97f","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-1.0.0.tgz","fileCount":17,"unpackedSize":16576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH1MnAd32ig+euPYzrRpnUhJq7PKAzefYXYXGzqHnrhoCIBTxe4jdExwLqpj1Qq+yWLeNL6tDltLlx+by/S4oEF+Q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/48WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPfA/9EGVobfGIgXtCoqXDBYd7pp8zOMglO9Dxo/N0Q7lvdAz3EDdB\r\neqYUBMXtcyNafXr1hqxuj/FMynolmrMI6+Sr4uaskTt/e1h2i6o7+6lpE5Pi\r\nnEeso2l/e9o7JrTQb5wwj4gBB7EnfVaFDqhfNS+9AQf60SxzCH2QaNFEd9Qd\r\nzFYtCqWYtz2oHQ2tNnNSwEpargTEaTb0Fg7UGh+YShLutXFiTOjxZuVcpDJX\r\nGdikDNnUlhYdpNVbqqotiKQueOrHqPGZGF/juxakmJb3ELhEJaHGnnPqlLLx\r\nBjSXm6p1rtUxlECWlRmKils31rUHHKlPXf29gKcs4e96yOtcqNBj5mqmEo97\r\nSScTaTq/TvQPKcyNFl5DmP+V+xovM8+gtcwTXZDhlBrxWdGzSbx+9DY8HJdR\r\n/wH4e9zkSkU4QR1oU6A/7M5AsQf4qvX9NNfvXVBN2glxPStD904OXObKzxp0\r\nuLMD22k9ArY7hOqHbRHYH7PAleJpCzOMb74icxEYjEpuDl6R/V583xkJRupv\r\nFF+YuZFeA8NZ47fmssNfG9Y5fja5/uLfRe8o7ULXXgujW0PFwonQgza3lU4e\r\ndo5YcwGjqP53DX9M3wooD3oGFDL6ZPEG87tMIQA8uXmn5c1EbaxqbVUSWazP\r\nbDu9Ggqr8JY/4qDfjlKmZZ09CDsnYkPfKm4=\r\n=MaGU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_1.0.0_1677692693990_0.8005424426384167"},"_hasShrinkwrap":false},"1.0.0-dev.461edac08a70deeb5d4a137055080f2d7d93eff0":{"name":"@bubojs/uploader-aws-s3","version":"1.0.0-dev.461edac08a70deeb5d4a137055080f2d7d93eff0","author":{"name":"Owlie"},"license":"MIT","module":"Esnext","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.js"}},"scripts":{"build":"rimraf ./dist && tsc -p tsconfig.build.json"},"dependencies":{"@bubojs/http-errors":"^0.1.10","busboy":"1.6.0","mime-types":"^2.1.35"},"devDependencies":{"@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.0.7","@semantic-release/npm":"^9.0.2","@types/busboy":"^1.5.0","@types/mime-types":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^20.1.1","typescript":"^4.7.4"},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/owliehq/buboJS/tree/develop\">\n    <img src=\"https://owlie.xyz/bubo/bubo-js.png\">\n  </a>\n</p>\n\n## Amazon S3 ##\n\n[![uploader s3](https://img.shields.io/npm/v/@bubojs/uploader-aws-s3?label=uploader-aws-s3)](https://www.npmjs.com/package/@bubojs/uploader-aws-s3)\n\n[Back To Main Menu](../../../README.md#files-managers)\n\nThis uploader allows you to use AWS S3 protocol.\n\n### Storage Instance ###\n\ndeclaration of a client instance [AWS S3 version 3](https://www.npmjs.com/package/@aws-sdk/client-s3)\n\n```ts\nimport { S3 } from '@aws-sdk/client-s3';\nimport { S3Uploader } from '@bubojs/uploader-aws-s3';\n\nconst s3Bucket = new S3({\n  endpoint: process.env.S3_ENDPOINT,\n  credentials: {\n    accessKeyId: process.env.S3_ACCESS_KEY_ID,\n    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,\n  },\n  region: process.env.S3_REGION,\n});\n\nexport const uploader = new S3Uploader({\n  bucket: s3Bucket,\n  bucketName: process.env.S3_BUCKET_NAME,\n  folderName: process.env.S3_FOLDER_NAME,\n});\n```\n\n### Example of a controller using the uploader ###\n\nThis example uses the 3 functions of the S3 uploader.\n\n```ts\nimport { uploader } from './config'\nimport { Controller, BeforeMiddleware, Post, Body } from '@bubojs/api'\n\n@Controller()\nclass TestController {\n\n  /**\n   * upload route with form-data body\n   * Body: {\n   *  file: 📄\n   * }\n   */\n  @BeforeMiddleware(\n    uploader.buildUploadEndpoint({ authorizedExtensions: ['jpeg', 'png']})\n  )\n  @Post('/')\n  async uploadRoute(@Body('file') filename: string) {\n    console.log('uploaded file')\n    return {}\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Get(':key', { bodyFormat: BodyFormat.AUTO, rawHandler: true })\n  downloadRoute() {\n    return uploader.buildDownloadEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n\n  /**\n   * download route\n   * Params: {\n   *  key: 'filename.jpeg'\n   * }\n   */\n  @Delete(':key', { rawHandler: true })\n  deleteRoute() {\n    return uploader.buildDeleteEndpoint({\n      retrieveKeyCallback: async (req: any) => {\n        return req.params.key;\n      },\n    });\n  }\n```\n\n#### buildUploadEndpoint ####\n\nTo save a file, the __buildUploadEndpoint__ function is used as the middleware of the route. The file is uploaded using the S3 client on the AWS servers. Once the file is online, we replace the file in the body object with the file name with its file extension.\nIt is possible to add these options:\n\n* authorizedExtensions => Array\\<string> - uses the mimeType to detect the file extension and only allows those among the text array.\n* authorizedFileFields => Array\\<string> - checks if the files are among the authorized body fields\n\n#### buildDownloadEndpoint ####\n\nThe function allows to create a file download route, we use the rawHandler option in our custom route to be able to pass the constructor of the download endpoint\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the file name from the req object of the request\n* *optional* filename => string - name of the file\n* *optional* contentType => string - contentType of the header response\n* *optional* cache.maxAge => number - cache option on the Cache-Control in the header\n\n#### buildDeleteEndpoint ####\n\nThe function allows you to delete the file\n\nOptions:\n\n* retrieveKeyCallback => Function(req: any) => string - function that retrieves the name of the file from the req object of the request\n* *optional* filename => string - name of the file\n\n[Back To Main Menu](../../../README.md#files-managers)\n\n## Editor ##\n\n<p>\n  <a href=\"https://www.owlie.xyz\">\n    <img style=\"border-radius:50%\" width=\"100\" height=\"100\" src=\"https://www.owlie.xyz/bubo/owlielogo.png\">\n  </a>\n</p>\n","readmeFilename":"README.md","gitHead":"461edac08a70deeb5d4a137055080f2d7d93eff0","description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"homepage":"https://github.com/owliehq/buboJS#readme","_id":"@bubojs/uploader-aws-s3@1.0.0-dev.461edac08a70deeb5d4a137055080f2d7d93eff0","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-SYttg4AwB4eket3zVYeAuPAAvVKgvKBLnTaMuzhVLZZ/dN6AIUCUMr1EgjFVvI2YHZyV6K03WQeUmpT4x2OnpA==","shasum":"06fa0dbb44c84cefdffe87d32fe8a8949a3a0640","tarball":"https://registry.npmjs.org/@bubojs/uploader-aws-s3/-/uploader-aws-s3-1.0.0-dev.461edac08a70deeb5d4a137055080f2d7d93eff0.tgz","fileCount":17,"unpackedSize":16621,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFTSbnvnOFGiDb6dFTcbwKBTXtqR2A0VZHM5MZ/Ube+gIgT5TiiOypBqsBmWwo82UPk4L9kMF8sACLv5C4sEibENY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/5AdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrk0w//deoMyaWtHSuq863X4qMOSbjiAvDRMXSjyXvQw27X3XsaPf7N\r\nlB93IqMnhuWyRlMd6ESB9XgkhdnUpNYVscFdKNrqRkIVpYlsd1AJSN5TfJ0h\r\nVmDnKYGKMHlXZgHL6V/Xpne8mU4Z1ID8/rgQMKjgco79Lpq+0IflTlOswZnN\r\n0xE1i28ZQLmcIa6kBK1RcgqPyJiNIGfQxL6PvaV2a7cceISRug2D3ctDhhrL\r\n4pQtz4ep/6uBRzTU3BbPBK6T4+nEv8S4PDlE9d4ZDYGrMSfK0SlqcQ4B1/0d\r\nuc1xdfQL+qg5op7ctvpJEJtqtQJe/QeqGJ3qXwKPpsyUJTKLJXHwxyR+lVR7\r\n54XAJpmnsMAd+QrsQsiRdG3sIOADQMJl1P5J5VacRUA+HaOyDzYVkrL1C1IZ\r\nLVsNQnuOcAbuuCqq037WtDVV4Il5PETAcEz2DajisfK7uf+uLQwfBpC3NQ0H\r\nMiLD1s4tnWG5T6aKgWa8mAosQwcaUCxGAwOjARBh8q6lRLFwsGCHtw8jxQIw\r\n4dX7KlQKdA+l8DW6og5Xo6aGTLuH8yQfzGazJ3K8siuvYEx1HC5VDVEWZLDP\r\nWcfkXNJT2SgFPDazvORSGm9dItzrTcZYKoMvekRVAY7iQ02g1D7chzwDsEW+\r\nPy1/u8EFtoKw3/NVraASZJV5wn1TLeW6wks=\r\n=c/f0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flowlie","email":"florian@owlie.xyz"},"directories":{},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uploader-aws-s3_1.0.0-dev.461edac08a70deeb5d4a137055080f2d7d93eff0_1677692956897_0.5434327423640894"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-31T15:18:43.205Z","0.1.0-dev.c0c27096963d0ea96c5b9e1f18926e10f6384120":"2023-01-31T15:18:43.472Z","modified":"2023-03-01T17:49:17.351Z","0.1.0-dev.4d61f2dc3f032a3bd8cdfc494762c89f48e90de9":"2023-02-10T16:53:15.659Z","0.1.0-dev.b1dc82309aefa814986773b5e983afdf55bafd89":"2023-02-27T17:40:47.687Z","0.1.0-dev.1ca59e9f74645b102b9e9cace755e56878721920":"2023-02-28T14:03:20.184Z","0.1.0-dev.90b7250275d861177d8483a3c453d0f004f744f2":"2023-02-28T14:07:38.150Z","0.1.0-dev.755ccf5076dd2073f835e8527908321888efbed8":"2023-02-28T17:13:00.800Z","0.1.0-dev.5d17248122556d4c09233c727c15115f980b5b71":"2023-03-01T14:19:58.406Z","0.1.0-dev.3e9609014354a83199a3383c0f1270c370fe5d3b":"2023-03-01T15:34:35.871Z","0.1.0-dev.8fecf2f1fb0984c5b454158aaa5f0915119f77e2":"2023-03-01T17:44:39.059Z","1.0.0":"2023-03-01T17:44:54.193Z","1.0.0-dev.461edac08a70deeb5d4a137055080f2d7d93eff0":"2023-03-01T17:49:17.097Z"},"maintainers":[{"name":"flowlie","email":"florian@owlie.xyz"},{"name":"barthowlie","email":"barthelemy@owlie.xyz"},{"name":"arnowlie","email":"arnaud@owlie.xyz"},{"name":"jordanowlie","email":"jordan@owlie.xyz"}],"description":"<p align=\"center\">   <a href=\"https://github.com/owliehq/buboJS/tree/develop\">     <img src=\"https://owlie.xyz/bubo/bubo-js.png\">   </a> </p>","homepage":"https://github.com/owliehq/buboJS#readme","repository":{"type":"git","url":"git+https://github.com/owliehq/buboJS.git","directory":"packages/uploader-aws-s3"},"author":{"name":"Owlie"},"bugs":{"url":"https://github.com/owliehq/buboJS/issues"},"license":"MIT","readme":"","readmeFilename":""}