@medusajs/file-s3 0.0.3-preview-20240925143312 → 0.0.3-preview-20240930112011
Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAKjE,QAAA,MAAM,cAAc,EAAE,qBAErB,CAAA;AAED,eAAe,cAAc,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { S3Client } from "@aws-sdk/client-s3";
|
2
|
-
import { FileTypes, Logger, S3FileServiceOptions } from "@medusajs/types";
|
3
|
-
import { AbstractFileProviderService } from "@medusajs/utils";
|
2
|
+
import { FileTypes, Logger, S3FileServiceOptions } from "@medusajs/framework/types";
|
3
|
+
import { AbstractFileProviderService } from "@medusajs/framework/utils";
|
4
4
|
type InjectedDependencies = {
|
5
5
|
logger: Logger;
|
6
6
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"s3-file.d.ts","sourceRoot":"","sources":["../../src/services/s3-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,QAAQ,EAET,MAAM,oBAAoB,CAAA;AAE3B,OAAO,
|
1
|
+
{"version":3,"file":"s3-file.d.ts","sourceRoot":"","sources":["../../src/services/s3-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,QAAQ,EAET,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EACL,SAAS,EACT,MAAM,EACN,oBAAoB,EACrB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,2BAA2B,EAE5B,MAAM,2BAA2B,CAAA;AAIlC,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,UAAU,mBAAmB;IAE3B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC7C;AAGD,qBAAa,aAAc,SAAQ,2BAA2B;IAC5D,MAAM,CAAC,UAAU,SAAO;IACxB,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAA;IACtC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAA;gBAEf,EAAE,MAAM,EAAE,EAAE,oBAAoB,EAAE,OAAO,EAAE,oBAAoB;IAmB3E,SAAS,CAAC,SAAS;IAcb,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,qBAAqB,GACpC,OAAO,CAAC,SAAS,CAAC,qBAAqB,CAAC;IAoDrC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAc5D,uBAAuB,CAC3B,QAAQ,EAAE,SAAS,CAAC,kBAAkB,GACrC,OAAO,CAAC,MAAM,CAAC;CAWnB"}
|
package/dist/services/s3-file.js
CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.S3FileService = void 0;
|
7
7
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
8
8
|
const s3_request_presigner_1 = require("@aws-sdk/s3-request-presigner");
|
9
|
-
const utils_1 = require("@medusajs/utils");
|
9
|
+
const utils_1 = require("@medusajs/framework/utils");
|
10
10
|
const path_1 = __importDefault(require("path"));
|
11
11
|
const ulid_1 = require("ulid");
|
12
12
|
// FUTURE: At one point we will probably need to support authenticating with IAM roles instead.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"s3-file.js","sourceRoot":"","sources":["../../src/services/s3-file.ts"],"names":[],"mappings":";;;;;;AAAA,kDAM2B;AAC3B,wEAA4D;
|
1
|
+
{"version":3,"file":"s3-file.js","sourceRoot":"","sources":["../../src/services/s3-file.ts"],"names":[],"mappings":";;;;;;AAAA,kDAM2B;AAC3B,wEAA4D;AAM5D,qDAGkC;AAClC,gDAAuB;AACvB,+BAA2B;AAoB3B,+FAA+F;AAC/F,MAAa,aAAc,SAAQ,mCAA2B;IAM5D,YAAY,EAAE,MAAM,EAAwB,EAAE,OAA6B;QACzE,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,OAAO,GAAG;YACb,OAAO,EAAE,OAAO,CAAC,QAAQ;YACzB,WAAW,EAAE,OAAO,CAAC,aAAa;YAClC,eAAe,EAAE,OAAO,CAAC,iBAAiB;YAC1C,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE;YAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,YAAY,EAAE,OAAO,CAAC,aAAa,IAAI,0BAA0B;YACjE,oBAAoB,EAAE,OAAO,CAAC,sBAAsB,IAAI,EAAE,GAAG,EAAE;YAC/D,sBAAsB,EAAE,OAAO,CAAC,wBAAwB,IAAI,EAAE;SAC/D,CAAA;QACD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACrB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;IACjC,CAAC;IAES,SAAS;QACjB,MAAM,MAAM,GAAuB;YACjC,WAAW,EAAE;gBACX,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW;gBACrC,eAAe,EAAE,I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,IAAI,CAAC,OAAO,CAAC,oBAAoB;SAC7C,CAAC,CAAA;IACJ,CAAC;;AAvHH,sCAwHC;AAvHQ,wBAAU,GAAG,IAAI,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/file-s3",
|
3
|
-
"version": "0.0.3-preview-
|
3
|
+
"version": "0.0.3-preview-20240930112011",
|
4
4
|
"description": "S3 protocol file storage for Medusa. Supports any S3-compatible storage provider",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"repository": {
|
@@ -26,8 +26,10 @@
|
|
26
26
|
"watch": "tsc --watch"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
|
+
"@medusajs/framework": "0.0.2-preview-20240930112011",
|
30
|
+
"@swc/core": "^1.7.28",
|
31
|
+
"@swc/jest": "^0.2.36",
|
29
32
|
"axios": "^1.6.8",
|
30
|
-
"cross-env": "^5.2.1",
|
31
33
|
"jest": "^29.7.0",
|
32
34
|
"rimraf": "^5.0.1",
|
33
35
|
"typescript": "^5.6.2"
|
@@ -35,10 +37,10 @@
|
|
35
37
|
"dependencies": {
|
36
38
|
"@aws-sdk/client-s3": "^3.556.0",
|
37
39
|
"@aws-sdk/s3-request-presigner": "^3.556.0",
|
38
|
-
"
|
40
|
+
"ulid": "^2.3.0"
|
39
41
|
},
|
40
42
|
"peerDependencies": {
|
41
|
-
"
|
43
|
+
"@medusajs/framework": "0.0.2-preview-20240930112011"
|
42
44
|
},
|
43
45
|
"keywords": [
|
44
46
|
"medusa-plugin",
|