@varius.io/framework 8.15.14 → 8.15.15

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.
@@ -1,3 +1,3 @@
1
1
  /** Generate a unique short uuid that has a very small chance of collisions. */
2
- export declare const generateId: string;
2
+ export declare const generateId: () => string;
3
3
  //# sourceMappingURL=id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":"AAKA,+EAA+E;AAC/E,eAAO,MAAM,UAAU,QAA8B,CAAC"}
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":"AAKA,+EAA+E;AAC/E,eAAO,MAAM,UAAU,cAGtB,CAAC"}
package/build/utils/id.js CHANGED
@@ -5,5 +5,8 @@ const nanoid_1 = require("nanoid");
5
5
  const ALPH = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
6
6
  const LEN = 10;
7
7
  /** Generate a unique short uuid that has a very small chance of collisions. */
8
- exports.generateId = nanoid_1.customAlphabet(ALPH, LEN)();
8
+ exports.generateId = () => {
9
+ const nanoid = nanoid_1.customAlphabet(ALPH, LEN);
10
+ return nanoid();
11
+ };
9
12
  //# sourceMappingURL=id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,MAAM,IAAI,GAAG,gEAAgE,CAAC;AAC9E,MAAM,GAAG,GAAG,EAAE,CAAC;AAEf,+EAA+E;AAClE,QAAA,UAAU,GAAG,uBAAc,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC"}
1
+ {"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,MAAM,IAAI,GAAG,gEAAgE,CAAC;AAC9E,MAAM,GAAG,GAAG,EAAE,CAAC;AAEf,+EAA+E;AAClE,QAAA,UAAU,GAAG,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,uBAAc,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IACxC,OAAO,MAAM,EAAE,CAAA;AACnB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varius.io/framework",
3
- "version": "8.15.14",
3
+ "version": "8.15.15",
4
4
  "main": "./build/index.js",
5
5
  "type": "./build/index.d.ts",
6
6
  "scripts": {