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

protodef

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protodef - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

4

doc/history.md
# History
## 1.8.2
* fixed aliases in compiler for write and size (thanks @Karang)
## 1.8.1

@@ -4,0 +8,0 @@

2

package.json
{
"name": "protodef",
"version": "1.8.1",
"version": "1.8.2",
"description": "A simple yet powerful way to define binary protocols",

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

@@ -223,3 +223,5 @@ const numeric = require('./datatypes/numeric')

functions[type] = this.compileType(this.types[type])
if (functions[type].startsWith('ctx')) { functions[type] = this.wrapCode('return ' + this.callType(functions[type].split('.')[1])) }
if (functions[type].startsWith('ctx')) {
functions[type] = 'function () { return ' + functions[type] + '(...arguments) }'
}
if (!isNaN(functions[type])) { functions[type] = this.wrapCode(' return ' + functions[type]) }

@@ -226,0 +228,0 @@ } else {

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