@couch-kit/cli 0.3.2 → 0.3.4

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +6 -4
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,12 +1,15 @@
1
1
  {
2
2
  "name": "@couch-kit/cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
7
7
  },
8
8
  "description": "CLI tools for Couch Kit party games — bundle web controllers, simulate clients, and scaffold projects",
9
9
  "license": "MIT",
10
+ "engines": {
11
+ "node": ">=18.0.0"
12
+ },
10
13
  "repository": {
11
14
  "type": "git",
12
15
  "url": "https://github.com/faluciano/react-native-couch-kit.git",
@@ -36,11 +39,10 @@
36
39
  "clean": "rm -rf dist"
37
40
  },
38
41
  "dependencies": {
39
- "@couch-kit/core": "0.8.2",
42
+ "@couch-kit/core": "0.9.0",
40
43
  "commander": "^12.0.0"
41
44
  },
42
45
  "devDependencies": {
43
- "typescript": "^5.4.0",
44
- "eslint": "^8.57.0"
46
+ "typescript": "^5.4.0"
45
47
  }
46
48
  }