is-typed-array
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -0,1 +1,10 @@ | ||
1.1.6 / 2021-08-05 | ||
================= | ||
* [Fix] use `has-tostringtag` to behave correctly in the presence of symbol shams | ||
* [readme] add actions and codecov badges | ||
* [meta] use `prepublishOnly` script for npm 7+ | ||
* [Deps] update `available-typed-arrays`, `es-abstract` | ||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `object-inspect`, `tape` | ||
* [actions] use `node/install` instead of `node/run`; use `codecov` action | ||
1.1.5 / 2021-02-14 | ||
@@ -2,0 +11,0 @@ ================= |
@@ -8,4 +8,3 @@ 'use strict'; | ||
var $toString = callBound('Object.prototype.toString'); | ||
var hasSymbols = require('has-symbols')(); | ||
var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol'; | ||
var hasToStringTag = require('has-tostringtag/shams')(); | ||
@@ -12,0 +11,0 @@ var typedArrays = availableTypedArrays(); |
{ | ||
"name": "is-typed-array", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"author": { | ||
@@ -23,3 +23,4 @@ "name": "Jordan Harband", | ||
"scripts": { | ||
"prepublish": "safe-publish-latest", | ||
"prepublishOnly": "safe-publish-latest", | ||
"prepublish": "not-in-publish || npm run prepublishOnly", | ||
"pretest": "npm run --silent lint", | ||
@@ -58,12 +59,12 @@ "test": "npm run tests-only && npm run test:harmony", | ||
"dependencies": { | ||
"available-typed-arrays": "^1.0.2", | ||
"available-typed-arrays": "^1.0.4", | ||
"call-bind": "^1.0.2", | ||
"es-abstract": "^1.18.0-next.2", | ||
"es-abstract": "^1.18.5", | ||
"foreach": "^2.0.5", | ||
"has-symbols": "^1.0.1" | ||
"has-tostringtag": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^17.5.1", | ||
"aud": "^1.1.4", | ||
"eslint": "^7.20.0", | ||
"@ljharb/eslint-config": "^17.6.0", | ||
"aud": "^1.1.5", | ||
"eslint": "^7.32.0", | ||
"evalmd": "^0.0.19", | ||
@@ -74,5 +75,5 @@ "is-callable": "^1.2.3", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.9.0", | ||
"object-inspect": "^1.11.0", | ||
"safe-publish-latest": "^1.1.4", | ||
"tape": "^5.1.1" | ||
"tape": "^5.3.0" | ||
}, | ||
@@ -79,0 +80,0 @@ "testling": { |
# is-typed-array <sup>[![Version Badge][2]][1]</sup> | ||
[![github actions][actions-image]][actions-url] | ||
[![coverage][codecov-image]][codecov-url] | ||
[![dependency status][5]][6] | ||
@@ -55,3 +57,3 @@ [![dev dependency status][7]][8] | ||
[1]: https://npmjs.org/package/is-typed-array | ||
[2]: http://versionbadg.es/inspect-js/is-typed-array.svg | ||
[2]: https://versionbadg.es/inspect-js/is-typed-array.svg | ||
[5]: https://david-dm.org/inspect-js/is-typed-array.svg | ||
@@ -62,5 +64,9 @@ [6]: https://david-dm.org/inspect-js/is-typed-array | ||
[11]: https://nodei.co/npm/is-typed-array.png?downloads=true&stars=true | ||
[license-image]: http://img.shields.io/npm/l/is-typed-array.svg | ||
[license-image]: https://img.shields.io/npm/l/is-typed-array.svg | ||
[license-url]: LICENSE | ||
[downloads-image]: http://img.shields.io/npm/dm/is-typed-array.svg | ||
[downloads-url]: http://npm-stat.com/charts.html?package=is-typed-array | ||
[downloads-image]: https://img.shields.io/npm/dm/is-typed-array.svg | ||
[downloads-url]: https://npm-stat.com/charts.html?package=is-typed-array | ||
[codecov-image]: https://codecov.io/gh/inspect-js/is-typed-array/branch/main/graphs/badge.svg | ||
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-typed-array/ | ||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-typed-array | ||
[actions-url]: https://github.com/inspect-js/is-typed-array/actions |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var isCallable = require('is-callable'); | ||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; | ||
var hasToStringTag = require('has-tostringtag/shams')(); | ||
var generators = require('make-generator-function')(); | ||
@@ -38,3 +38,2 @@ var arrowFn = require('make-arrow-function')(); | ||
t.notOk(isTypedArray(/a/g), 'regex literal is not typed array'); | ||
// eslint-disable-next-line prefer-regex-literals | ||
t.notOk(isTypedArray(new RegExp('a', 'g')), 'regex object is not typed array'); | ||
@@ -77,3 +76,3 @@ t.notOk(isTypedArray(new Date()), 'new Date() is not typed array'); | ||
test('@@toStringTag', { skip: !hasSymbols || !Symbol.toStringTag }, function (t) { | ||
test('@@toStringTag', { skip: !hasToStringTag }, function (t) { | ||
forEach(typedArrayNames, function (typedArray) { | ||
@@ -80,0 +79,0 @@ if (typeof global[typedArray] === 'function') { |
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
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
15807
71
144
+ Addedhas-tostringtag@^1.0.0
- Removedhas-symbols@^1.0.1
Updatedes-abstract@^1.18.5