@global-cache/core 0.5.1 → 0.5.2

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @global-cache/core
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@global-cache/core)](https://www.npmjs.com/package/@global-cache/core)
3
+ Framework-independent server and client for sharing cached data across parallel test workers.
4
4
 
5
- Core Global Cache package. Refer to the main [README](https://github.com/vitalets/global-cache) for setup and examples.
5
+ [Core documentation](https://vitalets.github.io/global-cache/)
@@ -8,5 +8,8 @@ export type ComputeFn<Res> = () => Res | Promise<Res>;
8
8
  export type KeyParams = {
9
9
  ttl?: TTL;
10
10
  };
11
- export type GetArgs<K extends StringKeys<S>, S extends DefaultKeysSchema> = [K, ComputeFn<S[K]>] | [K, KeyParams, ComputeFn<S[K]>];
11
+ export type GetArgs<K extends StringKeys<S>, S extends DefaultKeysSchema> = [
12
+ K,
13
+ ComputeFn<S[K]>
14
+ ] | [K, KeyParams, ComputeFn<S[K]>];
12
15
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACpD,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,iBAAiB,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC;AAEvE,MAAM,MAAM,SAAS,CAAC,GAAG,IAAI,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AACtC,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,iBAAiB,IACpE,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACpB,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACpD,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,iBAAiB,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC;AAEvE,MAAM,MAAM,SAAS,CAAC,GAAG,IAAI,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AACtC,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,iBAAiB,IACtE;IAAC,CAAC;IAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@global-cache/core",
3
3
  "description": "Key-value cache for sharing data between parallel workers.",
4
- "version": "0.5.1",
4
+ "version": "0.5.2",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "@types/express": "^5.0.6",
35
35
  "@types/ms": "^2.1.0",
36
36
  "debug": "^4.4.3",
37
- "express": "^5.2.1",
37
+ "express": "^5.3.0",
38
38
  "ms": "^2.1.3"
39
39
  },
40
40
  "publishConfig": {
@@ -10,5 +10,4 @@ export type StringKeys<S extends DefaultKeysSchema> = keyof S & string; // strip
10
10
  export type ComputeFn<Res> = () => Res | Promise<Res>;
11
11
  export type KeyParams = { ttl?: TTL };
12
12
  export type GetArgs<K extends StringKeys<S>, S extends DefaultKeysSchema> =
13
- | [K, ComputeFn<S[K]>]
14
- | [K, KeyParams, ComputeFn<S[K]>];
13
+ [K, ComputeFn<S[K]>] | [K, KeyParams, ComputeFn<S[K]>];