@couch-kit/cli 0.3.2 → 0.3.3
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/index.js +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1911,12 +1911,12 @@ var init_protocol = __esm(() => {
|
|
|
1911
1911
|
|
|
1912
1912
|
// ../core/src/constants.ts
|
|
1913
1913
|
function generateId() {
|
|
1914
|
-
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
1915
|
-
return crypto.randomUUID();
|
|
1914
|
+
if (typeof globalThis.crypto !== "undefined" && typeof globalThis.crypto.randomUUID === "function") {
|
|
1915
|
+
return globalThis.crypto.randomUUID();
|
|
1916
1916
|
}
|
|
1917
|
-
if (typeof crypto !== "undefined" && typeof crypto.getRandomValues === "function") {
|
|
1917
|
+
if (typeof globalThis.crypto !== "undefined" && typeof globalThis.crypto.getRandomValues === "function") {
|
|
1918
1918
|
const bytes = new Uint8Array(16);
|
|
1919
|
-
crypto.getRandomValues(bytes);
|
|
1919
|
+
globalThis.crypto.getRandomValues(bytes);
|
|
1920
1920
|
return Array.from(bytes).map((b2) => b2.toString(16).padStart(2, "0")).join("");
|
|
1921
1921
|
}
|
|
1922
1922
|
const a = Math.random().toString(36).substring(2, 15);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@couch-kit/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"clean": "rm -rf dist"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@couch-kit/core": "0.8.
|
|
39
|
+
"@couch-kit/core": "0.8.3",
|
|
40
40
|
"commander": "^12.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|