Comparing version 0.6.0 to 0.7.0
16
bl.js
@@ -1,3 +0,3 @@ | ||
const DuplexStream = require('stream').DuplexStream || require('readable-stream/duplex') | ||
, util = require('util') | ||
var DuplexStream = require('readable-stream').Duplex | ||
, util = require('util') | ||
@@ -198,9 +198,11 @@ function BufferList (callback) { | ||
Object.keys(methods).forEach(function (m) { | ||
BufferList.prototype[m] = function (offset) { | ||
return this.slice(offset, offset + methods[m])[m](0) | ||
} | ||
}) | ||
for (var m in methods) { | ||
(function (m) { | ||
BufferList.prototype[m] = function (offset) { | ||
return this.slice(offset, offset + methods[m])[m](0) | ||
} | ||
}(m)) | ||
} | ||
}()) | ||
module.exports = BufferList |
{ | ||
"name": "bl", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!", | ||
"main": "bl.js", | ||
"scripts": { | ||
"test": "tape test.js" | ||
"test": "node test/test.js | faucet", | ||
"test-local": "brtapsauce-local test/basic-test.js" | ||
}, | ||
@@ -28,6 +29,15 @@ "repository": { | ||
}, | ||
"peerDependencies": { | ||
"stream-browserify": "*" | ||
}, | ||
"devDependencies": { | ||
"tape": "*", | ||
"hash_file": "*" | ||
"tape": "~2.3.2", | ||
"hash_file": "~0.1.1", | ||
"brtapsauce": "~0.3.0", | ||
"faucet": "0.0.0", | ||
"stream-browserify": "~0.1.2" | ||
}, | ||
"browser": { | ||
"readable-stream": "stream-browserify" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31996
10
563
2
5
5
1