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

@webassemblyjs/helper-buffer

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webassemblyjs/helper-buffer - npm Package Compare versions

Comparing version 1.7.0-0 to 1.7.0-1

8

esm/index.js
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
var debug = require("debug")("webassemblyjs:wasm");
function concatUint8Arrays() {

@@ -32,7 +30,3 @@ for (var _len = arguments.length, arrays = new Array(_len), _key = 0; _key < _len; _key++) {

var beforeBytes = buffer.slice(0, startLoc);
var afterBytes = buffer.slice(endLoc, buffer.length);
debug("overrideBytesInBuffer start=%d end=%d newBytes=%s", startLoc, endLoc, // $FlowIgnore
newBytes.map(function (dec) {
return dec.toString("16");
}).join()); // replacement is empty, we can omit it
var afterBytes = buffer.slice(endLoc, buffer.length); // replacement is empty, we can omit it

@@ -39,0 +33,0 @@ if (newBytes.length === 0) {

@@ -12,4 +12,2 @@ "use strict";

var debug = require("debug")("webassemblyjs:wasm");
function concatUint8Arrays() {

@@ -42,7 +40,3 @@ for (var _len = arguments.length, arrays = new Array(_len), _key = 0; _key < _len; _key++) {

var beforeBytes = buffer.slice(0, startLoc);
var afterBytes = buffer.slice(endLoc, buffer.length);
debug("overrideBytesInBuffer start=%d end=%d newBytes=%s", startLoc, endLoc, // $FlowIgnore
newBytes.map(function (dec) {
return dec.toString("16");
}).join()); // replacement is empty, we can omit it
var afterBytes = buffer.slice(endLoc, buffer.length); // replacement is empty, we can omit it

@@ -49,0 +43,0 @@ if (newBytes.length === 0) {

7

package.json
{
"name": "@webassemblyjs/helper-buffer",
"version": "1.7.0-0",
"version": "1.7.0-1",
"description": "Buffer manipulation utility",

@@ -20,8 +20,5 @@ "main": "lib/index.js",

"devDependencies": {
"@webassemblyjs/wasm-parser": "1.7.0-0",
"@webassemblyjs/wasm-parser": "1.7.0-1",
"jest-diff": "^22.4.0"
},
"dependencies": {
"debug": "^3.1.0"
}
}
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