Socket
Socket
Sign inDemoInstall

bops

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bops - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

dist/bops.js

2

package.json
{
"name": "bops",
"version": "0.0.6",
"version": "0.0.7",
"description": "buffer operations",

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

var proto = {}
, rex = /read.+/
, fn
, buildFn
fn = function() {
buildFn = function(key) {
var code = '' +
'return buf.' + key + '(' + ['a', 'b', 'c'].join(',' ) + ')'
return new Function(['buf', 'a', 'b', 'c'], code)
}

@@ -13,4 +16,4 @@

if(rex.test(key)) {
proto[key] = fn.call.bind(Buffer.prototype[key])
proto[key] = buildFn(key)
}
}

@@ -23,3 +23,3 @@ module.exports = copy

if(target.length - target_start < source_end - source_start) {
source_end = target.length - target_start + start
source_end = target.length - target_start + source_start
}

@@ -26,0 +26,0 @@

@@ -5,6 +5,9 @@ var Buffer = require('buffer').Buffer

, rex = /write.+/
, fn
, buildFn
fn = function() {
buildFn = function(key) {
var code = '' +
'return buf.' + key + '(' + ['a', 'b', 'c'].join(',' ) + ')'
return new Function(['buf', 'a', 'b', 'c'], code)
}

@@ -16,4 +19,4 @@

if(rex.test(key)) {
proto[key] = fn.call.bind(Buffer.prototype[key])
proto[key] = buildFn(key)
}
}
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