Bump eslint-plugin-import to avoid vulnerability in dependency

This commit is contained in:
Henry Mercer 2023-01-18 20:26:59 +00:00
parent 10695e6a20
commit ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions

View file

@ -1 +0,0 @@
coverage/

View file

@ -4,11 +4,6 @@
"extends": "@ljharb",
"rules": {
"array-bracket-newline": 0,
"array-element-newline": 0,
"func-name-matching": 0,
"max-statements-per-line": [2, { "max": 2 }],
"multiline-comment-style": 0,
"new-cap": [2, {
"capIsNewExceptions": [
"ArraySpeciesCreate",
@ -19,11 +14,11 @@
"HasProperty",
"IsArray",
"Set",
"ToInteger",
"ToIntegerOrInfinity",
"ToLength",
"ToObject",
"ToString"
]
"ToString",
],
}],
"no-magic-numbers": 0,
},
@ -32,6 +27,7 @@
{
"files": "test/**",
"rules": {
"func-name-matching": 0,
"max-params": 0,
"no-invalid-this": [1],
},

View file

@ -2,10 +2,6 @@
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"lines": 96,
"statements": 96,
"functions": 80,
"branches": 87,
"exclude": [
"coverage",
"test"

View file

@ -1,3 +1,52 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v1.3.1](https://github.com/es-shims/Array.prototype.flat/compare/v1.3.0...v1.3.1) - 2022-11-02
### Commits
- [meta] use `npmignore` to autogenerate an npmignore file [`e339ed7`](https://github.com/es-shims/Array.prototype.flat/commit/e339ed71634921d770e8831458767e4564bfc018)
- [meta] add `auto-changelog` [`bb5cbd6`](https://github.com/es-shims/Array.prototype.flat/commit/bb5cbd64544bcdb11d0dff24ea4a18dcb5ab7fd1)
- [Deps] update `define-properties`, `es-abstract` [`8067910`](https://github.com/es-shims/Array.prototype.flat/commit/80679104268c99a3d01552024aeff5bfc39eb97e)
- [actions] update rebase action to use reusable workflow [`d4d9b28`](https://github.com/es-shims/Array.prototype.flat/commit/d4d9b28870ba950d6a19f0ad85f09a35767fbc55)
- [Dev Deps] update `aud`, `object-inspect`, `tape` [`d9d7300`](https://github.com/es-shims/Array.prototype.flat/commit/d9d730009cfe8d02ed1e0f7db0f5b4ebe7c11fae)
<!-- auto-changelog-above -->
1.3.0 / 2022-04-11
=================
* [New] `shim`/`auto`: add `flat` to `Symbol.unscopables`
* [Deps] update `es-abstract`
* [actions] reuse common workflows
* [actions] update codecov uploader
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `auto-changelog`, `object-inspect`, `safe-publish-latest`, `tape`
1.2.5 / 2021-10-01
=================
* [readme] add github actions/codecov badges; remove travis badge
* [Deps] update `call-bind`, `es-abstract`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `has-strict-mode`, `object-inspect`, `tape`
* [meta] use `prepublishOnly`, for npm 7+
* [actions] use `node/install` instead of `node/run`; use `codecov` action
* [actions] update workflows
* [Tests] increase coverage
* [meta] fix changelog for v1.2.4
1.2.4 / 2020-11-18
=================
* [meta] do not publish Github Action workflows
* [Deps] update `es-abstract`; add `call-bind` where applicable
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `object-inspect`, `tape`
* [Tests] run `nyc` on all tests
* [Tests] add `implementation` test; run `es-shim-api` in postlint; use `tape` runner
* [Tests] migrate tests to Github Actions
* [actions] add "Allow Edits" workflow
* [actions] switch Automatic Rebase workflow to `pull_request_target` event
1.2.3 / 2019-12-12
=================
* [Refactor] use split-up `es-abstract` (65% bundle size decrease)

View file

@ -1,6 +1,7 @@
# array.prototype.flat <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![Build Status][travis-svg]][travis-url]
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
@ -58,15 +59,17 @@ assert.deepEqual(arr.flat(mapper), flat(arr, mapper));
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.org/package/array.prototype.flat
[npm-version-svg]: http://versionbadg.es/es-shims/Array.prototype.flat.svg
[travis-svg]: https://travis-ci.org/es-shims/Array.prototype.flat.svg
[travis-url]: https://travis-ci.org/es-shims/Array.prototype.flat
[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.flat.svg
[deps-svg]: https://david-dm.org/es-shims/Array.prototype.flat.svg
[deps-url]: https://david-dm.org/es-shims/Array.prototype.flat
[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.flat/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.flat#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/array.prototype.flat.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/array.prototype.flat.svg
[license-image]: https://img.shields.io/npm/l/array.prototype.flat.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/array.prototype.flat.svg
[downloads-url]: http://npm-stat.com/charts.html?package=array.prototype.flat
[downloads-image]: https://img.shields.io/npm/dm/array.prototype.flat.svg
[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.flat
[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.flat/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.flat/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.flat
[actions-url]: https://github.com/es-shims/Array.prototype.flat/actions

View file

@ -1,11 +1,11 @@
'use strict';
var ArraySpeciesCreate = require('es-abstract/2020/ArraySpeciesCreate');
var FlattenIntoArray = require('es-abstract/2020/FlattenIntoArray');
var Get = require('es-abstract/2020/Get');
var ToInteger = require('es-abstract/2020/ToInteger');
var ToLength = require('es-abstract/2020/ToLength');
var ToObject = require('es-abstract/2020/ToObject');
var ArraySpeciesCreate = require('es-abstract/2022/ArraySpeciesCreate');
var FlattenIntoArray = require('es-abstract/2022/FlattenIntoArray');
var Get = require('es-abstract/2022/Get');
var ToIntegerOrInfinity = require('es-abstract/2022/ToIntegerOrInfinity');
var ToLength = require('es-abstract/2022/ToLength');
var ToObject = require('es-abstract/2022/ToObject');
module.exports = function flat() {
var O = ToObject(this);
@ -13,7 +13,7 @@ module.exports = function flat() {
var depthNum = 1;
if (arguments.length > 0 && typeof arguments[0] !== 'undefined') {
depthNum = ToInteger(arguments[0]);
depthNum = ToIntegerOrInfinity(arguments[0]);
}
var A = ArraySpeciesCreate(O, 0);

View file

@ -1,6 +1,6 @@
{
"name": "array.prototype.flat",
"version": "1.2.4",
"version": "1.3.1",
"author": {
"name": "Jordan Harband",
"email": "ljharb@gmail.com",
@ -20,13 +20,17 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"prepublish": "safe-publish-latest",
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run --silent lint && evalmd README.md",
"test": "npm run tests-only",
"posttest": "aud --production",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint .",
"postlint": "es-shim-api --bound"
"lint": "eslint --ext=js,mjs .",
"postlint": "es-shim-api --bound",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
@ -46,23 +50,27 @@
"es-shim API"
],
"dependencies": {
"call-bind": "^1.0.0",
"define-properties": "^1.1.3",
"es-abstract": "^1.18.0-next.1"
"call-bind": "^1.0.2",
"define-properties": "^1.1.4",
"es-abstract": "^1.20.4",
"es-shim-unscopables": "^1.0.0"
},
"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^17.2.0",
"aud": "^1.1.3",
"@es-shims/api": "^2.2.3",
"@ljharb/eslint-config": "^21.0.0",
"aud": "^2.0.1",
"auto-changelog": "^2.4.0",
"covert": "^1.1.1",
"eslint": "^7.13.0",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"function-bind": "^1.1.1",
"has-strict-mode": "^1.0.0",
"has-strict-mode": "^1.0.1",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object-inspect": "^1.8.0",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
"object-inspect": "^1.12.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.6.1"
},
"testling": {
"files": [
@ -88,9 +96,18 @@
"engines": {
"node": ">= 0.4"
},
"greenkeeper": {
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "1.3.1"
},
"publishConfig": {
"ignore": [
"nyc"
".github/workflows"
]
}
}

View file

@ -1,14 +1,20 @@
'use strict';
var define = require('define-properties');
var shimUnscopables = require('es-shim-unscopables');
var getPolyfill = require('./polyfill');
module.exports = function shimFlat() {
var polyfill = getPolyfill();
define(
Array.prototype,
{ flat: polyfill },
{ flat: function () { return Array.prototype.flat !== polyfill; } }
);
shimUnscopables('flat');
return polyfill;
};

View file

@ -1,6 +1,6 @@
'use strict';
require('../shim')();
require('../auto');
var test = require('tape');
var defineProperties = require('define-properties');