@strapi/provider-upload-aws-s3 0.0.0-next.b42bb21c873e617eed0eb36b0a4872b7c5bd6b0c → 0.0.0-next.b558642be856459a3e6c076f5d76fffbfc5fc5a1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -3
- package/README.md +60 -9
- package/dist/index.d.ts +27 -13
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +71 -4255
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -4253
- package/dist/index.mjs.map +1 -1
- package/dist/utils.d.ts +4 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +11 -9
package/dist/utils.d.ts
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity } from '@aws-sdk/types';
|
|
2
|
+
import type { InitOptions } from '.';
|
|
1
3
|
export declare function isUrlFromBucket(fileUrl: string, bucketName: string, baseUrl?: string): boolean;
|
|
4
|
+
export declare const extractCredentials: (options: InitOptions) => AwsCredentialIdentity | null;
|
|
5
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AASrC,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,SAAK,GAAG,OAAO,CAoB1F;AA4DD,eAAO,MAAM,kBAAkB,YAAa,WAAW,KAAG,qBAAqB,GAAG,IAQjF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/provider-upload-aws-s3",
|
|
3
|
-
"version": "0.0.0-next.
|
|
3
|
+
"version": "0.0.0-next.b558642be856459a3e6c076f5d76fffbfc5fc5a1",
|
|
4
4
|
"description": "AWS S3 provider for strapi upload",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"upload",
|
|
@@ -34,30 +34,32 @@
|
|
|
34
34
|
"source": "./src/index.ts",
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"files": [
|
|
37
|
-
"
|
|
37
|
+
"dist/"
|
|
38
38
|
],
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "pack-up build",
|
|
41
41
|
"clean": "run -T rimraf ./dist",
|
|
42
42
|
"lint": "run -T eslint .",
|
|
43
|
-
"prepublishOnly": "yarn clean && yarn build",
|
|
44
43
|
"test:unit": "run -T jest",
|
|
45
44
|
"test:unit:watch": "run -T jest --watch",
|
|
46
45
|
"watch": "pack-up watch"
|
|
47
46
|
},
|
|
48
47
|
"dependencies": {
|
|
49
|
-
"aws-sdk": "
|
|
48
|
+
"@aws-sdk/client-s3": "3.600.0",
|
|
49
|
+
"@aws-sdk/lib-storage": "3.433.0",
|
|
50
|
+
"@aws-sdk/s3-request-presigner": "3.433.0",
|
|
51
|
+
"@aws-sdk/types": "3.433.0",
|
|
50
52
|
"lodash": "4.17.21"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
|
-
"@strapi/pack-up": "
|
|
55
|
+
"@strapi/pack-up": "5.0.0",
|
|
54
56
|
"@types/jest": "29.5.2",
|
|
55
|
-
"eslint-config-custom": "0.0.0-next.
|
|
56
|
-
"tsconfig": "0.0.0-next.
|
|
57
|
+
"eslint-config-custom": "0.0.0-next.b558642be856459a3e6c076f5d76fffbfc5fc5a1",
|
|
58
|
+
"tsconfig": "0.0.0-next.b558642be856459a3e6c076f5d76fffbfc5fc5a1"
|
|
57
59
|
},
|
|
58
60
|
"engines": {
|
|
59
|
-
"node": ">=
|
|
61
|
+
"node": ">=18.0.0 <=20.x.x",
|
|
60
62
|
"npm": ">=6.0.0"
|
|
61
63
|
},
|
|
62
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "b558642be856459a3e6c076f5d76fffbfc5fc5a1"
|
|
63
65
|
}
|