diff --git a/build/main.cjs b/build/main.cjs index 948162a..8eba996 100644 --- a/build/main.cjs +++ b/build/main.cjs @@ -136,6 +136,9 @@ async function builder(code, options) { "memory": memory }, runtime: { + printDebug : function(value) { + console.log("printDebug:", value); + }, exceptionHandler: function (code) { let err; if (code === 1) { diff --git a/js/witness_calculator.js b/js/witness_calculator.js index c2522d8..10eb8ec 100644 --- a/js/witness_calculator.js +++ b/js/witness_calculator.js @@ -76,6 +76,9 @@ export default async function builder(code, options) { "memory": memory }, runtime: { + printDebug : function(value) { + console.log("printDebug:", value); + }, exceptionHandler: function (code) { let err; if (code === 1) { diff --git a/package-lock.json b/package-lock.json index cc13840..ab82fa6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "eslint": "^8.17.0", "fastfile": "^0.0.20", "mocha": "^10.7.3", - "rollup": "^2.36.2", + "rollup": "^2.39.1", "snarkjs": "^0.7.4" } }, @@ -1775,10 +1775,11 @@ } }, "node_modules/rollup": { - "version": "2.79.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", - "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "version": "2.79.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", + "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", "dev": true, + "license": "MIT", "bin": { "rollup": "dist/bin/rollup" }, @@ -3448,9 +3449,9 @@ } }, "rollup": { - "version": "2.79.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", - "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "version": "2.79.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", + "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", "dev": true, "requires": { "fsevents": "~2.3.2" diff --git a/package.json b/package.json index df76c90..92aaa98 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "eslint": "^8.17.0", "fastfile": "^0.0.20", "mocha": "^10.7.3", - "rollup": "^2.36.2", + "rollup": "^2.39.1", "snarkjs": "^0.7.4" } }