@fjell/cache 4.6.13 → 4.6.14

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/dist/Cache.cjs.js CHANGED
@@ -7,7 +7,7 @@ const Operations = require('./Operations.cjs.js');
7
7
  const logger$1 = require('./logger.cjs.js');
8
8
 
9
9
  const logger = logger$1.default.get('Cache');
10
- const createCache = async (api, coordinate, registry)=>{
10
+ const createCache = (api, coordinate, registry)=>{
11
11
  logger.debug('createCache', {
12
12
  coordinate,
13
13
  registry
package/dist/Cache.d.ts CHANGED
@@ -24,5 +24,5 @@ export interface Cache<V extends Item<S, L1, L2, L3, L4, L5>, S extends string,
24
24
  /** All cache operations that work with both cache and API */
25
25
  operations: Operations<V, S, L1, L2, L3, L4, L5>;
26
26
  }
27
- export declare const createCache: <V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never>(api: ClientApi<V, S, L1, L2, L3, L4, L5>, coordinate: Coordinate<S, L1, L2, L3, L4, L5>, registry: Registry) => Promise<Cache<V, S, L1, L2, L3, L4, L5>>;
27
+ export declare const createCache: <V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never>(api: ClientApi<V, S, L1, L2, L3, L4, L5>, coordinate: Coordinate<S, L1, L2, L3, L4, L5>, registry: Registry) => Cache<V, S, L1, L2, L3, L4, L5>;
28
28
  export declare const isCache: (cache: any) => cache is Cache<any, any, any, any, any, any, any>;
package/dist/Cache.es.js CHANGED
@@ -3,7 +3,7 @@ import { createOperations } from './Operations.es.js';
3
3
  import LibLogger from './logger.es.js';
4
4
 
5
5
  const logger = LibLogger.get('Cache');
6
- const createCache = async (api, coordinate, registry)=>{
6
+ const createCache = (api, coordinate, registry)=>{
7
7
  logger.debug('createCache', {
8
8
  coordinate,
9
9
  registry
@@ -6,13 +6,13 @@ const logger$1 = require('./logger.cjs.js');
6
6
  const Cache = require('./Cache.cjs.js');
7
7
 
8
8
  const logger = logger$1.default.get("Instance");
9
- const createInstance = async (registry, coordinate, api)=>{
9
+ const createInstance = (registry, coordinate, api)=>{
10
10
  logger.debug("createInstance", {
11
11
  coordinate,
12
12
  api,
13
13
  registry
14
14
  });
15
- return await Cache.createCache(api, coordinate, registry);
15
+ return Cache.createCache(api, coordinate, registry);
16
16
  };
17
17
  const isInstance = (instance)=>{
18
18
  return instance !== null && typeof instance === 'object' && 'coordinate' in instance && 'registry' in instance && 'api' in instance && 'cacheMap' in instance && 'operations' in instance;
@@ -13,5 +13,5 @@ import { Cache } from './Cache';
13
13
  * @template L1-L5 - Optional string literal types for location hierarchy levels
14
14
  */
15
15
  export type Instance<V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never> = Cache<V, S, L1, L2, L3, L4, L5>;
16
- export declare const createInstance: <V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never>(registry: Registry, coordinate: Coordinate<S, L1, L2, L3, L4, L5>, api: ClientApi<V, S, L1, L2, L3, L4, L5>) => Promise<Instance<V, S, L1, L2, L3, L4, L5>>;
16
+ export declare const createInstance: <V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never>(registry: Registry, coordinate: Coordinate<S, L1, L2, L3, L4, L5>, api: ClientApi<V, S, L1, L2, L3, L4, L5>) => Instance<V, S, L1, L2, L3, L4, L5>;
17
17
  export declare const isInstance: (instance: any) => instance is Instance<any, any, any, any, any, any, any>;
@@ -2,13 +2,13 @@ import LibLogger from './logger.es.js';
2
2
  import { createCache } from './Cache.es.js';
3
3
 
4
4
  const logger = LibLogger.get("Instance");
5
- const createInstance = async (registry, coordinate, api)=>{
5
+ const createInstance = (registry, coordinate, api)=>{
6
6
  logger.debug("createInstance", {
7
7
  coordinate,
8
8
  api,
9
9
  registry
10
10
  });
11
- return await createCache(api, coordinate, registry);
11
+ return createCache(api, coordinate, registry);
12
12
  };
13
13
  const isInstance = (instance)=>{
14
14
  return instance !== null && typeof instance === 'object' && 'coordinate' in instance && 'registry' in instance && 'api' in instance && 'cacheMap' in instance && 'operations' in instance;
package/dist/index.cjs CHANGED
@@ -839,7 +839,7 @@ const createOperations = (api, coordinate, cacheMap, pkType)=>{
839
839
  };
840
840
 
841
841
  const logger$3 = logger$1.default.get('Cache');
842
- const createCache = async (api, coordinate, registry)=>{
842
+ const createCache = (api, coordinate, registry)=>{
843
843
  logger$3.debug('createCache', {
844
844
  coordinate,
845
845
  registry
@@ -863,13 +863,13 @@ const isCache = (cache)=>{
863
863
  };
864
864
 
865
865
  const logger$2 = logger$1.default.get("Instance");
866
- const createInstance = async (registry, coordinate, api)=>{
866
+ const createInstance = (registry, coordinate, api)=>{
867
867
  logger$2.debug("createInstance", {
868
868
  coordinate,
869
869
  api,
870
870
  registry
871
871
  });
872
- return await createCache(api, coordinate, registry);
872
+ return createCache(api, coordinate, registry);
873
873
  };
874
874
  const isInstance = (instance)=>{
875
875
  return instance !== null && typeof instance === 'object' && 'coordinate' in instance && 'registry' in instance && 'api' in instance && 'cacheMap' in instance && 'operations' in instance;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fjell/cache",
3
3
  "description": "Cache for Fjell",
4
- "version": "4.6.13",
4
+ "version": "4.6.14",
5
5
  "keywords": [
6
6
  "cache",
7
7
  "fjell"
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@fjell/client-api": "^4.4.13",
23
23
  "@fjell/core": "^4.4.13",
24
- "@fjell/http-api": "^4.4.16",
24
+ "@fjell/http-api": "^4.4.17",
25
25
  "@fjell/logging": "^4.4.17",
26
- "@fjell/registry": "^4.4.16"
26
+ "@fjell/registry": "^4.4.17"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@eslint/eslintrc": "^3.3.1",