wasm-json-toolkit
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -506,4 +506,5 @@ const Buffer = require('safe-buffer').Buffer | ||
_exports.generate = (json, stream = new Stream()) => { | ||
_exports.generatePreramble(json.shift(), stream) | ||
for (let item of json) { | ||
const [ preamble, ...rest ] = json | ||
_exports.generatePreramble(preamble, stream) | ||
for (let item of rest) { | ||
sectionGenerators[item.name](item, stream) | ||
@@ -510,0 +511,0 @@ } |
{ | ||
"name": "wasm-json-toolkit", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "this convertes wasm binaries to json and json to wasm binaries", | ||
@@ -31,4 +31,4 @@ "main": "index.js", | ||
"nyc": "11.6.0", | ||
"standard": "^11.0.0", | ||
"tape": "^4.8.0" | ||
"standard": "^11.0.1", | ||
"tape": "^4.9.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "repository": { |
@@ -35,3 +35,5 @@ const fs = require('fs') | ||
t.deepEquals(expectedJson, json, 'initial json should not be mutated') | ||
t.end() | ||
}) |
@@ -11,3 +11,3 @@ const fs = require('fs') | ||
const json = wasm2json(binary, new Set(['export'])) | ||
t.equals(json.length, 1, 'shoudl have correct length') | ||
t.equals(json.length, 1, 'should have correct length') | ||
t.end() | ||
@@ -14,0 +14,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
293462
399
2136