Comparing version 3.0.1 to 3.0.2
@@ -43,3 +43,5 @@ 'use strict'; | ||
const isArray = Array.isArray; | ||
const isBuffer = Buffer.isBuffer; | ||
const isBuffer = (value) => { | ||
return typeof Buffer === 'function' && Buffer.isBuffer(value); | ||
}; | ||
const isObject = (value) => { | ||
@@ -315,4 +317,4 @@ // This is a very simple check, but it’s good enough for what we need. | ||
jsesc.version = '3.0.1'; | ||
jsesc.version = '3.0.2'; | ||
module.exports = jsesc; |
{ | ||
"name": "jsesc", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://mths.be/jsesc", |
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
31726
294