@sindresorhus/is
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -338,2 +338,5 @@ const typedArrayTypeNames = [ | ||
export function isDirectInstanceOf(instance, class_) { | ||
if (instance === undefined || instance === null) { | ||
return false; | ||
} | ||
return Object.getPrototypeOf(instance) === class_.prototype; | ||
@@ -340,0 +343,0 @@ } |
{ | ||
"name": "@sindresorhus/is", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Type check values", | ||
@@ -21,3 +21,3 @@ "license": "MIT", | ||
"build": "del dist && tsc", | ||
"test": "tsc --noEmit && xo && ava", | ||
"test": "tsc --noEmit && xo && NODE_OPTIONS='--loader=ts-node/esm --no-warnings=ExperimentalWarning' ava", | ||
"prepare": "npm run build" | ||
@@ -72,7 +72,4 @@ }, | ||
"ts": "module" | ||
}, | ||
"nodeArguments": [ | ||
"--loader=ts-node/esm" | ||
] | ||
} | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
93009
1739
0