Socket
Socket
Sign inDemoInstall

which-typed-array

Package Overview
Dependencies
65
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

.editorconfig

13

CHANGELOG.md

@@ -10,2 +10,15 @@ # Changelog

## [v1.1.2](https://github.com/inspect-js/which-typed-array/compare/v1.1.1...v1.1.2) - 2020-04-08
### Commits
- [Dev Deps] update `make-arrow-function`, `make-generator-function` [`28c61ef`](https://github.com/inspect-js/which-typed-array/commit/28c61eff4903ff6509f65c2f500858b9cb4636f1)
- [Dev Deps] update `@ljharb/eslint-config` [`a233879`](https://github.com/inspect-js/which-typed-array/commit/a2338798d3a4a3169cda54e322b2f2eb0e976ad0)
- [Dev Deps] update `auto-changelog` [`df0134c`](https://github.com/inspect-js/which-typed-array/commit/df0134c0e20ec6d94993988ad670e1b3cf350bea)
- [Fix] move `foreach` to dependencies [`6ef29c0`](https://github.com/inspect-js/which-typed-array/commit/6ef29c0dbb91a7ec21df7ce8736f99f41efea39e)
- [Tests] only audit prod deps [`eb21044`](https://github.com/inspect-js/which-typed-array/commit/eb210446bd7a433657204d2314ef56fe264c21ad)
- [Deps] update `es-abstract` [`5ef0236`](https://github.com/inspect-js/which-typed-array/commit/5ef02368d9876a1074123aa7725d6759b4f3e358)
- [Dev Deps] update `tape` [`7456037`](https://github.com/inspect-js/which-typed-array/commit/745603728c6c3da8bdddee321e8a9196f4827aa3)
- [Deps] update `available-typed-arrays` [`8a856c9`](https://github.com/inspect-js/which-typed-array/commit/8a856c9aa707c1e6f7a52e834485356b31395ea6)
## [v1.1.1](https://github.com/inspect-js/which-typed-array/compare/v1.1.0...v1.1.1) - 2020-01-24

@@ -12,0 +25,0 @@

20

package.json
{
"name": "which-typed-array",
"version": "1.1.1",
"version": "1.1.2",
"author": {

@@ -27,3 +27,3 @@ "name": "Jordan Harband",

"tests-only": "node --es-staging test",
"posttest": "npx aud",
"posttest": "npx aud --production",
"coverage": "covert test/index.js",

@@ -59,4 +59,5 @@ "lint": "eslint .",

"dependencies": {
"available-typed-arrays": "^1.0.1",
"es-abstract": "^1.17.4",
"available-typed-arrays": "^1.0.2",
"es-abstract": "^1.17.5",
"foreach": "^2.0.5",
"function-bind": "^1.1.1",

@@ -67,12 +68,11 @@ "has-symbols": "^1.0.1",

"devDependencies": {
"@ljharb/eslint-config": "^15.1.0",
"auto-changelog": "^1.16.2",
"@ljharb/eslint-config": "^16.0.0",
"auto-changelog": "^1.16.4",
"covert": "^1.1.1",
"eslint": "^6.8.0",
"foreach": "^2.0.5",
"is-callable": "^1.1.5",
"make-arrow-function": "^1.1.0",
"make-generator-function": "^1.1.0",
"make-arrow-function": "^1.2.0",
"make-generator-function": "^2.0.0",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.0-next.4"
"tape": "^5.0.0-next.5"
},

@@ -79,0 +79,0 @@ "testling": {

@@ -7,4 +7,4 @@ 'use strict';

var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
var genFn = require('make-generator-function');
var arrowFn = require('make-arrow-function')();
var generators = require('make-generator-function')();
var arrows = require('make-arrow-function').list();
var forEach = require('foreach');

@@ -62,9 +62,13 @@

test('Generators', { skip: !genFn }, function (t) {
t.equal(false, whichTypedArray(genFn), 'generator function is not typed array');
test('Generators', { skip: generators.length === 0 }, function (t) {
forEach(generators, function (genFn) {
t.equal(false, whichTypedArray(genFn), 'generator function ' + genFn + ' is not typed array');
});
t.end();
});
test('Arrow functions', { skip: !arrowFn }, function (t) {
t.equal(false, whichTypedArray(arrowFn), 'arrow function is not typed array');
test('Arrow functions', { skip: arrows.length === 0 }, function (t) {
forEach(arrows, function (arrowFn) {
t.equal(false, whichTypedArray(arrowFn), 'arrow function ' + arrowFn + ' is not typed array');
});
t.end();

@@ -71,0 +75,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc