@envelop/response-cache-redis 1.0.0-alpha-d0d0776.0 → 1.0.0-alpha-6a4e0e2.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.
Files changed (3) hide show
  1. package/index.js +3 -2
  2. package/index.mjs +3 -2
  3. package/package.json +6 -18
package/index.js CHANGED
@@ -3,9 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const createRedisCache = (params) => {
6
+ var _a, _b;
6
7
  const store = params.redis;
7
- const buildRedisEntityId = params?.buildRedisEntityId ?? defaultBuildRedisEntityId;
8
- const buildRedisOperationResultCacheKey = params?.buildRedisOperationResultCacheKey ?? defaultBuildRedisOperationResultCacheKey;
8
+ const buildRedisEntityId = (_a = params === null || params === void 0 ? void 0 : params.buildRedisEntityId) !== null && _a !== void 0 ? _a : defaultBuildRedisEntityId;
9
+ const buildRedisOperationResultCacheKey = (_b = params === null || params === void 0 ? void 0 : params.buildRedisOperationResultCacheKey) !== null && _b !== void 0 ? _b : defaultBuildRedisOperationResultCacheKey;
9
10
  async function buildEntityInvalidationsKeys(entity) {
10
11
  const keysToInvalidate = [entity];
11
12
  // find the responseIds for the entity
package/index.mjs CHANGED
@@ -1,7 +1,8 @@
1
1
  const createRedisCache = (params) => {
2
+ var _a, _b;
2
3
  const store = params.redis;
3
- const buildRedisEntityId = params?.buildRedisEntityId ?? defaultBuildRedisEntityId;
4
- const buildRedisOperationResultCacheKey = params?.buildRedisOperationResultCacheKey ?? defaultBuildRedisOperationResultCacheKey;
4
+ const buildRedisEntityId = (_a = params === null || params === void 0 ? void 0 : params.buildRedisEntityId) !== null && _a !== void 0 ? _a : defaultBuildRedisEntityId;
5
+ const buildRedisOperationResultCacheKey = (_b = params === null || params === void 0 ? void 0 : params.buildRedisOperationResultCacheKey) !== null && _b !== void 0 ? _b : defaultBuildRedisOperationResultCacheKey;
5
6
  async function buildEntityInvalidationsKeys(entity) {
6
7
  const keysToInvalidate = [entity];
7
8
  // find the responseIds for the entity
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@envelop/response-cache-redis",
3
- "version": "1.0.0-alpha-d0d0776.0",
3
+ "version": "1.0.0-alpha-6a4e0e2.0",
4
4
  "sideEffects": false,
5
5
  "dependencies": {
6
- "@envelop/response-cache": "3.0.0-alpha-d0d0776.0",
6
+ "@envelop/response-cache": "3.0.0-alpha-6a4e0e2.0",
7
7
  "ioredis": "^4.27.9"
8
8
  },
9
9
  "repository": {
@@ -21,24 +21,12 @@
21
21
  },
22
22
  "exports": {
23
23
  ".": {
24
- "require": {
25
- "default": "./index.js",
26
- "types": "./index.d.ts"
27
- },
28
- "import": {
29
- "default": "./index.mjs",
30
- "types": "./index.d.ts"
31
- }
24
+ "require": "./index.js",
25
+ "import": "./index.mjs"
32
26
  },
33
27
  "./*": {
34
- "require": {
35
- "default": "./*.js",
36
- "types": "./*.d.ts"
37
- },
38
- "import": {
39
- "default": "./*.mjs",
40
- "types": "./*.d.ts"
41
- }
28
+ "require": "./*.js",
29
+ "import": "./*.mjs"
42
30
  },
43
31
  "./package.json": "./package.json"
44
32
  }