🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

compact-encoding

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compact-encoding - npm Package Compare versions

Comparing version
2.19.0
to
2.19.1
+15
-1
index.js

@@ -668,3 +668,17 @@ const b4a = require('b4a')

const port = (exports.port = uint16)
const port = (exports.port = {
preencode(state, p) {
if (!p) throw new Error('Port must be >0 and <65536')
uint16.preencode(state, p)
},
encode(state, p) {
if (!p) throw new Error('Port must be >0 and <65536')
uint16.encode(state, p)
},
decode(state) {
const p = uint16.decode(state)
if (!p) throw new Error('Port must be >0 and <65536')
return p
}
})

@@ -671,0 +685,0 @@ const address = (host, family) => {

+4
-4
{
"name": "compact-encoding",
"version": "2.19.0",
"version": "2.19.1",
"description": "A series of compact encoding schemes for building small and fast parsers and serializers",

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

"type": "git",
"url": "https://github.com/compact-encoding/compact-encoding.git"
"url": "https://github.com/holepunchto/compact-encoding.git"
},

@@ -26,5 +26,5 @@ "author": "Mathias Buus (@mafintosh)",

"bugs": {
"url": "https://github.com/compact-encoding/compact-encoding/issues"
"url": "https://github.com/holepunchto/compact-encoding/issues"
},
"homepage": "https://github.com/compact-encoding/compact-encoding"
"homepage": "https://github.com/holepunchto/compact-encoding"
}