@varius.io/framework 8.15.4 → 8.15.5

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,5 +1,3 @@
1
- /**
2
- * Generate a unique shortened uuid that has a very small chance of collisions.
3
- */
4
- export declare function generateId(): string;
1
+ /** Generate a unique short uuid that has a very small chance of collisions. */
2
+ export declare const generateId: () => string;
5
3
  //# sourceMappingURL=id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC"}
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":"AAKA,+EAA+E;AAC/E,eAAO,MAAM,UAAU,cAA4B,CAAC"}
package/build/utils/id.js CHANGED
@@ -1,13 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generateId = void 0;
4
- const generate = require("nanoid/generate");
5
- const NANO_ID_LENGTH = 10;
6
- /**
7
- * Generate a unique shortened uuid that has a very small chance of collisions.
8
- */
9
- function generateId() {
10
- return generate('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890', NANO_ID_LENGTH); //=> "4f90d13a42"
11
- }
12
- exports.generateId = generateId;
4
+ const nanoid_1 = require("nanoid");
5
+ const ALPH = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
6
+ const LEN = 10;
7
+ /** Generate a unique short uuid that has a very small chance of collisions. */
8
+ exports.generateId = nanoid_1.customAlphabet(ALPH, LEN);
13
9
  //# sourceMappingURL=id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE5C,MAAM,cAAc,GAAW,EAAE,CAAC;AAElC;;GAEG;AACH,SAAgB,UAAU;IACzB,OAAO,QAAQ,CAAC,gEAAgE,EAAE,cAAc,CAAC,CAAA,CAAC,iBAAiB;AACpH,CAAC;AAFD,gCAEC"}
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,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varius.io/framework",
3
- "version": "8.15.4",
3
+ "version": "8.15.5",
4
4
  "main": "./build/index.js",
5
5
  "type": "./build/index.d.ts",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "debug": "^4.3.1",
26
26
  "express": "^4.17.1",
27
27
  "jsonwebtoken": "^8.5.0",
28
- "nanoid": "^3.1.31",
28
+ "nanoid": "^3.2.0",
29
29
  "node-cache": "^4.2.0",
30
30
  "node-fetch": "^3.1.1",
31
31
  "pg": "^8.6.0",