Socket
Socket
Sign inDemoInstall

str2buf

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

2

node/str2buf.js

@@ -1,2 +0,2 @@

function r(r){return new Buffer(r,"binary").toString()}function n(r){return new Uint8Array(Buffer.from(r,"binary"))}function t(n){return r(new Uint8Array(n))}function f(r){return n(r).buffer}exports.fromUint8Array=r,exports.toUint8Array=n,exports.fromBuffer=t,exports.toBuffer=f;
function r(r){return new Buffer(r).toString("binary")}function n(r){return new Uint8Array(Buffer.from(r,"binary"))}function t(n){return r(new Uint8Array(n))}function f(r){return n(r).buffer}exports.fromUint8Array=r,exports.toUint8Array=n,exports.fromBuffer=t,exports.toBuffer=f;
//# sourceMappingURL=str2buf.js.map

@@ -1,2 +0,2 @@

!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.str2buf={})}(this,function(n){function r(n){return new Buffer(n,"binary").toString()}function e(n){return new Uint8Array(Buffer.from(n,"binary"))}n.fromUint8Array=r,n.toUint8Array=e,n.fromBuffer=function(n){return r(new Uint8Array(n))},n.toBuffer=function(n){return e(n).buffer}});
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.str2buf={})}(this,function(n){function r(n){return new Buffer(n).toString("binary")}function e(n){return new Uint8Array(Buffer.from(n,"binary"))}n.fromUint8Array=r,n.toUint8Array=e,n.fromBuffer=function(n){return r(new Uint8Array(n))},n.toBuffer=function(n){return e(n).buffer}});
//# sourceMappingURL=str2buf.umd.js.map
{
"name": "str2buf",
"version": "1.2.0",
"version": "1.2.1",
"description": "isomorphic string <=> buffer in 183 bytes",

@@ -5,0 +5,0 @@ "main": "node/str2buf.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc