@semaphore-protocol/proof 3.12.1 → 3.12.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/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/proof",
3
- "version": "3.12.1",
3
+ "version": "3.12.3",
4
4
  "description": "A library to generate and verify Semaphore proofs.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.node.js",
7
7
  "exports": {
8
- "import": "./dist/index.mjs",
9
- "require": "./dist/index.node.js"
8
+ "node": {
9
+ "import": "./dist/index.node.mjs",
10
+ "require": "./dist/index.node.js"
11
+ },
12
+ "browser": "./dist/index.browser.mjs",
13
+ "default": "./dist/index.browser.mjs"
10
14
  },
11
15
  "types": "dist/types/index.d.ts",
12
16
  "files": [
@@ -22,7 +26,9 @@
22
26
  },
23
27
  "scripts": {
24
28
  "build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
25
- "build": "rimraf dist && rollup -c rollup.config.ts --configPlugin typescript",
29
+ "build": "rimraf dist && yarn build:browser && yarn build:node",
30
+ "build:browser": "rollup -c rollup.browser.config.ts --configPlugin typescript",
31
+ "build:node": "rollup -c rollup.node.config.ts --configPlugin typescript",
26
32
  "prepublishOnly": "yarn build"
27
33
  },
28
34
  "publishConfig": {
@@ -32,21 +38,25 @@
32
38
  "@rollup/plugin-commonjs": "^24.1.0",
33
39
  "@rollup/plugin-json": "^5.0.1",
34
40
  "@rollup/plugin-node-resolve": "^15.0.2",
41
+ "@rollup/plugin-replace": "^5.0.3",
42
+ "@rollup/plugin-virtual": "^3.0.2",
35
43
  "ffjavascript": "^0.2.54",
36
44
  "poseidon-lite": "^0.2.0",
45
+ "rimraf": "^5.0.5",
46
+ "rollup": "^4.0.2",
37
47
  "rollup-plugin-cleanup": "^3.2.1",
38
- "rollup-plugin-typescript2": "^0.31.2"
48
+ "rollup-plugin-typescript2": "^0.31.2",
49
+ "snarkjs": "0.7.1"
39
50
  },
40
51
  "peerDependencies": {
41
- "@semaphore-protocol/group": "3.12.1",
42
- "@semaphore-protocol/identity": "3.12.1"
52
+ "@semaphore-protocol/group": "3.12.3",
53
+ "@semaphore-protocol/identity": "3.12.3"
43
54
  },
44
55
  "dependencies": {
45
56
  "@ethersproject/bignumber": "^5.5.0",
46
57
  "@ethersproject/bytes": "^5.7.0",
47
58
  "@ethersproject/keccak256": "^5.7.0",
48
59
  "@ethersproject/strings": "^5.5.0",
49
- "@zk-kit/incremental-merkle-tree": "0.4.3",
50
- "snarkjs": "0.7.1"
60
+ "@zk-kit/incremental-merkle-tree": "0.4.3"
51
61
  }
52
62
  }