New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polywrap/msgpack-js

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polywrap/msgpack-js - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

27

build/index.js

@@ -58,3 +58,3 @@ "use strict";

}
return msgpack_1.encode(optimized);
return msgpackEncode(optimized);
}

@@ -66,4 +66,19 @@ else {

decode: function (data) {
var map = msgpack_1.decode(data);
return new Map(Object.entries(map));
var e_2, _a;
var obj = msgpackDecode(data);
var map = new Map();
try {
for (var _b = __values(Object.entries(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {
var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
map.set(key, value);
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_2) throw e_2.error; }
}
return map;
},

@@ -75,3 +90,3 @@ });

function sanitize(obj) {
var e_2, _a;
var e_3, _a;
if (shouldIgnore(obj)) {

@@ -100,3 +115,3 @@ return obj;

}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
catch (e_3_1) { e_3 = { error: e_3_1 }; }
finally {

@@ -106,3 +121,3 @@ try {

}
finally { if (e_2) throw e_2.error; }
finally { if (e_3) throw e_3.error; }
}

@@ -109,0 +124,0 @@ return obj;

{
"name": "@polywrap/msgpack-js",
"description": "WRAP MsgPack Encoding",
"version": "0.5.0",
"version": "0.6.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

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