@webiny/api-file-manager-s3 6.0.0-rc.7 → 6.1.0-beta.0
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/package.json +19 -19
- package/utils/FileKey.test.js +1 -1
- package/utils/FileKey.test.js.map +1 -1
- package/utils/mimeTypes.js +0 -2
- package/utils/mimeTypes.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-file-manager-s3",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -11,35 +11,35 @@
|
|
|
11
11
|
"author": "Webiny Ltd",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@webiny/api": "6.
|
|
15
|
-
"@webiny/api-core": "6.
|
|
16
|
-
"@webiny/api-file-manager": "6.
|
|
17
|
-
"@webiny/api-websockets": "6.
|
|
18
|
-
"@webiny/aws-sdk": "6.
|
|
19
|
-
"@webiny/feature": "6.
|
|
20
|
-
"@webiny/handler": "6.
|
|
21
|
-
"@webiny/handler-aws": "6.
|
|
22
|
-
"@webiny/handler-graphql": "6.
|
|
23
|
-
"@webiny/plugins": "6.
|
|
24
|
-
"@webiny/utils": "6.
|
|
25
|
-
"@webiny/validation": "6.
|
|
26
|
-
"exifreader": "4.
|
|
27
|
-
"mime": "
|
|
14
|
+
"@webiny/api": "6.1.0-beta.0",
|
|
15
|
+
"@webiny/api-core": "6.1.0-beta.0",
|
|
16
|
+
"@webiny/api-file-manager": "6.1.0-beta.0",
|
|
17
|
+
"@webiny/api-websockets": "6.1.0-beta.0",
|
|
18
|
+
"@webiny/aws-sdk": "6.1.0-beta.0",
|
|
19
|
+
"@webiny/feature": "6.1.0-beta.0",
|
|
20
|
+
"@webiny/handler": "6.1.0-beta.0",
|
|
21
|
+
"@webiny/handler-aws": "6.1.0-beta.0",
|
|
22
|
+
"@webiny/handler-graphql": "6.1.0-beta.0",
|
|
23
|
+
"@webiny/plugins": "6.1.0-beta.0",
|
|
24
|
+
"@webiny/utils": "6.1.0-beta.0",
|
|
25
|
+
"@webiny/validation": "6.1.0-beta.0",
|
|
26
|
+
"exifreader": "4.37.0",
|
|
27
|
+
"mime": "4.1.0",
|
|
28
28
|
"object-hash": "3.0.0",
|
|
29
29
|
"p-map": "7.0.4",
|
|
30
30
|
"p-reduce": "3.0.0",
|
|
31
|
-
"sanitize-filename": "1.6.
|
|
31
|
+
"sanitize-filename": "1.6.4",
|
|
32
32
|
"sharp": "0.34.5"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@webiny/build-tools": "6.
|
|
35
|
+
"@webiny/build-tools": "6.1.0-beta.0",
|
|
36
36
|
"rimraf": "6.1.3",
|
|
37
37
|
"typescript": "5.9.3",
|
|
38
|
-
"vitest": "4.
|
|
38
|
+
"vitest": "4.1.2"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public",
|
|
42
42
|
"directory": "dist"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a3bd3695c66c79238e380d7360d9731b5fcf9c87"
|
|
45
45
|
}
|
package/utils/FileKey.test.js
CHANGED
|
@@ -15,7 +15,7 @@ describe("FileKey", () => {
|
|
|
15
15
|
name: "image-14",
|
|
16
16
|
type: "image/jpeg"
|
|
17
17
|
});
|
|
18
|
-
expect(fileKey.toString()).toEqual("image-14.
|
|
18
|
+
expect(fileKey.toString()).toEqual("image-14.jpg");
|
|
19
19
|
});
|
|
20
20
|
it("should generate a file key containing id", () => {
|
|
21
21
|
const fileKey = new FileKey({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["describe","it","expect","FileKey","fileKey","size","name","type","toString","toEqual","id","keyPrefix","key"],"sources":["FileKey.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { FileKey } from \"./FileKey.js\";\n\ndescribe(\"FileKey\", () => {\n it(\"should generate a file key (extension is included in the name)\", () => {\n const fileKey = new FileKey({\n size: 1071690,\n name: \"image-14.jpg\",\n type: \"image/jpeg\"\n });\n\n expect(fileKey.toString()).toEqual(\"image-14.jpg\");\n });\n\n it(\"should generate a file key (extension derived from file type)\", () => {\n const fileKey = new FileKey({\n size: 1071690,\n name: \"image-14\",\n type: \"image/jpeg\"\n });\n\n expect(fileKey.toString()).toEqual(\"image-14.
|
|
1
|
+
{"version":3,"names":["describe","it","expect","FileKey","fileKey","size","name","type","toString","toEqual","id","keyPrefix","key"],"sources":["FileKey.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { FileKey } from \"./FileKey.js\";\n\ndescribe(\"FileKey\", () => {\n it(\"should generate a file key (extension is included in the name)\", () => {\n const fileKey = new FileKey({\n size: 1071690,\n name: \"image-14.jpg\",\n type: \"image/jpeg\"\n });\n\n expect(fileKey.toString()).toEqual(\"image-14.jpg\");\n });\n\n it(\"should generate a file key (extension derived from file type)\", () => {\n const fileKey = new FileKey({\n size: 1071690,\n name: \"image-14\",\n type: \"image/jpeg\"\n });\n\n expect(fileKey.toString()).toEqual(\"image-14.jpg\");\n });\n\n it(\"should generate a file key containing id\", () => {\n const fileKey = new FileKey({\n size: 1071690,\n name: \"image-14.jpeg\",\n type: \"image/jpeg\",\n id: \"12345678\"\n });\n\n expect(fileKey.toString()).toEqual(\"12345678/image-14.jpeg\");\n });\n\n it(\"should generate a file key containing prefix\", () => {\n const fileKey = new FileKey({\n size: 1071690,\n name: \"image-14.jpeg\",\n type: \"image/jpeg\",\n keyPrefix: \"prefix\"\n });\n\n expect(fileKey.toString()).toEqual(\"prefix/image-14.jpeg\");\n });\n\n it(\"should generate a file key containing id and prefix\", () => {\n const fileKey = new FileKey({\n size: 1071690,\n name: \"image-14.jpeg\",\n type: \"image/jpeg\",\n id: \"12345678\",\n keyPrefix: \"prefix\"\n });\n\n expect(fileKey.toString()).toEqual(\"prefix/12345678/image-14.jpeg\");\n });\n\n it(\"should use the key defined in the input\", () => {\n const fileKey = new FileKey({\n size: 1071690,\n name: \"image\",\n type: \"image/jpeg\",\n key: \"image-14.jpg\"\n });\n\n expect(fileKey.toString()).toEqual(\"image-14.jpg\");\n });\n});\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,EAAE,EAAEC,MAAM,QAAQ,QAAQ;AAC7C,SAASC,OAAO;AAEhBH,QAAQ,CAAC,SAAS,EAAE,MAAM;EACtBC,EAAE,CAAC,gEAAgE,EAAE,MAAM;IACvE,MAAMG,OAAO,GAAG,IAAID,OAAO,CAAC;MACxBE,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,cAAc;MACpBC,IAAI,EAAE;IACV,CAAC,CAAC;IAEFL,MAAM,CAACE,OAAO,CAACI,QAAQ,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,cAAc,CAAC;EACtD,CAAC,CAAC;EAEFR,EAAE,CAAC,+DAA+D,EAAE,MAAM;IACtE,MAAMG,OAAO,GAAG,IAAID,OAAO,CAAC;MACxBE,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,UAAU;MAChBC,IAAI,EAAE;IACV,CAAC,CAAC;IAEFL,MAAM,CAACE,OAAO,CAACI,QAAQ,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,cAAc,CAAC;EACtD,CAAC,CAAC;EAEFR,EAAE,CAAC,0CAA0C,EAAE,MAAM;IACjD,MAAMG,OAAO,GAAG,IAAID,OAAO,CAAC;MACxBE,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,eAAe;MACrBC,IAAI,EAAE,YAAY;MAClBG,EAAE,EAAE;IACR,CAAC,CAAC;IAEFR,MAAM,CAACE,OAAO,CAACI,QAAQ,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,wBAAwB,CAAC;EAChE,CAAC,CAAC;EAEFR,EAAE,CAAC,8CAA8C,EAAE,MAAM;IACrD,MAAMG,OAAO,GAAG,IAAID,OAAO,CAAC;MACxBE,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,eAAe;MACrBC,IAAI,EAAE,YAAY;MAClBI,SAAS,EAAE;IACf,CAAC,CAAC;IAEFT,MAAM,CAACE,OAAO,CAACI,QAAQ,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,sBAAsB,CAAC;EAC9D,CAAC,CAAC;EAEFR,EAAE,CAAC,qDAAqD,EAAE,MAAM;IAC5D,MAAMG,OAAO,GAAG,IAAID,OAAO,CAAC;MACxBE,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,eAAe;MACrBC,IAAI,EAAE,YAAY;MAClBG,EAAE,EAAE,UAAU;MACdC,SAAS,EAAE;IACf,CAAC,CAAC;IAEFT,MAAM,CAACE,OAAO,CAACI,QAAQ,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,+BAA+B,CAAC;EACvE,CAAC,CAAC;EAEFR,EAAE,CAAC,yCAAyC,EAAE,MAAM;IAChD,MAAMG,OAAO,GAAG,IAAID,OAAO,CAAC;MACxBE,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,YAAY;MAClBK,GAAG,EAAE;IACT,CAAC,CAAC;IAEFV,MAAM,CAACE,OAAO,CAACI,QAAQ,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,cAAc,CAAC;EACtD,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
package/utils/mimeTypes.js
CHANGED
package/utils/mimeTypes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["vendorTypes","standardTypes","mimeTypes"],"sources":["mimeTypes.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["vendorTypes","standardTypes","mimeTypes"],"sources":["mimeTypes.ts"],"sourcesContent":["import vendorTypes from \"mime/types/other.js\";\nimport standardTypes from \"mime/types/standard.js\";\n\n/**\n * We need to get all extensions that are defined for a specific content type.\n * This operation is not available via the `mime` package, so we create such an object ourselves.\n */\nexport const mimeTypes: Record<string, string[]> = {\n ...vendorTypes,\n ...standardTypes\n};\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,qBAAqB;AAC7C,OAAOC,aAAa,MAAM,wBAAwB;;AAElD;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAmC,GAAG;EAC/C,GAAGF,WAAW;EACd,GAAGC;AACP,CAAC","ignoreList":[]}
|