@aztec/foundation
Advanced tools
Comparing version 0.1.0-alpha44 to 0.1.0-alpha45
@@ -186,5 +186,5 @@ /** | ||
/** | ||
* The debug information for each function. | ||
* The DebugInfo object, deflated as JSON, compressed using gzip and serialized with base64. | ||
*/ | ||
debugSymbols: DebugInfo[]; | ||
debugSymbols: string[]; | ||
/** | ||
@@ -191,0 +191,0 @@ * The map of file ID to the source code and path of the file. |
@@ -0,1 +1,2 @@ | ||
import { inflate } from 'pako'; | ||
/** | ||
@@ -27,3 +28,3 @@ * Indicates whether a parameter is public or secret/private. | ||
if (abi.debug && functionIndex !== -1) { | ||
const debugSymbols = abi.debug.debugSymbols[functionIndex]; | ||
const debugSymbols = JSON.parse(inflate(Buffer.from(abi.debug.debugSymbols[functionIndex], 'base64'), { to: 'string' })); | ||
const files = abi.debug.fileMap; | ||
@@ -37,2 +38,2 @@ return { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FiaS9hYmkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBY0E7O0dBRUc7QUFDSCxNQUFNLENBQU4sSUFBWSxzQkFHWDtBQUhELFdBQVksc0JBQXNCO0lBQ2hDLDJDQUFpQixDQUFBO0lBQ2pCLDJDQUFpQixDQUFBO0FBQ25CLENBQUMsRUFIVyxzQkFBc0IsS0FBdEIsc0JBQXNCLFFBR2pDO0FBMkVEOztHQUVHO0FBQ0gsTUFBTSxDQUFOLElBQVksWUFJWDtBQUpELFdBQVksWUFBWTtJQUN0QixpQ0FBaUIsQ0FBQTtJQUNqQiw2QkFBYSxDQUFBO0lBQ2IsK0NBQStCLENBQUE7QUFDakMsQ0FBQyxFQUpXLFlBQVksS0FBWixZQUFZLFFBSXZCO0FBaUpEOzs7OztHQUtHO0FBQ0gsTUFBTSxVQUFVLHdCQUF3QixDQUFDLEdBQWdCLEVB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BQVksS0FBWixZQUFZLFFBSXZCO0FBaUpEOzs7OztHQUtHO0FBQ0gsTUFBTSxVQUFVLHdCQUF3QixDQUFDLEdBQWdCLEVBQUUsWUFBb0I7SUFDN0UsTUFBTSxhQUFhLEdBQUcsR0FBRyxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxLQUFLLFlBQVksQ0FBQyxDQUFDO0lBQzVFLElBQUksR0FBRyxDQUFDLEtBQUssSUFBSSxhQUFhLEtBQUssQ0FBQyxDQUFDLEVBQUU7UUFDckMsTUFBTSxZQUFZLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FDN0IsT0FBTyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMsYUFBYSxDQUFDLEVBQUUsUUFBUSxDQUFDLEVBQUUsRUFBRSxFQUFFLEVBQUUsUUFBUSxFQUFFLENBQUMsQ0FDeEYsQ0FBQztRQUNGLE1BQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDO1FBQ2hDLE9BQU87WUFDTCxZQUFZO1lBQ1osS0FBSztTQUNOLENBQUM7S0FDSDtJQUNELE9BQU8sU0FBUyxDQUFDO0FBQ25CLENBQUMifQ== |
{ | ||
"name": "@aztec/foundation", | ||
"version": "0.1.0-alpha44", | ||
"version": "0.1.0-alpha45", | ||
"exports": { | ||
@@ -47,4 +47,5 @@ "./eslint": "./.eslintrc.cjs", | ||
"memdown": "^6.1.1", | ||
"pako": "^2.1.0", | ||
"sha3": "^2.1.4" | ||
} | ||
} |
@@ -0,1 +1,3 @@ | ||
import { inflate } from 'pako'; | ||
/** | ||
@@ -205,5 +207,5 @@ * A named type. | ||
/** | ||
* The debug information for each function. | ||
* The DebugInfo object, deflated as JSON, compressed using gzip and serialized with base64. | ||
*/ | ||
debugSymbols: DebugInfo[]; | ||
debugSymbols: string[]; | ||
/** | ||
@@ -258,3 +260,5 @@ * The map of file ID to the source code and path of the file. | ||
if (abi.debug && functionIndex !== -1) { | ||
const debugSymbols = abi.debug.debugSymbols[functionIndex]; | ||
const debugSymbols = JSON.parse( | ||
inflate(Buffer.from(abi.debug.debugSymbols[functionIndex], 'base64'), { to: 'string' }), | ||
); | ||
const files = abi.debug.fileMap; | ||
@@ -261,0 +265,0 @@ return { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
956550
15626
14
+ Addedpako@^2.1.0
+ Addedpako@2.1.0(transitive)