@medusajs/cache-inmemory 1.8.11-snapshot-20240925105124 → 1.8.11-snapshot-20240926160837
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/initialize/index.d.ts +1 -1
- package/dist/initialize/index.d.ts.map +1 -1
- package/dist/initialize/index.js +3 -3
- package/dist/initialize/index.js.map +1 -1
- package/dist/services/inmemory-cache.d.ts +1 -1
- package/dist/services/inmemory-cache.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +6 -6
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,aAAa,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAKzD,QAAA,MAAM,gBAAgB,EAAE,aAEvB,CAAA;AAED,eAAe,gBAAgB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExternalModuleDeclaration, ICacheService } from "@medusajs/types";
|
1
|
+
import { ExternalModuleDeclaration, ICacheService } from "@medusajs/framework/types";
|
2
2
|
import { InMemoryCacheModuleOptions } from "../types";
|
3
3
|
export declare const initialize: (options?: InMemoryCacheModuleOptions | ExternalModuleDeclaration) => Promise<ICacheService>;
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,aAAa,EAEd,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,aAAa,EAEd,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD,eAAO,MAAM,UAAU,aACX,0BAA0B,GAAG,yBAAyB,KAC/D,OAAO,CAAC,aAAa,CAWvB,CAAA"}
|
package/dist/initialize/index.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.initialize = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const modules_sdk_1 = require("@medusajs/framework/modules-sdk");
|
5
|
+
const utils_1 = require("@medusajs/framework/utils");
|
6
6
|
const initialize = async (options) => {
|
7
7
|
const serviceKey = utils_1.Modules.CACHE;
|
8
8
|
const loaded = await modules_sdk_1.MedusaModule.bootstrap({
|
9
9
|
moduleKey: serviceKey,
|
10
|
-
defaultPath: "@medusajs
|
10
|
+
defaultPath: "@medusajs//cache-inmemory",
|
11
11
|
declaration: options,
|
12
12
|
});
|
13
13
|
return loaded[serviceKey];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAM9D,qDAAmD;AAG5C,MAAM,UAAU,GAAG,KAAK,EAC7B,OAAgE,EACxC,EAAE;IAC1B,MAAM,UAAU,GAAG,eAAO,CAAC,KAAK,CAAA;IAChC,MAAM,MAAM,GAAG,MAAM,0BAAY,CAAC,SAAS,CAAgB;QACzD,SAAS,EAAE,UAAU;QACrB,WAAW,EAAE,2BAA2B;QACxC,WAAW,EAAE,OAEgB;KAC9B,CAAC,CAAA;IAEF,OAAO,MAAM,CAAC,UAAU,CAAC,CAAA;AAC3B,CAAC,CAAA;AAbY,QAAA,UAAU,cAatB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inmemory-cache.d.ts","sourceRoot":"","sources":["../../src/services/inmemory-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"inmemory-cache.d.ts","sourceRoot":"","sources":["../../src/services/inmemory-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAIlE,KAAK,oBAAoB,GAAG,EAAE,CAAA;AAE9B;;GAEG;AACH,cAAM,oBAAqB,YAAW,aAAa;IACjD,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IAE9B,SAAS,CAAC,QAAQ,CAAC,KAAK,gCAAsC;IAC9D,SAAS,CAAC,QAAQ,CAAC,UAAU,8BAAoC;gBAG/D,IAAI,EAAE,oBAAoB,EAC1B,OAAO,GAAE,0BAA+B;IAK1C;;;OAGG;IACG,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAa5C;;;;;OAKG;IACG,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,GAAE,MAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBzE;;;;;OAKG;IACG,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkB5C;;OAEG;IACG,KAAK;CAMZ;AAED,eAAe,oBAAoB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"root":["../src/index.ts","../src/initialize/index.ts","../src/services/index.ts","../src/services/inmemory-cache.ts","../src/services/__tests__/inmemory-cache.js","../src/types/index.ts"],"version":"5.6.2"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/cache-inmemory",
|
3
|
-
"version": "1.8.11-snapshot-
|
3
|
+
"version": "1.8.11-snapshot-20240926160837",
|
4
4
|
"description": "In-memory Cache Module for Medusa",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"repository": {
|
@@ -23,8 +23,9 @@
|
|
23
23
|
"author": "Medusa",
|
24
24
|
"license": "MIT",
|
25
25
|
"devDependencies": {
|
26
|
-
"@medusajs/
|
27
|
-
"
|
26
|
+
"@medusajs/framework": "0.0.2-snapshot-20240926160837",
|
27
|
+
"@swc/core": "^1.7.28",
|
28
|
+
"@swc/jest": "^0.2.36",
|
28
29
|
"jest": "^29.7.0",
|
29
30
|
"rimraf": "^5.0.1",
|
30
31
|
"typescript": "^5.6.2"
|
@@ -34,8 +35,7 @@
|
|
34
35
|
"build": "rimraf dist && tsc --build",
|
35
36
|
"test": "jest --passWithNoTests"
|
36
37
|
},
|
37
|
-
"
|
38
|
-
"@medusajs/
|
39
|
-
"@medusajs/utils": "1.12.0-snapshot-20240925105124"
|
38
|
+
"peerDependencies": {
|
39
|
+
"@medusajs/framework": "0.0.2-snapshot-20240926160837"
|
40
40
|
}
|
41
41
|
}
|