Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wasm-json-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wasm-json-toolkit - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

jsonBuilder.js

5

json2wasm.js

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

6

package.json
{
"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 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc