Comparing version 0.9.24 to 0.9.25
@@ -21,11 +21,6 @@ // Copyright (c) 2015 Uber Technologies, Inc. | ||
var LengthResult = require('./base').LengthResult; | ||
var WriteResult = require('./base').WriteResult; | ||
var ReadResult = require('./base').ReadResult; | ||
var BufferRW = require('./base').BufferRW; | ||
var AtomRW = require('./atoms').AtomRW; | ||
function nullByteLength() { | ||
return new LengthResult(null, 0); | ||
} | ||
function nullWriteInto(val, buffer, offset) { | ||
@@ -39,4 +34,4 @@ return new WriteResult(null, offset); | ||
var NullRW = BufferRW(nullByteLength, nullReadFrom, nullWriteInto); | ||
var NullRW = AtomRW(0, nullReadFrom, nullWriteInto); | ||
module.exports = NullRW; |
{ | ||
"name": "bufrw", | ||
"version": "0.9.24", | ||
"version": "0.9.25", | ||
"description": "Buffer Reading and Writing", | ||
@@ -21,3 +21,3 @@ "keywords": [], | ||
"ansi-color": "^0.2.1", | ||
"error": "^6.2.0", | ||
"error": "^7.0.0", | ||
"hexer": "^1.4.3", | ||
@@ -24,0 +24,0 @@ "readable-stream": "1.0.33", |
@@ -104,2 +104,3 @@ // Copyright (c) 2015 Uber Technologies, Inc. | ||
assert.deepEqual(err, { | ||
fullType: 'bufrw.zero-length-chunk', | ||
type: 'bufrw.zero-length-chunk', | ||
@@ -139,2 +140,3 @@ name: 'BufrwZeroLengthChunkError', | ||
assert.deepEqual(err, { | ||
fullType: 'bufrw.short-buffer', | ||
type: 'bufrw.short-buffer', | ||
@@ -160,2 +162,3 @@ name: 'BufrwShortBufferError', | ||
assert.deepEqual(err, { | ||
fullType: 'bufrw.truncated-read', | ||
type: 'bufrw.truncated-read', | ||
@@ -162,0 +165,0 @@ name: 'BufrwTruncatedReadError', |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
170655
52
4279
+ Addederror@7.2.1(transitive)
- Removederror@6.4.3(transitive)
Updatederror@^7.0.0