@kapa123456789/sdk 0.0.39 → 0.0.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kapa123456789/sdk",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "homepage": "hinkal.io",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -4,50 +4,50 @@ import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
4
4
  import { polyfillConstants } from '../../../vite.common';
5
5
 
6
6
  const NODE_BUILTINS = ['worker_threads', 'path', 'fs', 'os', 'crypto', 'stream', 'buffer'];
7
- const MUST_BUNDLE = [
8
- 'snarkjs',
9
- '@iden3/binfileutils',
10
- 'fastfile',
11
- 'ffjavascript',
12
- 'wasmbuilder',
13
- 'wasmcurves',
14
- 'web-worker',
15
- 'bfj',
16
- 'bluebird',
17
- 'check-types',
18
- 'hoopy',
19
- 'jsonpath',
20
- 'esprima',
21
- 'static-eval',
22
- 'escodegen',
23
- 'estraverse',
24
- 'esutils',
25
- 'underscore',
26
- 'tryer',
27
- 'blake2b-wasm',
28
- 'b4a',
29
- 'nanoassert',
30
- 'circom_runtime',
31
- 'ejs',
32
- 'jake',
33
- 'async',
34
- 'filelist',
35
- 'minimatch',
36
- 'brace-expansion',
37
- 'balanced-match',
38
- 'picocolors',
39
- 'js-sha3',
40
- 'logplease',
41
- 'r1csfile',
42
- '@iden3/bigarray',
43
- // circomlibjs-hinkal-fork: external — loaded from node_modules at runtime (see poseidon/babyJub dynamic import + workerThreadsPatch)
44
- ];
7
+ // const MUST_BUNDLE = [
8
+ // 'snarkjs',
9
+ // '@iden3/binfileutils',
10
+ // 'fastfile',
11
+ // 'ffjavascript',
12
+ // 'wasmbuilder',
13
+ // 'wasmcurves',
14
+ // 'web-worker',
15
+ // 'bfj',
16
+ // 'bluebird',
17
+ // 'check-types',
18
+ // 'hoopy',
19
+ // 'jsonpath',
20
+ // 'esprima',
21
+ // 'static-eval',
22
+ // 'escodegen',
23
+ // 'estraverse',
24
+ // 'esutils',
25
+ // 'underscore',
26
+ // 'tryer',
27
+ // 'blake2b-wasm',
28
+ // 'b4a',
29
+ // 'nanoassert',
30
+ // 'circom_runtime',
31
+ // 'ejs',
32
+ // 'jake',
33
+ // 'async',
34
+ // 'filelist',
35
+ // 'minimatch',
36
+ // 'brace-expansion',
37
+ // 'balanced-match',
38
+ // 'picocolors',
39
+ // 'js-sha3',
40
+ // 'logplease',
41
+ // 'r1csfile',
42
+ // '@iden3/bigarray',
43
+ // // circomlibjs-hinkal-fork: external — loaded from node_modules at runtime (see poseidon/babyJub dynamic import + workerThreadsPatch)
44
+ // ];
45
45
 
46
46
  const isBareImport = (id: string) =>
47
47
  !id.startsWith('.') && !id.startsWith('/') && !id.startsWith(':/', 1) && !id.startsWith(':\\', 1);
48
48
 
49
49
  const isNodeWorkerExternal = (id: string) => {
50
- if (MUST_BUNDLE.includes(id)) return false;
50
+ // if (MUST_BUNDLE.includes(id)) return false;
51
51
  if (NODE_BUILTINS.includes(id)) return true;
52
52
  if (isBareImport(id)) return true;
53
53
  };