@unchainedshop/utils 2.0.6 → 2.0.7
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,5 @@
|
|
|
1
1
|
import Hashids from 'hashids';
|
|
2
|
-
const hashids = new Hashids('unchained', 6, '
|
|
2
|
+
const hashids = new Hashids('unchained', 6, 'ABCDEFGHIJKLMNPQRSTUVWXYZ23456789');
|
|
3
3
|
export default () => {
|
|
4
4
|
const randomNumber = Math.floor(Math.random() * (999999999 - 1)) + 1;
|
|
5
5
|
return hashids.encode(randomNumber);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-random-hash.js","sourceRoot":"","sources":["../src/generate-random-hash.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"generate-random-hash.js","sourceRoot":"","sources":["../src/generate-random-hash.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,mCAAmC,CAAC,CAAC;AAEjF,eAAe,GAAG,EAAE;IAClB,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACrE,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AACtC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"main": "lib/utils-index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./lib/utils-index.js",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/unchainedshop/unchained#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@unchainedshop/logger": "^2.0.
|
|
33
|
+
"@unchainedshop/logger": "^2.0.7",
|
|
34
34
|
"abort-controller": "3.0.0",
|
|
35
35
|
"bson": "^4.7.2",
|
|
36
|
-
"hashids": "^2.2.
|
|
36
|
+
"hashids": "^2.2.11",
|
|
37
37
|
"jest": "^29.4.3",
|
|
38
38
|
"locale": "0.1.0",
|
|
39
39
|
"lru-cache": "^7.14.1",
|
|
40
40
|
"simpl-schema": "=3.2.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^18.
|
|
44
|
-
"@unchainedshop/types": "^2.0.
|
|
43
|
+
"@types/node": "^18.14.0",
|
|
44
|
+
"@unchainedshop/types": "^2.0.7",
|
|
45
45
|
"typescript": "^4.9.5"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Hashids from 'hashids';
|
|
2
2
|
|
|
3
|
-
const hashids = new Hashids('unchained', 6, '
|
|
3
|
+
const hashids = new Hashids('unchained', 6, 'ABCDEFGHIJKLMNPQRSTUVWXYZ23456789');
|
|
4
4
|
|
|
5
5
|
export default () => {
|
|
6
6
|
const randomNumber = Math.floor(Math.random() * (999999999 - 1)) + 1;
|