deps and fix version display
This commit is contained in:
parent
aeb1414cdb
commit
c2f8b58c3b
@ -800,8 +800,8 @@ class FastFile$1 {
|
||||
r = r-l;
|
||||
p ++;
|
||||
o = 0;
|
||||
setImmediate(self._triggerWrite.bind(self));
|
||||
}
|
||||
setImmediate(self._triggerWrite.bind(self));
|
||||
}
|
||||
|
||||
async read(len, pos) {
|
||||
@ -1223,11 +1223,13 @@ async function r1csExportJson(r1csFileName, logger) {
|
||||
import pkg from "../package.json";
|
||||
const version = pkg.version;
|
||||
*/
|
||||
const __dirname$1 = path.dirname(new URL((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('cli.cjs', document.baseURI).href))).pathname);
|
||||
|
||||
let pkgS;
|
||||
try {
|
||||
pkgS = fs.readFileSync("package.json");
|
||||
pkgS = fs.readFileSync(path.join(__dirname$1, "package.json"));
|
||||
} catch (err) {
|
||||
pkgS = fs.readFileSync(path.join("..","package.json"));
|
||||
pkgS = fs.readFileSync(path.join(__dirname$1, "..","package.json"));
|
||||
}
|
||||
|
||||
const pkg = JSON.parse(pkgS);
|
||||
|
@ -196,8 +196,8 @@ class FastFile {
|
||||
r = r-l;
|
||||
p ++;
|
||||
o = 0;
|
||||
setImmediate(self._triggerWrite.bind(self));
|
||||
}
|
||||
setImmediate(self._triggerWrite.bind(self));
|
||||
}
|
||||
|
||||
async read(len, pos) {
|
||||
|
File diff suppressed because one or more lines are too long
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
File diff suppressed because one or more lines are too long
6
package-lock.json
generated
6
package-lock.json
generated
@ -658,9 +658,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"fastfile": {
|
||||
"version": "0.0.11",
|
||||
"resolved": "https://registry.npmjs.org/fastfile/-/fastfile-0.0.11.tgz",
|
||||
"integrity": "sha512-lQhN/GUUIxEpkR/4lNscFQaTAdBtxocUVCFBy+Pu+k+Jhh6pt1tfx+at15cKtnwnP1qnNq+dFAOYkaz0co0d+A=="
|
||||
"version": "0.0.12",
|
||||
"resolved": "https://registry.npmjs.org/fastfile/-/fastfile-0.0.12.tgz",
|
||||
"integrity": "sha512-0EZo2y5eW8X0oiDDRvcnufjVxlM96CQL5hvmRQtbRABWlCkH73IHwkzl0qOSdxtchaMr+0TSB7GVqaVEixRr1Q=="
|
||||
},
|
||||
"ffjavascript": {
|
||||
"version": "0.2.4",
|
||||
|
@ -40,7 +40,7 @@
|
||||
"dependencies": {
|
||||
"blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git",
|
||||
"circom_runtime": "0.0.9",
|
||||
"fastfile": "0.0.11",
|
||||
"fastfile": "0.0.12",
|
||||
"ffjavascript": "0.2.4",
|
||||
"keccak": "^3.0.0",
|
||||
"logplease": "^1.2.15",
|
||||
|
@ -3,13 +3,16 @@ import pkg from "../package.json";
|
||||
const version = pkg.version;
|
||||
*/
|
||||
|
||||
|
||||
import path from "path";
|
||||
import fs from "fs";
|
||||
const __dirname = path.dirname(new URL(import.meta.url).pathname);
|
||||
|
||||
let pkgS;
|
||||
try {
|
||||
pkgS = fs.readFileSync("package.json");
|
||||
pkgS = fs.readFileSync(path.join(__dirname, "package.json"));
|
||||
} catch (err) {
|
||||
pkgS = fs.readFileSync(path.join("..","package.json"));
|
||||
pkgS = fs.readFileSync(path.join(__dirname, "..","package.json"));
|
||||
}
|
||||
|
||||
const pkg = JSON.parse(pkgS);
|
||||
|
Loading…
Reference in New Issue
Block a user