@tsed/platform-cache 7.82.3 → 8.0.0-alpha.1

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/lib/cjs/index.js CHANGED
@@ -10,7 +10,6 @@ tslib_1.__exportStar(require("./interfaces/interfaces.js"), exports);
10
10
  tslib_1.__exportStar(require("./interfaces/PlatformCachedObject.js"), exports);
11
11
  tslib_1.__exportStar(require("./interfaces/PlatformCacheOptions.js"), exports);
12
12
  tslib_1.__exportStar(require("./services/PlatformCache.js"), exports);
13
- tslib_1.__exportStar(require("./utils/getInterceptorOptions.js"), exports);
14
13
  tslib_1.__exportStar(require("./utils/getPrefix.js"), exports);
15
14
  tslib_1.__exportStar(require("./utils/isEndpoint.js"), exports);
16
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mEAAyC;AACzC,qFAA2D;AAC3D,qEAA2C;AAC3C,+EAAqD;AACrD,+EAAqD;AACrD,sEAA4C;AAC5C,2EAAiD;AACjD,+DAAqC;AACrC,gEAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mEAAyC;AACzC,qFAA2D;AAC3D,qEAA2C;AAC3C,+EAAqD;AACrD,+EAAqD;AACrD,sEAA4C;AAC5C,+DAAqC;AACrC,gEAAsC"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPrefix = void 0;
4
4
  const core_1 = require("@tsed/core");
5
- const getInterceptorOptions_js_1 = require("./getInterceptorOptions.js");
5
+ const di_1 = require("@tsed/di");
6
6
  function getPrefix(target, propertyKey) {
7
- const { prefix } = (0, getInterceptorOptions_js_1.getInterceptorOptions)(target, propertyKey);
7
+ const { prefix } = (0, di_1.getInterceptorOptions)(target, propertyKey);
8
8
  if (prefix) {
9
9
  return [prefix];
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getPrefix.js","sourceRoot":"","sources":["../../../src/utils/getPrefix.ts"],"names":[],"mappings":";;;AAAA,qCAAwC;AACxC,yEAAiE;AAEjE,SAAgB,SAAS,CAAC,MAAiB,EAAE,WAA4B;IACvE,MAAM,EAAC,MAAM,EAAC,GAAG,IAAA,gDAAqB,EAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC5D,IAAI,MAAM,EAAE;QACV,OAAO,CAAC,MAAM,CAAC,CAAC;KACjB;IAED,OAAO,CAAC,IAAA,aAAM,EAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC;AACvC,CAAC;AAPD,8BAOC"}
1
+ {"version":3,"file":"getPrefix.js","sourceRoot":"","sources":["../../../src/utils/getPrefix.ts"],"names":[],"mappings":";;;AAAA,qCAAwC;AACxC,iCAA+C;AAG/C,SAAgB,SAAS,CAAC,MAAiB,EAAE,WAA4B;IACvE,MAAM,EAAC,MAAM,EAAC,GAAG,IAAA,0BAAqB,EAAuB,MAAM,EAAE,WAAW,CAAC,CAAC;IAClF,IAAI,MAAM,EAAE;QACV,OAAO,CAAC,MAAM,CAAC,CAAC;KACjB;IAED,OAAO,CAAC,IAAA,aAAM,EAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC;AACvC,CAAC;AAPD,8BAOC"}
package/lib/esm/index.js CHANGED
@@ -7,7 +7,6 @@ export * from "./interfaces/interfaces.js";
7
7
  export * from "./interfaces/PlatformCachedObject.js";
8
8
  export * from "./interfaces/PlatformCacheOptions.js";
9
9
  export * from "./services/PlatformCache.js";
10
- export * from "./utils/getInterceptorOptions.js";
11
10
  export * from "./utils/getPrefix.js";
12
11
  export * from "./utils/isEndpoint.js";
13
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { nameOf } from "@tsed/core";
2
- import { getInterceptorOptions } from "./getInterceptorOptions.js";
2
+ import { getInterceptorOptions } from "@tsed/di";
3
3
  export function getPrefix(target, propertyKey) {
4
4
  const { prefix } = getInterceptorOptions(target, propertyKey);
5
5
  if (prefix) {
@@ -1 +1 @@
1
- {"version":3,"file":"getPrefix.js","sourceRoot":"","sources":["../../../src/utils/getPrefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAO,MAAM,YAAY,CAAC;AACxC,OAAO,EAAC,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAEjE,MAAM,UAAU,SAAS,CAAC,MAAiB,EAAE,WAA4B;IACvE,MAAM,EAAC,MAAM,EAAC,GAAG,qBAAqB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC5D,IAAI,MAAM,EAAE;QACV,OAAO,CAAC,MAAM,CAAC,CAAC;KACjB;IAED,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"getPrefix.js","sourceRoot":"","sources":["../../../src/utils/getPrefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAO,MAAM,YAAY,CAAC;AACxC,OAAO,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAG/C,MAAM,UAAU,SAAS,CAAC,MAAiB,EAAE,WAA4B;IACvE,MAAM,EAAC,MAAM,EAAC,GAAG,qBAAqB,CAAuB,MAAM,EAAE,WAAW,CAAC,CAAC;IAClF,IAAI,MAAM,EAAE;QACV,OAAO,CAAC,MAAM,CAAC,CAAC;KACjB;IAED,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC;AACvC,CAAC"}
@@ -7,6 +7,5 @@ export * from "./interfaces/interfaces.js";
7
7
  export * from "./interfaces/PlatformCachedObject.js";
8
8
  export * from "./interfaces/PlatformCacheOptions.js";
9
9
  export * from "./services/PlatformCache.js";
10
- export * from "./utils/getInterceptorOptions.js";
11
10
  export * from "./utils/getPrefix.js";
12
11
  export * from "./utils/isEndpoint.js";
@@ -7,6 +7,5 @@ export * from "./interfaces/interfaces.js";
7
7
  export * from "./interfaces/PlatformCachedObject.js";
8
8
  export * from "./interfaces/PlatformCacheOptions.js";
9
9
  export * from "./services/PlatformCache.js";
10
- export * from "./utils/getInterceptorOptions.js";
11
10
  export * from "./utils/getPrefix.js";
12
11
  export * from "./utils/isEndpoint.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/platform-cache",
3
3
  "description": "Platform cache module for Ts.ED Framework",
4
4
  "type": "commonjs",
5
- "version": "7.82.3",
5
+ "version": "8.0.0-alpha.1",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/cjs/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -28,22 +28,22 @@
28
28
  "tslib": "2.6.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@tsed/barrels": "7.82.3",
32
- "@tsed/core": "7.82.3",
33
- "@tsed/di": "7.82.3",
34
- "@tsed/json-mapper": "7.82.3",
35
- "@tsed/schema": "7.82.3",
36
- "@tsed/typescript": "7.82.3",
31
+ "@tsed/barrels": "8.0.0-alpha.1",
32
+ "@tsed/core": "8.0.0-alpha.1",
33
+ "@tsed/di": "8.0.0-alpha.1",
34
+ "@tsed/json-mapper": "8.0.0-alpha.1",
35
+ "@tsed/schema": "8.0.0-alpha.1",
36
+ "@tsed/typescript": "8.0.0-alpha.1",
37
37
  "@types/micromatch": "^4.0.6",
38
38
  "eslint": "^8.57.0",
39
39
  "typescript": "4.9.5",
40
40
  "vitest": "2.0.4"
41
41
  },
42
42
  "peerDependencies": {
43
- "@tsed/core": "7.82.3",
44
- "@tsed/di": "7.82.3",
45
- "@tsed/json-mapper": "7.82.3",
46
- "@tsed/schema": "7.82.3"
43
+ "@tsed/core": "8.0.0-alpha.1",
44
+ "@tsed/di": "8.0.0-alpha.1",
45
+ "@tsed/json-mapper": "8.0.0-alpha.1",
46
+ "@tsed/schema": "8.0.0-alpha.1"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "@tsed/core": {
@@ -65,5 +65,8 @@
65
65
  },
66
66
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-cache",
67
67
  "author": "Romain Lenzotti",
68
- "license": "MIT"
68
+ "license": "MIT",
69
+ "publishConfig": {
70
+ "tag": "alpha"
71
+ }
69
72
  }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getInterceptorOptions = void 0;
4
- const core_1 = require("@tsed/core");
5
- const di_1 = require("@tsed/di");
6
- function getInterceptorOptions(target, propertyKey) {
7
- return core_1.Store.from(target).get(di_1.INJECTABLE_PROP)?.[propertyKey]?.options;
8
- }
9
- exports.getInterceptorOptions = getInterceptorOptions;
10
- //# sourceMappingURL=getInterceptorOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getInterceptorOptions.js","sourceRoot":"","sources":["../../../src/utils/getInterceptorOptions.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,iCAAyC;AAGzC,SAAgB,qBAAqB,CAAC,MAAiB,EAAE,WAA4B;IACnF,OAAO,YAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,oBAAe,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;AACzE,CAAC;AAFD,sDAEC"}
@@ -1,6 +0,0 @@
1
- import { Store } from "@tsed/core";
2
- import { INJECTABLE_PROP } from "@tsed/di";
3
- export function getInterceptorOptions(target, propertyKey) {
4
- return Store.from(target).get(INJECTABLE_PROP)?.[propertyKey]?.options;
5
- }
6
- //# sourceMappingURL=getInterceptorOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getInterceptorOptions.js","sourceRoot":"","sources":["../../../src/utils/getInterceptorOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAO,MAAM,YAAY,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAGzC,MAAM,UAAU,qBAAqB,CAAC,MAAiB,EAAE,WAA4B;IACnF,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;AACzE,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Type } from "@tsed/core";
2
- import { PlatformCacheOptions } from "../interfaces/PlatformCacheOptions.js";
3
- export declare function getInterceptorOptions(target: Type<any>, propertyKey: string | symbol): PlatformCacheOptions;
@@ -1,3 +0,0 @@
1
- import { Type } from "@tsed/core";
2
- import { PlatformCacheOptions } from "../interfaces/PlatformCacheOptions.js";
3
- export declare function getInterceptorOptions(target: Type<any>, propertyKey: string | symbol): PlatformCacheOptions;