@medusajs/cache-inmemory 1.8.11-snapshot-20240925095226 → 1.8.11-snapshot-20240925111619

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ModuleExports } from "@medusajs/types";
1
+ import { ModuleExports } from "@medusajs/framework/types";
2
2
  declare const moduleDefinition: ModuleExports;
3
3
  export default moduleDefinition;
4
4
  export * from "./initialize";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAK/C,QAAA,MAAM,gBAAgB,EAAE,aAEvB,CAAA;AAED,eAAe,gBAAgB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
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,iBAAiB,CAAA;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD,eAAO,MAAM,UAAU,aACX,0BAA0B,GAAG,yBAAyB,KAC/D,OAAO,CAAC,aAAa,CAWvB,CAAA"}
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"}
@@ -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/cache-inmemory",
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,uDAAoD;AAMpD,2CAAyC;AAGlC,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,0BAA0B;QACvC,WAAW,EAAE,OAEgB;KAC9B,CAAC,CAAA;IAEF,OAAO,MAAM,CAAC,UAAU,CAAC,CAAA;AAC3B,CAAC,CAAA;AAbY,QAAA,UAAU,cAatB"}
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,4 +1,4 @@
1
- import { ICacheService } from "@medusajs/types";
1
+ import { ICacheService } from "@medusajs/framework/types";
2
2
  import { CacheRecord, InMemoryCacheModuleOptions } from "../types";
3
3
  type InjectedDependencies = {};
4
4
  /**
@@ -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,iBAAiB,CAAA;AAC/C,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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/cache-inmemory",
3
- "version": "1.8.11-snapshot-20240925095226",
3
+ "version": "1.8.11-snapshot-20240925111619",
4
4
  "description": "In-memory Cache Module for Medusa",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "author": "Medusa",
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@medusajs/types": "1.12.0-snapshot-20240925095226",
26
+ "@medusajs/framework": "0.0.2-snapshot-20240925111619",
27
27
  "cross-env": "^5.2.1",
28
28
  "jest": "^29.7.0",
29
29
  "rimraf": "^5.0.1",
@@ -34,8 +34,7 @@
34
34
  "build": "rimraf dist && tsc --build",
35
35
  "test": "jest --passWithNoTests"
36
36
  },
37
- "dependencies": {
38
- "@medusajs/modules-sdk": "1.13.0-snapshot-20240925095226",
39
- "@medusajs/utils": "1.12.0-snapshot-20240925095226"
37
+ "peerDependencies": {
38
+ "@medusajs/framework": "0.0.2-snapshot-20240925111619"
40
39
  }
41
40
  }
@@ -1 +0,0 @@
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"}