Socket
Socket
Sign inDemoInstall

array-includes

Package Overview
Dependencies
65
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.1.2

.eslintignore

11

CHANGELOG.md

@@ -0,1 +1,12 @@

3.1.2 / 2020-11-24
=================
* [Robustness] remove dependency on `.apply`
* [Deps] update `es-abstract`; use `call-bind` and `get-intrinsic` where applicable
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `functions-have-names`, `tape`; add `aud`, `safe-publish-latest`
* [actions] add "Allow Edits" workflow
* [actions] switch Automatic Rebase workflow to `pull_request_target` event
* [Tests] migrate tests to Github Actions
* [Tests] run `nyc` on all tests
* [Tests] add `implementation` test; run `es-shim-api` in postlint; use `tape` runner
3.1.1 / 2019-12-21

@@ -2,0 +13,0 @@ =================

12

implementation.js
'use strict';
var ToInteger = require('es-abstract/2018/ToInteger');
var ToLength = require('es-abstract/2018/ToLength');
var ToObject = require('es-abstract/2018/ToObject');
var SameValueZero = require('es-abstract/2018/SameValueZero');
var ToInteger = require('es-abstract/2020/ToInteger');
var ToLength = require('es-abstract/2020/ToLength');
var ToObject = require('es-abstract/2020/ToObject');
var SameValueZero = require('es-abstract/2020/SameValueZero');
var $isNaN = require('es-abstract/helpers/isNaN');
var $isFinite = require('es-abstract/helpers/isFinite');
var GetIntrinsic = require('es-abstract/GetIntrinsic');
var callBound = require('es-abstract/helpers/callBound');
var GetIntrinsic = require('get-intrinsic');
var callBound = require('call-bind/callBound');
var isString = require('is-string');

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

'use strict';
var define = require('define-properties');
var RequireObjectCoercible = require('es-abstract/2018/RequireObjectCoercible');
var callBound = require('es-abstract/helpers/callBound');
var RequireObjectCoercible = require('es-abstract/2020/RequireObjectCoercible');
var callBind = require('call-bind');
var callBound = require('call-bind/callBound');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var polyfill = getPolyfill();
var polyfill = callBind.apply(getPolyfill());
var shim = require('./shim');

@@ -15,8 +16,8 @@

/* eslint-disable no-unused-vars */
var boundIncludesShim = function includes(array, searchElement) {
var boundShim = function includes(array, searchElement) {
/* eslint-enable no-unused-vars */
RequireObjectCoercible(array);
return polyfill.apply(array, $slice(arguments, 1));
return polyfill(array, $slice(arguments, 1));
};
define(boundIncludesShim, {
define(boundShim, {
getPolyfill: getPolyfill,

@@ -27,2 +28,2 @@ implementation: implementation,

module.exports = boundIncludesShim;
module.exports = boundShim;
{
"name": "array-includes",
"version": "3.1.1",
"version": "3.1.2",
"author": {

@@ -23,11 +23,9 @@ "name": "Jordan Harband",

"scripts": {
"prepublish": "safe-publish-latest",
"pretest": "npm run --silent lint && evalmd README.md",
"test": "npm run --silent tests-only",
"posttest": "npx aud",
"tests-only": "es-shim-api --bound && npm run --silent test:shimmed && npm run --silent test:module",
"test:shimmed": "node test/shimmed.js",
"test:module": "node test/index.js",
"coverage": "covert test/*.js",
"coverage:quiet": "covert test/*.js --quiet",
"lint": "eslint ."
"posttest": "npx aud --production",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint .",
"postlint": "es-shim-api --bound"
},

@@ -50,4 +48,6 @@ "repository": {

"dependencies": {
"call-bind": "^1.0.0",
"define-properties": "^1.1.3",
"es-abstract": "^1.17.0",
"es-abstract": "^1.18.0-next.1",
"get-intrinsic": "^1.0.1",
"is-string": "^1.0.5"

@@ -57,11 +57,14 @@ },

"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^15.1.0",
"covert": "^1.1.1",
"eslint": "^6.8.0",
"@ljharb/eslint-config": "^17.3.0",
"aud": "^1.1.3",
"eslint": "^7.14.0",
"evalmd": "0.0.19",
"foreach": "^2.0.5",
"function-bind": "^1.1.1",
"functions-have-names": "^1.2.0",
"functions-have-names": "^1.2.1",
"has-strict-mode": "^1.0.0",
"indexof": "^0.0.1",
"tape": "^4.12.0"
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
},

@@ -71,2 +74,3 @@ "testling": {

"test/index.js",
"test/implementation.js",
"test/shimmed.js"

@@ -73,0 +77,0 @@ ],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc