is-typed-array
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,11 @@ | ||
1.1.1 / 2020-01-18 | ||
================= | ||
* [Robustness] don’t rely on Array.prototype.indexOf existing | ||
* [meta] remove unused Makefile and associated utilities | ||
* [meta] add `funding` field; create FUNDING.yml | ||
* [actions] add automatic rebasing / merge commit blocking | ||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `is-callable`, `replace`, `semver`, `tape`; add `safe-publish-latest` | ||
* [Tests] use shared travis-ci configs | ||
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops | ||
1.1.0 / 2019-02-16 | ||
@@ -2,0 +12,0 @@ ================= |
@@ -22,3 +22,4 @@ 'use strict'; | ||
var slice = String.prototype.slice; | ||
var $slice = String.prototype.slice; | ||
var $indexOf = String.prototype.indexOf; | ||
var toStrTags = {}; | ||
@@ -58,5 +59,5 @@ var gOPD = Object.getOwnPropertyDescriptor; | ||
if (!value || typeof value !== 'object') { return false; } | ||
if (!hasToStringTag) { return typedArrays.indexOf(slice.call(toStr.call(value), 8, -1)) > -1; } | ||
if (!hasToStringTag) { return $indexOf.call(typedArrays, $slice.call(toStr.call(value), 8, -1)) > -1; } | ||
if (!gOPD) { return false; } | ||
return tryTypedArrays(value); | ||
}; |
{ | ||
"name": "is-typed-array", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -9,2 +9,5 @@ "name": "Jordan Harband", | ||
}, | ||
"funding": { | ||
"url": "https://github.com/sponsors/ljharb" | ||
}, | ||
"contributors": [ | ||
@@ -21,12 +24,9 @@ { | ||
"scripts": { | ||
"prepublish": "safe-publish-latest", | ||
"pretest": "npm run --silent lint", | ||
"test": "npm run tests-only", | ||
"tests-only": "node --es-staging test.js", | ||
"posttest": "npm run audit", | ||
"coverage": "covert test.js", | ||
"coverage-quiet": "covert test.js --quiet", | ||
"lint": "eslint .", | ||
"preaudit": "npm install --package-lock --package-lock-only", | ||
"audit": "npm audit", | ||
"postaudit": "rm package-lock.json" | ||
"tests-only": "node --es-staging test", | ||
"posttest": "npx aud", | ||
"coverage": "covert test/index.js", | ||
"lint": "eslint ." | ||
}, | ||
@@ -61,14 +61,13 @@ "repository": { | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^13.1.1", | ||
"@ljharb/eslint-config": "^15.1.0", | ||
"covert": "^1.1.1", | ||
"eslint": "^5.14.0", | ||
"is-callable": "^1.1.4", | ||
"eslint": "^6.8.0", | ||
"is-callable": "^1.1.5", | ||
"make-arrow-function": "^1.1.0", | ||
"make-generator-function": "^1.1.0", | ||
"replace": "^1.0.1", | ||
"semver": "^5.6.0", | ||
"tape": "^4.10.1" | ||
"safe-publish-latest": "^1.1.4", | ||
"tape": "^5.0.0-next.4" | ||
}, | ||
"testling": { | ||
"files": "test.js", | ||
"files": "test/index.js", | ||
"browsers": [ | ||
@@ -75,0 +74,0 @@ "iexplore/6.0..latest", |
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
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
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
8
139
13270
1