@minion-stack/shared 0.8.0 → 0.8.1
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.
- package/dist/utils/uuid.d.ts +1 -1
- package/dist/utils/uuid.d.ts.map +1 -1
- package/dist/utils/uuid.js +3 -8
- package/dist/utils/uuid.js.map +1 -1
- package/package.json +1 -1
package/dist/utils/uuid.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare const uuid: () => string;
|
|
2
2
|
//# sourceMappingURL=uuid.d.ts.map
|
package/dist/utils/uuid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,QAAO,MAA6B,CAAC"}
|
package/dist/utils/uuid.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
|
|
5
|
-
const r = (Math.random() * 16) | 0;
|
|
6
|
-
return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16);
|
|
7
|
-
});
|
|
8
|
-
}
|
|
1
|
+
// ponytail: crypto.randomUUID is native in Node 15.7+ and all browser secure
|
|
2
|
+
// contexts (https + localhost). No fallback needed.
|
|
3
|
+
export const uuid = () => crypto.randomUUID();
|
|
9
4
|
//# sourceMappingURL=uuid.js.map
|
package/dist/utils/uuid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,oDAAoD;AACpD,MAAM,CAAC,MAAM,IAAI,GAAG,GAAW,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC"}
|