@kwiz/node 1.0.18 → 1.0.20

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.
@@ -9,4 +9,4 @@ export declare function getWithCache<T>(worker: () => Promise<{
9
9
  /** must be unique for your call! function name, and parameters */
10
10
  cacheKey: string;
11
11
  forceRefresh?: boolean;
12
- }): Promise<any>;
12
+ }): Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/node",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "KWIZ utilities and helpers for node applications",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,8 +19,8 @@
19
19
  "check-dependencies": "madge --circular ./src",
20
20
  "create-link": "npm link",
21
21
  "test": "node --import tsx --test src",
22
- "npm-v-patch": "npm version patch && git push origin master && git push --tags",
23
- "npm-v-major": "npm version major && git push origin master && git push --tags",
22
+ "npm-v-patch": "npm version patch && git push origin main:main && git push --tags",
23
+ "npm-v-major": "npm version major && git push origin main:main && git push --tags",
24
24
  "npm-publish": "npm publish --access public",
25
25
  "reset-repo": "git fetch origin && git reset --hard origin/main",
26
26
  "__update-kwiz-packages": "npm install @kwiz/common@latest",
@@ -10,7 +10,7 @@ export async function getWithCache<T>(worker: () => Promise<{ success: boolean;
10
10
  /** must be unique for your call! function name, and parameters */
11
11
  cacheKey: string;
12
12
  forceRefresh?: boolean;
13
- }) {
13
+ }): Promise<T> {
14
14
  const now = new Date();
15
15
  //purge old values
16
16
  Object.keys($$cache).forEach(key => {