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.2 to 0.0.3

9

index.js

@@ -6,2 +6,3 @@ const Stream = require('buffer-pipe')

const nativeTypes = new Set(['i32', 'i64', 'f32', 'f64'])
const FUNC_TYPE = 0x60

@@ -311,5 +312,7 @@ const LANGUAGE_TYPES_STRG = {

if (!newType.params.every(param => param === 'i32')) {
throw new Error('invalid base param type')
}
newType.params.forEach((param, index) => {
if (!nativeTypes.has(customType.params[index]) && param !== 'i32') {
throw new Error('invalid base param type')
}
})
}

@@ -316,0 +319,0 @@

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

@@ -5,0 +5,0 @@ "main": "index.js",

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