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

primea-annotations

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

primea-annotations - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

.nyc_output/448e6de91586ce4e2325e4d98ef095c8.json

30

index.js

@@ -12,9 +12,3 @@ const Stream = require('buffer-pipe')

'f64': 0x7c,
'anyref': 0x70,
'module': 0x6f,
'func': 0x6e,
'data': 0x6d,
'elem': 0x6c,
'link': 0x6b,
'id': 0x6a
'anyref': 0x70
}

@@ -27,9 +21,3 @@

0x7c: 'f64',
0x70: 'anyref',
0x6f: 'module',
0x6e: 'func',
0x6d: 'data',
0x6c: 'elem',
0x6b: 'link',
0x6a: 'id'
0x70: 'anyref'
}

@@ -114,3 +102,4 @@

const index = leb.unsigned.readBn(stream).toNumber()
const type = LANGUAGE_TYPES_BIN[leb.unsigned.readBn(stream).toNumber()]
const t = leb.unsigned.readBn(stream).toNumber()
const type = LANGUAGE_TYPES_BIN[t]
if (!type) {

@@ -281,4 +270,11 @@ throw new Error('invalid param')

const mappedTypes = new Map()
let type, imports, functions
let type = {
entries: []
}
let functions = {
entries: []
}
let imports = {
entries: []
}
for (const section of json) {

@@ -285,0 +281,0 @@ const name = section.name

{
"name": "primea-annotations",
"version": "0.0.4",
"version": "0.0.5",
"description": "parsing/encoding for primea's type annotations",

@@ -24,3 +24,3 @@ "main": "index.js",

"leb128": "0.0.4",
"safe-buffer": "^5.1.1"
"safe-buffer": "^5.1.2"
},

@@ -27,0 +27,0 @@ "devDependencies": {

@@ -25,3 +25,3 @@ const tape = require('tape')

'params': [
'func'
'anyref'
]

@@ -99,3 +99,3 @@ }, {

'index': 0,
'type': 'data'
'type': 'anyref'
}]

@@ -102,0 +102,0 @@ }

@@ -5,3 +5,3 @@ {

"params": [
"func"
"anyref"
]

@@ -8,0 +8,0 @@ }],

@@ -5,4 +5,4 @@ {

"index": 0,
"type": "data"
"type": "anyref"
}]
}

@@ -5,4 +5,4 @@ {

"params": [
"func",
"func"
"anyref",
"anyref"
]

@@ -9,0 +9,0 @@ }],

@@ -5,4 +5,4 @@ {

"params": [
"func",
"func",
"anyref",
"anyref",
]

@@ -9,0 +9,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