deps and fix version display

This commit is contained in:
Jordi Baylina 2020-07-29 09:08:09 +02:00
parent aeb1414cdb
commit c2f8b58c3b
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
7 changed files with 18 additions and 13 deletions

@ -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

File diff suppressed because one or more lines are too long

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);