Merge branch 'master' of https://github.com/iden3/snarkjs into fresh

This commit is contained in:
Nalin Bhardwaj 2022-01-22 01:35:18 -08:00
commit b214d28859
3 changed files with 1199 additions and 3065 deletions

@ -1,6 +1,5 @@
import { nodeResolve } from "@rollup/plugin-node-resolve";
import commonJS from "@rollup/plugin-commonjs";
import inject from "@rollup/plugin-inject";
import virtual from "@rollup/plugin-virtual";
import replace from "@rollup/plugin-replace";
import visualizer from "rollup-plugin-visualizer";
@ -25,8 +24,6 @@ export default {
crypto: empty,
readline: empty,
ejs: empty,
// Stub out a "global" module that we can inject later
global: empty,
}),
nodeResolve({
browser: true,
@ -35,12 +32,10 @@ export default {
}),
commonJS(),
replace({
// The current default is false, but they are changing it next version
preventAssignment: false,
"process.browser": !!process.env.BROWSER
}),
inject({
// Inject the "global" virtual module if we see any reference to `global` in the code
global: "global",
}),
visualizer(),
]
};

4248
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,7 +1,7 @@
{
"name": "snarkjs",
"type": "module",
"version": "0.4.11",
"version": "0.4.12",
"description": "zkSNARKs implementation in JavaScript",
"main": "./build/main.cjs",
"module": "./main.js",
@ -51,14 +51,13 @@
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-inject": "^4.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.1.0",
"@rollup/plugin-replace": "^2.3.4",
"@rollup/plugin-virtual": "^2.0.3",
"chai": "^4.2.0",
"eslint": "^6.8.0",
"mocha": "^7.1.1",
"eslint": "^8.7.0",
"mocha": "^9.1.4",
"rollup": "^2.36.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-visualizer": "^4.2.0"