buffer-codec
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -161,2 +161,6 @@ (function() { | ||
} | ||
if (isString(offset)) { | ||
encoding = offset; | ||
offset = 0; | ||
} | ||
if (this._encodeBuffer) { | ||
@@ -173,3 +177,3 @@ return this._encodeBuffer(value, destBuffer, offset, encoding); | ||
} else { | ||
return destBuffer.write(result, offset, void 0, encoding); | ||
return destBuffer.write(result, offset, encoding); | ||
} | ||
@@ -176,0 +180,0 @@ } else if (resultIsBuffer) { |
@@ -217,3 +217,3 @@ (function() { | ||
} else if (isString(data)) { | ||
return destBuffer.write(data, offset, void 0, encoding); | ||
return destBuffer.write(data, offset, encoding); | ||
} else { | ||
@@ -220,0 +220,0 @@ if (!(offset > 0)) { |
{ | ||
"name": "buffer-codec", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "add the codec ability to abstract-nosql database.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/snowyu/node-buffer-codec", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
96993
894