xprezzo-buffer
Advanced tools
Comparing version 1.0.0 to 1.0.1
14
index.js
/* eslint-disable node/no-deprecated-api */ | ||
var buffer = require('buffer') | ||
var Buffer = buffer.Buffer | ||
var mixin = require('xprezzo-mixin') | ||
function mixin (baseObject) { | ||
let nCount, singleArgument, element | ||
for (nCount = 1; nCount < arguments.length; nCount++) { | ||
singleArgument = arguments[nCount] | ||
for (element in singleArgument) { | ||
if (Object.prototype.hasOwnProperty.call(singleArgument, element)) { | ||
baseObject[element] = singleArgument[element] | ||
} | ||
} | ||
} | ||
return baseObject | ||
} | ||
function SafeBuffer (arg, encodingOrOffset, length) { | ||
@@ -19,0 +7,0 @@ return Buffer(arg, encodingOrOffset, length) |
{ | ||
"name": "xprezzo-buffer", | ||
"description": "Provide backward support for Node.js Buffer API before v12", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Leolio Mcleon <info@leolio.page>", | ||
"dependencies": { | ||
"xprezzo-mixin": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -31,2 +34,3 @@ "standard": "14.3.4", | ||
"index.js", | ||
"History.md", | ||
"README.md", | ||
@@ -33,0 +37,0 @@ "LICENSE" |
@@ -26,3 +26,2 @@ # xprezzo-buffer | ||
Installation | ||
@@ -29,0 +28,0 @@ ## install |
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
5
12946
1
53
312
+ Addedxprezzo-mixin@1.0.0
+ Addedxprezzo-mixin@1.0.0(transitive)