@declaro/redis 2.0.0-beta.57 → 2.0.0-beta.59

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 (36) hide show
  1. package/dist/node/index.cjs +932 -932
  2. package/dist/node/index.cjs.map +3 -3
  3. package/dist/node/index.js +932 -932
  4. package/dist/node/index.js.map +3 -3
  5. package/dist/ts/index.d.ts +1 -0
  6. package/dist/ts/index.d.ts.map +1 -0
  7. package/dist/ts/placeholder.test.d.ts +1 -0
  8. package/dist/ts/placeholder.test.d.ts.map +1 -0
  9. package/dist/ts/redis/index.d.ts +1 -0
  10. package/dist/ts/redis/index.d.ts.map +1 -0
  11. package/dist/ts/redis/publish.d.ts +1 -0
  12. package/dist/ts/redis/publish.d.ts.map +1 -0
  13. package/dist/ts/redis/queue.d.ts +1 -0
  14. package/dist/ts/redis/queue.d.ts.map +1 -0
  15. package/dist/ts/redis/redis-event-adapter.d.ts +1 -0
  16. package/dist/ts/redis/redis-event-adapter.d.ts.map +1 -0
  17. package/dist/ts/redis/redis-event-adapter.test.d.ts +1 -0
  18. package/dist/ts/redis/redis-event-adapter.test.d.ts.map +1 -0
  19. package/dist/ts/redis/redis-middleware.d.ts +1 -0
  20. package/dist/ts/redis/redis-middleware.d.ts.map +1 -0
  21. package/dist/ts/redis/repository.d.ts +1 -0
  22. package/dist/ts/redis/repository.d.ts.map +1 -0
  23. package/dist/ts/redis/storage.d.ts +1 -0
  24. package/dist/ts/redis/storage.d.ts.map +1 -0
  25. package/dist/ts/redis/utils.d.ts +1 -0
  26. package/dist/ts/redis/utils.d.ts.map +1 -0
  27. package/dist/ts/settings/index.d.ts +1 -0
  28. package/dist/ts/settings/index.d.ts.map +1 -0
  29. package/dist/ts/settings/setting.d.ts +1 -0
  30. package/dist/ts/settings/setting.d.ts.map +1 -0
  31. package/dist/ts/settings/site.d.ts +1 -0
  32. package/dist/ts/settings/site.d.ts.map +1 -0
  33. package/dist/ts/test-utils/index.d.ts +1 -0
  34. package/dist/ts/test-utils/index.d.ts.map +1 -0
  35. package/package.json +3 -3
  36. package/tsconfig.json +1 -0
@@ -1,3 +1,4 @@
1
1
  export * from './redis';
2
2
  export * from './settings';
3
3
  export * from './test-utils';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=placeholder.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placeholder.test.d.ts","sourceRoot":"","sources":["../../src/placeholder.test.ts"],"names":[],"mappings":""}
@@ -5,3 +5,4 @@ export * from './publish';
5
5
  export * from './storage';
6
6
  export * from './repository';
7
7
  export * from './redis-event-adapter';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/redis/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,oBAAoB,CAAA;AAClC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA"}
@@ -19,3 +19,4 @@ export declare function sendMessage<T = string>(context: Context, channel: strin
19
19
  * @returns A dedicated connection to handle the subscription on. NOTE: Close this connection to unsubscribe.
20
20
  */
21
21
  export declare function onMessage<T = string>(context: Context, channel: string | string[], messageHandler: MessageHandler<T>): import("ioredis").default;
22
+ //# sourceMappingURL=publish.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../src/redis/publish.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAAC,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAO5G;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC,6BAapH"}
@@ -18,3 +18,4 @@ export declare function pushMessage<T = string>(context: Context, channel: strin
18
18
  * @param channel The channel to receive messages on
19
19
  */
20
20
  export declare function onFulfillMessage<T>(context: Context, channel: string, handler: MessageHandler<T>): Promise<() => boolean>;
21
+ //# sourceMappingURL=queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/redis/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,SAAS,CAAA;AAE1D;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAAC,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,qBAOrG;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,0BAkBtG"}
@@ -8,3 +8,4 @@ export declare class RedisEventAdapter {
8
8
  protected onMessage: (pattern: string, channel: string, message: string) => void;
9
9
  unsubscribe(): void;
10
10
  }
11
+ //# sourceMappingURL=redis-event-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-event-adapter.d.ts","sourceRoot":"","sources":["../../../src/redis/redis-event-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,eAAe,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAEhC,qBAAa,iBAAiB;IAEtB,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK;IACnC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,KAAK;gBAFjB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,KAAK,EAChB,UAAU,EAAE,KAAK;IAsBxC,SAAS,CAAC,SAAS,GAAI,SAAS,MAAM,EAAE,SAAS,MAAM,EAAE,SAAS,MAAM,UAcvE;IAED,WAAW;CAId"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=redis-event-adapter.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-event-adapter.test.d.ts","sourceRoot":"","sources":["../../../src/redis/redis-event-adapter.test.ts"],"names":[],"mappings":""}
@@ -36,3 +36,4 @@ export declare function useRedisOptions(context: Context): RedisOptions;
36
36
  */
37
37
  export declare function createRedis(context: Context): RedisInstance;
38
38
  export declare function useRedisRepository<T = string>(context: Context): RedisRepository<T>;
39
+ //# sourceMappingURL=redis-middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-middleware.d.ts","sourceRoot":"","sources":["../../../src/redis/redis-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAO,MAAM,eAAe,CAAA;AAC5C,OAAc,EAAE,KAAK,IAAI,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,eAAO,MAAM,WAAW;;;CAGvB,CAAA;AAED,eAAO,MAAM,gBAAgB,eAAW,CAAA;AACxC,eAAO,MAAM,aAAa,eAAW,CAAA;AACrC,eAAO,MAAM,aAAa,eAAW,CAAA;AACrC,eAAO,MAAM,iBAAiB,eAAW,CAAA;AAEzC;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,YAAY,MAAY,SAAS,OAAO,kBAmBhF,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAQxD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,CAI9D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAU3D;AAED,wBAAgB,kBAAkB,CAAC,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,eAAe,CAAC,CAAC,CAAC,CAMnF"}
@@ -14,3 +14,4 @@ export declare class RedisRepository<T> {
14
14
  onSet(handler: RepositoryEventHandler<T>): () => void;
15
15
  onGet(handler: RepositoryEventHandler<T>): () => void;
16
16
  }
17
+ //# sourceMappingURL=repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../src/redis/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAG/B,oBAAY,oBAAoB;IAC5B,GAAG,QAAQ;IACX,GAAG,QAAQ;CACd;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,oBAAoB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,GAAG,CAAA;AAEjG,qBAAa,eAAe,CAAC,CAAC;IAMd,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK;IAL3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAGxB;gBAE8B,KAAK,EAAE,KAAK;IAErC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAUvC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAgBpD,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC;IAQlE,KAAK,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC;IAIxC,KAAK,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC;CAG3C"}
@@ -1,3 +1,4 @@
1
1
  import { Context } from '@declaro/core';
2
2
  export declare function set<T>(context: Context, id: string, item: T): Promise<"OK">;
3
3
  export declare function get<T>(context: Context, id: string): Promise<T | null | undefined>;
4
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/redis/storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,wBAAsB,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,iBAMjE;AAED,wBAAsB,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,iCAQxD"}
@@ -11,3 +11,4 @@ export declare function serialize<T = string>(message: T): string;
11
11
  */
12
12
  export declare function unserialize<T = string>(message?: string | null): T | null | undefined;
13
13
  export type MessageHandler<T = string> = (message?: T) => any;
14
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/redis/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,CAAC,UAE/C;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,CAKrF;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,GAAG,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from './setting';
2
2
  export * from './site';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA"}
@@ -20,3 +20,4 @@ export declare class ConfigSet<T extends object> {
20
20
  }>;
21
21
  get(context: Context, key: string): Promise<T>;
22
22
  }
23
+ //# sourceMappingURL=setting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting.d.ts","sourceRoot":"","sources":["../../../src/settings/setting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAIvC,eAAO,MAAM,YAAY,oBAAoB,CAAA;AAC7C,eAAO,MAAM,mBAAmB,8BAA8B,CAAA;AAE9D,qBAAa,MAAM,CAAC,CAAC,GAAG,GAAG;aACK,SAAS,EAAE,MAAM;aAAkB,YAAY,CAAC,EAAE,CAAC;gBAAnD,SAAS,EAAE,MAAM,EAAkB,YAAY,CAAC,EAAE,CAAC,YAAA;IAE/E,OAAO,KAAK,YAAY,GAEvB;IAEK,GAAG,CAAC,OAAO,EAAE,OAAO;IAWpB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;CAQhD;AAED,qBAAa,SAAS,CAAC,CAAC,SAAS,MAAM;aACP,SAAS,EAAE,MAAM;aAAkB,aAAa,EAAE,CAAC;gBAAnD,SAAS,EAAE,MAAM,EAAkB,aAAa,EAAE,CAAC;IAE/E,OAAO,KAAK,YAAY,GAEvB;IAEK,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,CAAC,CAAM;IAa1D,MAAM,CAAC,OAAO,EAAE,OAAO;;;IAiBvB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAUvD"}
@@ -3,3 +3,4 @@ export declare const siteConfig: ConfigSet<{
3
3
  domain: string;
4
4
  email: string;
5
5
  }>;
6
+ //# sourceMappingURL=site.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../../src/settings/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,eAAO,MAAM,UAAU;;;EAGrB,CAAA"}
@@ -1,2 +1,3 @@
1
1
  import { Context } from '@declaro/core';
2
2
  export declare const mockRedisMiddleware: () => (context: Context) => Promise<void>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAKvC,eAAO,MAAM,mBAAmB,SAAgB,SAAS,OAAO,kBAS/D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@declaro/redis",
3
- "version": "2.0.0-beta.57",
3
+ "version": "2.0.0-beta.59",
4
4
  "description": "Redis tools for Declaro",
5
5
  "main": "dist/node/index.cjs",
6
6
  "module": "dist/browser/index.js",
@@ -22,7 +22,7 @@
22
22
  "typecheck": "bun tsc --noEmit"
23
23
  },
24
24
  "devDependencies": {
25
- "@declaro/core": "^2.0.0-beta.57",
25
+ "@declaro/core": "^2.0.0-beta.59",
26
26
  "@types/ioredis-mock": "^8.2.5",
27
27
  "@vitest/coverage-v8": "^0.32.2",
28
28
  "ioredis": "^5.5.0",
@@ -45,7 +45,7 @@
45
45
  "url": "https://github.com/emmertio/declaro/issues"
46
46
  },
47
47
  "homepage": "https://github.com/emmertio/declaro/tree/main#readme",
48
- "gitHead": "4376aa5dbcc94470bfb9f521b44ddd1165d40564",
48
+ "gitHead": "97e16a1abf78db8a4a48220183a0d9c9e9b97928",
49
49
  "exports": {
50
50
  "import": "./dist/node/index.js",
51
51
  "require": "./dist/node/index.cjs",
package/tsconfig.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "esModuleInterop": true,
5
5
  "allowSyntheticDefaultImports": true,
6
6
  "declaration": true,
7
+ "declarationMap": true,
7
8
  "sourceMap": true
8
9
  },
9
10
  "include": ["src/*.ts", "src/**/*.ts", "src/**/*.d.ts"],