@ricsam/quickjs-runtime 0.2.16 → 0.2.17

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/README.md CHANGED
@@ -20,6 +20,8 @@ const handle = setupRuntime(context, {
20
20
  onLog: (level, args) => console.log(`[${level}]`, ...args),
21
21
  },
22
22
  },
23
+ // Crypto API - pass true to enable
24
+ crypto: true,
23
25
  // Encoding API (atob/btoa) - pass true to enable
24
26
  encoding: true,
25
27
  });
@@ -29,6 +31,7 @@ handle.core; // CoreHandle (always present)
29
31
  handle.fetch; // FetchHandle (if enabled)
30
32
  handle.fs; // FsHandle (if enabled)
31
33
  handle.console; // ConsoleHandle (if enabled)
34
+ handle.crypto; // CryptoHandle (if enabled)
32
35
  handle.encoding; // EncodingHandle (if enabled)
33
36
 
34
37
  handle.dispose(); // Cleanup all
@@ -40,6 +43,7 @@ handle.dispose(); // Cleanup all
40
43
  const handle = setupRuntime(context, {
41
44
  fetch: true, // Enable fetch with default options
42
45
  console: true, // Enable console with no handlers (silent)
46
+ crypto: true, // Enable Web Crypto API
43
47
  encoding: true, // Enable atob/btoa
44
48
  });
45
49
  ```
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/quickjs-runtime",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "type": "commonjs"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/quickjs-runtime",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "type": "module"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/quickjs-runtime",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "main": "./dist/cjs/index.cjs",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "exports": {
@@ -16,13 +16,13 @@
16
16
  "typecheck": "tsc --noEmit"
17
17
  },
18
18
  "dependencies": {
19
- "@ricsam/quickjs-core": "^0.2.13",
20
- "@ricsam/quickjs-console": "^0.2.13",
21
- "@ricsam/quickjs-crypto": "^0.2.13",
22
- "@ricsam/quickjs-encoding": "^0.2.13",
23
- "@ricsam/quickjs-fetch": "^0.2.14",
24
- "@ricsam/quickjs-fs": "^0.2.13",
25
- "@ricsam/quickjs-timers": "^0.2.13",
19
+ "@ricsam/quickjs-core": "^0.2.14",
20
+ "@ricsam/quickjs-console": "^0.2.14",
21
+ "@ricsam/quickjs-crypto": "^0.2.14",
22
+ "@ricsam/quickjs-encoding": "^0.2.14",
23
+ "@ricsam/quickjs-fetch": "^0.2.15",
24
+ "@ricsam/quickjs-fs": "^0.2.14",
25
+ "@ricsam/quickjs-timers": "^0.2.14",
26
26
  "quickjs-emscripten": "^0.31.0"
27
27
  },
28
28
  "peerDependencies": {