Comparing version 1.2.1 to 1.2.2
@@ -20,3 +20,3 @@ /** | ||
static toView(data, type) { | ||
if (typeof Buffer !== "undefined" && Buffer.isBuffer(data)) { | ||
if (typeof Buffer !== "undefined" && typeof Buffer.isBuffer === "function" && Buffer.isBuffer(data)) { | ||
return new type(data.buffer, data.byteOffset, data.byteLength); | ||
@@ -23,0 +23,0 @@ } |
@@ -26,3 +26,3 @@ /** | ||
static toView(data, type) { | ||
if (typeof Buffer !== "undefined" && Buffer.isBuffer(data)) { | ||
if (typeof Buffer !== "undefined" && typeof Buffer.isBuffer === "function" && Buffer.isBuffer(data)) { | ||
return new type(data.buffer, data.byteOffset, data.byteLength); | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "pvtsutils", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "pvtsutils is a set of common utility functions used in various Peculiar Ventures TypeScript based projects.", | ||
@@ -66,10 +66,10 @@ "main": "build/index.js", | ||
"coveralls": "^3.1.1", | ||
"mocha": "^9.1.2", | ||
"mocha": "^9.2.0", | ||
"nyc": "^15.1.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.57.0", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"ts-node": "^10.2.1", | ||
"rollup": "^2.67.3", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"ts-node": "^10.5.0", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.4.3" | ||
"typescript": "^4.5.5" | ||
}, | ||
@@ -76,0 +76,0 @@ "nyc": { |
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
33057