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

1
node_modules/.bin/resolve generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../resolve/bin/resolve

1126
node_modules/.package-lock.json generated vendored

File diff suppressed because it is too large Load Diff

View File

@@ -4,10 +4,17 @@
"extends": "@ljharb",
"rules": {
"complexity": 0,
"id-length": [2, { "min": 1, "max": 26 }],
"max-statements": [2, 14],
"new-cap": [2, { capIsNewExceptions: ["GetIntrinsic", "ToObject", "ToInteger", "ToLength", "SameValueZero", "RequireObjectCoercible"] }],
"new-cap": [2, {
"capIsNewExceptions": [
"GetIntrinsic",
"ToObject",
"ToIntegerOrInfinity",
"ToLength",
"SameValueZero",
"RequireObjectCoercible",
],
}],
},
"overrides": [

4
node_modules/array-includes/.nycrc generated vendored
View File

@@ -2,10 +2,6 @@
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"lines": 86,
"statements": 85.93,
"functions": 82.43,
"branches": 76.06,
"exclude": [
"coverage",
"test"

View File

@@ -1,3 +1,42 @@
# 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).
## [v3.1.6](https://github.com/es-shims/array-includes/compare/v3.1.5...v3.1.6) - 2022-11-07
### Commits
- [meta] add `auto-changelog` [`c5fbe72`](https://github.com/es-shims/array-includes/commit/c5fbe728395deff641d756cc9d398a949076c180)
- [meta] use `npmignore` to autogenerate an npmignore file [`dbd6dc8`](https://github.com/es-shims/array-includes/commit/dbd6dc8f8906cca6b0b493e308686c4fd05bea15)
- [Deps] update `es-abstract`, `get-intrinsic` [`b819e3b`](https://github.com/es-shims/array-includes/commit/b819e3b3dd1adce0b3359529b0276a416efce351)
- [actions] update rebase action to use reusable workflow [`6e241d5`](https://github.com/es-shims/array-includes/commit/6e241d5177513cfb0261d0fbe0c8c98daf5c5eab)
- [Dev Deps] update `aud`, `tape` [`9b2a931`](https://github.com/es-shims/array-includes/commit/9b2a931aee6fc8195a349c6fe7894445a911223f)
- [readme] note that FF 102+ no longer needs this package [`0a0c758`](https://github.com/es-shims/array-includes/commit/0a0c758ed52808428314ffe53ea8278297170c84)
<!-- auto-changelog-above -->
3.1.5 / 2022-05-03
=================
* [Fix] install polyfill on FF 99+
* [Deps] update `define-properties`, `es-abstract`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `functions-have-names`, `safe-publish-latest`, `tape`
* [actions] reuse common workflows
* [actions] update codecov uploader
3.1.4 / 2021-10-04
=================
* [Robustness] avoid a runtime `Math.max` call
* [readme] add github actions/codecov badges
* [readme] fix repo URLs; remove travis badge
* [Deps] update `es-abstract`, `is-string`
* [meta] use `prepublishOnly` script for npm 7+
* [actions] update workflows
* [actions] use `node/install` instead of `node/run`; use `codecov` action
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `tape`
3.1.3 / 2021-02-20
=================
* [Deps] update `call-bind`, `es-abstract`, `get-intrinsic`

View File

@@ -1,6 +1,7 @@
# array-includes <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]
@@ -10,10 +11,18 @@
An ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](http://www.ecma-international.org/ecma-262/6.0/).
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](https://262.ecma-international.org/6.0/).
Because `Array.prototype.includes` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument.
Engines that need this package include:
- IE (all versions)
- Safari < 9
- Firefox < 43, and 99-101
- Chrome < 47
- Edge < 14
- node < 6
## Getting started
```sh
@@ -80,15 +89,17 @@ assert.equal(arr.includes(1, 'foo'), includes(arr, 1, 'foo'));
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.org/package/array-includes
[npm-version-svg]: http://versionbadg.es/es-shims/array-includes.svg
[travis-svg]: https://travis-ci.org/es-shims/array-includes.svg
[travis-url]: https://travis-ci.org/es-shims/array-includes
[npm-version-svg]: https://versionbadg.es/es-shims/array-includes.svg
[deps-svg]: https://david-dm.org/es-shims/array-includes.svg
[deps-url]: https://david-dm.org/es-shims/array-includes
[dev-deps-svg]: https://david-dm.org/es-shims/array-includes/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/array-includes#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/array-includes.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/array-includes.svg
[license-image]: https://img.shields.io/npm/l/array-includes.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/array-includes.svg
[downloads-url]: http://npm-stat.com/charts.html?package=array-includes
[downloads-image]: https://img.shields.io/npm/dm/array-includes.svg
[downloads-url]: https://npm-stat.com/charts.html?package=array-includes
[codecov-image]: https://codecov.io/gh/es-shims/array-includes/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/array-includes/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/array-includes
[actions-url]: https://github.com/es-shims/array-includes/actions

View File

@@ -1,9 +1,9 @@
'use strict';
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 ToIntegerOrInfinity = require('es-abstract/2022/ToIntegerOrInfinity');
var ToLength = require('es-abstract/2022/ToLength');
var ToObject = require('es-abstract/2022/ToObject');
var SameValueZero = require('es-abstract/2022/SameValueZero');
var $isNaN = require('es-abstract/helpers/isNaN');
var $isFinite = require('es-abstract/helpers/isFinite');
var GetIntrinsic = require('get-intrinsic');
@@ -12,9 +12,10 @@ var isString = require('is-string');
var $charAt = callBound('String.prototype.charAt');
var $indexOf = GetIntrinsic('%Array.prototype.indexOf%'); // TODO: use callBind.apply without breaking IE 8
var $max = GetIntrinsic('%Math.max%');
module.exports = function includes(searchElement) {
var fromIndex = arguments.length > 1 ? ToInteger(arguments[1]) : 0;
var fromIndex = arguments.length > 1 ? ToIntegerOrInfinity(arguments[1]) : 0;
if ($indexOf && !$isNaN(searchElement) && $isFinite(fromIndex) && typeof searchElement !== 'undefined') {
return $indexOf.apply(this, arguments) > -1;
}
@@ -24,7 +25,7 @@ module.exports = function includes(searchElement) {
if (length === 0) {
return false;
}
var k = fromIndex >= 0 ? fromIndex : Math.max(0, length + fromIndex);
var k = fromIndex >= 0 ? fromIndex : $max(0, length + fromIndex);
while (k < length) {
if (SameValueZero(searchElement, isString(O) ? $charAt(O, k) : O[k])) {
return true;

View File

@@ -1,7 +1,7 @@
'use strict';
var define = require('define-properties');
var RequireObjectCoercible = require('es-abstract/2020/RequireObjectCoercible');
var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible');
var callBind = require('call-bind');
var callBound = require('call-bind/callBound');

View File

@@ -1,6 +1,6 @@
{
"name": "array-includes",
"version": "3.1.3",
"version": "3.1.6",
"author": {
"name": "Jordan Harband",
"email": "ljharb@gmail.com",
@@ -20,13 +20,18 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"prepublish": "safe-publish-latest",
"pretest": "npm run --silent lint && evalmd README.md",
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run --silent lint",
"test": "npm run --silent tests-only",
"posttest": "npx aud --production",
"posttest": "aud --production",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint .",
"postlint": "es-shim-api --bound"
"prelint": "evalmd README.md",
"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",
@@ -45,25 +50,27 @@
],
"dependencies": {
"call-bind": "^1.0.2",
"define-properties": "^1.1.3",
"es-abstract": "^1.18.0-next.2",
"get-intrinsic": "^1.1.1",
"is-string": "^1.0.5"
"define-properties": "^1.1.4",
"es-abstract": "^1.20.4",
"get-intrinsic": "^1.1.3",
"is-string": "^1.0.7"
},
"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^17.5.1",
"aud": "^1.1.4",
"eslint": "^7.20.0",
"evalmd": "0.0.19",
"foreach": "^2.0.5",
"@es-shims/api": "^2.2.3",
"@ljharb/eslint-config": "^21.0.0",
"aud": "^2.0.1",
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"function-bind": "^1.1.1",
"functions-have-names": "^1.2.2",
"functions-have-names": "^1.2.3",
"has-strict-mode": "^1.0.1",
"in-publish": "^2.0.1",
"indexof": "^0.0.1",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.2.0"
"safe-publish-latest": "^2.0.0",
"tape": "^5.6.1"
},
"testling": {
"files": [
@@ -89,5 +96,19 @@
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "3.1.6"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

View File

@@ -3,5 +3,11 @@
var implementation = require('./implementation');
module.exports = function getPolyfill() {
return Array.prototype.includes || implementation;
if (
Array.prototype.includes
&& Array(1).includes(undefined) // https://bugzilla.mozilla.org/show_bug.cgi?id=1767541
) {
return Array.prototype.includes;
}
return implementation;
};

View File

@@ -1,5 +1,7 @@
'use strict';
var orig = Array.prototype.includes;
require('../auto');
var test = require('tape');
@@ -11,6 +13,7 @@ var functionsHaveNames = require('functions-have-names')();
var runTests = require('./tests');
test('shimmed', function (t) {
t.comment('shimmed: ' + (orig === Array.prototype.includes ? 'no' : 'yes'));
t.equal(Array.prototype.includes.length, 1, 'Array#includes has a length of 1');
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
st.equal(Array.prototype.includes.name, 'includes', 'Array#includes has name "includes"');

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');

View File

@@ -2,17 +2,19 @@ root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 150
[*.coffee]
indent_style = space
[{package.json,*.yml}]
[CHANGELOG.md]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[*.json]
max_line_length = off
[Makefile]
max_line_length = off

34
node_modules/array.prototype.flatmap/.eslintrc generated vendored Normal file
View File

@@ -0,0 +1,34 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"new-cap": [2, {
"capIsNewExceptions": [
"ArraySpeciesCreate",
"Call",
"CreateDataPropertyOrThrow",
"FlattenIntoArray",
"Get",
"HasProperty",
"IsArray",
"IsCallable",
"Set",
"ToLength",
"ToObject",
"ToString",
]
}],
"no-magic-numbers": 0,
},
"overrides": [
{
"files": "test/**",
"rules": {
"no-invalid-this": [1],
},
},
],
}

View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/array.prototype.flatmap
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

9
node_modules/array.prototype.flatmap/.nycrc generated vendored Normal file
View File

@@ -0,0 +1,9 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"exclude": [
"coverage",
"test"
]
}

102
node_modules/array.prototype.flatmap/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,102 @@
# 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.flatMap/compare/v1.3.0...v1.3.1) - 2022-11-02
### Commits
- [meta] use `npmignore` to autogenerate an npmignore file [`3587a34`](https://github.com/es-shims/Array.prototype.flatMap/commit/3587a34ca111ec36ffc46b4131f5b32d4d8a357c)
- [meta] add `auto-changelog` [`d66bdea`](https://github.com/es-shims/Array.prototype.flatMap/commit/d66bdeac56f2c1803a72695230c80d8270ab2ecf)
- [Deps] update `define-properties`, `es-abstract` [`d64c486`](https://github.com/es-shims/Array.prototype.flatMap/commit/d64c48639ec4958ed9a2627a4d7315ac1404687a)
- [actions] update rebase action to use reusable workflow [`8d657d0`](https://github.com/es-shims/Array.prototype.flatMap/commit/8d657d094a2aafa7948eee73eaa0e56047c5d60d)
- [Dev Deps] update `aud`, `object-inspect`, `tape` [`aa22741`](https://github.com/es-shims/Array.prototype.flatMap/commit/aa22741a4bbe8db6d448cc4ca5417ddec90ac01d)
- [Tests] use `for-each` instead of `foreach` [`748a78d`](https://github.com/es-shims/Array.prototype.flatMap/commit/748a78dbddb08462c75916fde07746d34cfd5c5c)
<!-- auto-changelog-above -->
1.3.0 / 2022-04-11
=================
* [New] `shim`/`auto`: add `flatMap` to `Symbol.unscopables`
* [Deps] update `call-bind`, `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; update description; remove travis badge
* [Deps] update `call-bind`, `es-abstract`; remove unused `function-bind`
* [meta] use `prepublishOnly`, for npm 7+
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `has-strict-mode`, `object-inspect`, `tape`
* [actions] update workflows
* [actions] use `node/install` instead of `node/run`; use `codecov` action
* [Tests] increase coverage
1.2.4 / 2020-11-18
=================
* [Deps] update `es-abstract`; use `call-bind` where applicable
* [meta] do not publish github action workflows
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `tape`; add `aud`
* [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
* [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)
* [Deps] update `es-abstract`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `object-inspect`
* [meta] add `funding` field
* [Tests] use shared travis-ci configs
* [actions] add automatic rebasing / merge commit blocking
1.2.2 / 2019-10-10
=================
* [Refactor] rename callback argument to `mapperFunction`, to match spec
* [Deps] update `es-abstract`, `define-properties`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `evalmd`, `object-inspect`, `safe-publish-latest`, `tape`
* [meta] create FUNDING.yml
* [Tests] up to `node` `v12.11`, `v11.15`, `v10.16`, `v9.11`, `v8.16`, `v6.17`, `v4.9`; use `nvm install-latest-npm`
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
1.2.1 / 2018-02-23
=================
* [Fix] Temporarily hack main entry, so it's compatible with other resolvers
* [Dev Deps] update `eslint`, `nsp`, `tape`
* [Tests] up to `node` `v9.6`, `v6.13`
1.2.0 / 2018-01-18
=================
* [New] add "auto" entry point
* [Fix] Move the receiver length check higher
* [Fix] spec adjustments
* [Refactor] adjust shouldFlatten logic
* [Dev Deps] update `eslint`, `object-inspect`
* [Tests] up to `node` `v9.4`
1.1.1 / 2017-11-29
=================
* [Fix] avoid an extra hole in the array (#1)
* [Deps] update `es-abstract`
* [Dev Deps] update `eslint`, `nsp`, `object-inspect`
* [Tests] up to `node` `v9.2`, `v8.9`, `v6.12`; pin included builds to LTS
1.1.0 / 2017-10-03
=================
* [New] add explicit setting of “length” on target array
* [Fix] `FlattenIntoArray`: add assertion that `thisArg` and `mapperFunction` are both passed together
* [Tests] make coverage required
1.0.1 / 2017-10-02
=================
* Add readme
1.0.0 / 2017-10-01
=================
* Initial release

21
node_modules/array.prototype.flatmap/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 ECMAScript Shims
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

82
node_modules/array.prototype.flatmap/README.md generated vendored Normal file
View File

@@ -0,0 +1,82 @@
# array.prototype.flatmap <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![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]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
An ES2019 spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-array.prototype.flatmap).
Because `Array.prototype.flatMap` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument.
## Getting started
```sh
npm install --save array.prototype.flatmap
```
## Usage/Examples
```js
var flatMap = require('array.prototype.flatmap');
var assert = require('assert');
var arr = [1, [2], [], 3];
var results = flatMap(arr, function (x, i) {
assert.equal(x, arr[i]);
return x;
});
assert.deepEqual(results, [1, 2, 3]);
```
```js
var flatMap = require('array.prototype.flatmap');
var assert = require('assert');
/* when Array#flatMap is not present */
delete Array.prototype.flatMap;
var shimmedFlatMap = flatMap.shim();
var mapper = function (x) { return [x, 1]; };
assert.equal(shimmedFlatMap, flatMap.getPolyfill());
assert.deepEqual(arr.flatMap(mapper), flatMap(arr, mapper));
```
```js
var flatMap = require('array.prototype.flatmap');
var assert = require('assert');
/* when Array#flatMap is present */
var shimmedIncludes = flatMap.shim();
var mapper = function (x) { return [x, 1]; };
assert.equal(shimmedIncludes, Array.prototype.flatMap);
assert.deepEqual(arr.flatMap(mapper), flatMap(arr, mapper));
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.org/package/array.prototype.flatmap
[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.flatMap.svg
[deps-svg]: https://david-dm.org/es-shims/Array.prototype.flatMap.svg
[deps-url]: https://david-dm.org/es-shims/Array.prototype.flatMap
[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.flatMap/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.flatMap#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/array.prototype.flatmap.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/array.prototype.flatmap.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/array.prototype.flatmap.svg
[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.flatmap
[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.flatMap/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.flatMap/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.flatMap
[actions-url]: https://github.com/es-shims/Array.prototype.flatMap/actions

3
node_modules/array.prototype.flatmap/auto.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
'use strict';
require('./shim')();

26
node_modules/array.prototype.flatmap/implementation.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
'use strict';
var ArraySpeciesCreate = require('es-abstract/2022/ArraySpeciesCreate');
var FlattenIntoArray = require('es-abstract/2022/FlattenIntoArray');
var Get = require('es-abstract/2022/Get');
var IsCallable = require('es-abstract/2022/IsCallable');
var ToLength = require('es-abstract/2022/ToLength');
var ToObject = require('es-abstract/2022/ToObject');
module.exports = function flatMap(mapperFunction) {
var O = ToObject(this);
var sourceLen = ToLength(Get(O, 'length'));
if (!IsCallable(mapperFunction)) {
throw new TypeError('mapperFunction must be a function');
}
var T;
if (arguments.length > 1) {
T = arguments[1];
}
var A = ArraySpeciesCreate(O, 0);
FlattenIntoArray(A, O, sourceLen, 0, 1, mapperFunction, T);
return A;
};

19
node_modules/array.prototype.flatmap/index.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
'use strict';
var define = require('define-properties');
var callBind = require('call-bind');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var polyfill = getPolyfill();
var shim = require('./shim');
var boundFlatMap = callBind(polyfill);
define(boundFlatMap, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = boundFlatMap;

112
node_modules/array.prototype.flatmap/package.json generated vendored Normal file
View File

@@ -0,0 +1,112 @@
{
"name": "array.prototype.flatmap",
"version": "1.3.1",
"author": {
"name": "Jordan Harband",
"email": "ljharb@gmail.com",
"url": "http://ljharb.codes"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"contributors": [
{
"name": "Jordan Harband",
"email": "ljharb@gmail.com",
"url": "http://ljharb.codes"
}
],
"description": "An ES2019 spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.",
"license": "MIT",
"main": "index",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"test": "npm run tests-only",
"posttest": "aud --production",
"tests-only": "nyc tape 'test/**/*.js'",
"prelint": "evalmd README.md",
"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",
"url": "git://github.com/es-shims/Array.prototype.flatMap.git"
},
"keywords": [
"Array.prototype.flatMap",
"flatMap",
"array",
"ESnext",
"shim",
"polyfill",
"flatten",
"Array.prototype.flatten",
"es-shim API"
],
"dependencies": {
"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.2.3",
"@ljharb/eslint-config": "^21.0.0",
"aud": "^2.0.1",
"auto-changelog": "^2.4.0",
"covert": "^1.1.1",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"for-each": "^0.3.3",
"has-strict-mode": "^1.0.1",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object-inspect": "^1.12.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.6.1"
},
"testling": {
"files": [
"test/index.js",
"test/shimmed.js"
],
"browsers": [
"iexplore/6.0..latest",
"firefox/3.0..6.0",
"firefox/15.0..latest",
"firefox/nightly",
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
"opera/10.0..latest",
"opera/next",
"safari/4.0..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2"
]
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "1.3.1"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

7
node_modules/array.prototype.flatmap/polyfill.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
'use strict';
var implementation = require('./implementation');
module.exports = function getPolyfill() {
return Array.prototype.flatMap || implementation;
};

20
node_modules/array.prototype.flatmap/shim.js generated vendored Normal file
View File

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

View File

@@ -0,0 +1,20 @@
'use strict';
var flatMap = require('../implementation');
var callBind = require('call-bind');
var test = require('tape');
var hasStrictMode = require('has-strict-mode')();
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
/* eslint no-useless-call: 0 */
st['throws'](function () { flatMap.call(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { flatMap.call(null); }, TypeError, 'null is not an object');
st.end();
});
runTests(callBind(flatMap), t);
t.end();
});

18
node_modules/array.prototype.flatmap/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
var flatMap = require('../');
var test = require('tape');
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', function (st) {
/* eslint no-useless-call: 0 */
st['throws'](function () { flatMap.call(undefined, function () {}); }, TypeError, 'undefined is not an object');
st['throws'](function () { flatMap.call(null, function () {}); }, TypeError, 'null is not an object');
st.end();
});
runTests(flatMap, t);
t.end();
});

36
node_modules/array.prototype.flatmap/test/shimmed.js generated vendored Normal file
View File

@@ -0,0 +1,36 @@
'use strict';
require('../auto');
var test = require('tape');
var defineProperties = require('define-properties');
var callBind = require('call-bind');
var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = function f() {}.name === 'f';
var runTests = require('./tests');
test('shimmed', function (t) {
t.equal(Array.prototype.flatMap.length, 1, 'Array#flatMap has a length of 1');
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
st.equal(Array.prototype.flatMap.name, 'flatMap', 'Array#flatMap has name "flatMap"');
st.end();
});
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(Array.prototype, 'flatMap'), 'Array#flatMap is not enumerable');
et.end();
});
var supportsStrictMode = (function () { return typeof this === 'undefined'; }());
t.test('bad array/this value', { skip: !supportsStrictMode }, function (st) {
st['throws'](function () { return Array.prototype.flatMap.call(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { return Array.prototype.flatMap.call(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(callBind(Array.prototype.flatMap), t);
t.end();
});

43
node_modules/array.prototype.flatmap/test/tests.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
'use strict';
var inspect = require('object-inspect');
var forEach = require('for-each');
module.exports = function (flatMap, t) {
t.test('callback function', function (st) {
forEach([[], {}, true, false, 42, 'foo', /a/g, null], function (nonFunction) {
st['throws'](
function () { flatMap([], nonFunction); },
TypeError,
inspect(nonFunction) + ' is not a function'
);
});
st.end();
});
t.test('flatMaps', function (st) {
var mapped = flatMap([1, [2], [3, 4]], function (x, i) {
return [x, i];
});
var expected = [1, 0, [2], 1, [3, 4], 2];
st.deepEqual(mapped, expected, 'array is flattened and mapped to tuples of item/index');
st.equal(mapped.length, expected.length, 'array has expected length');
var context = {};
var actual;
flatMap([1], function () { actual = this; }, context);
st.equal(actual, context, 'thisArg works as expected');
st.end();
});
t.test('sparse arrays', function (st) {
var identity = function (x) { return x; };
// eslint-disable-next-line no-sparse-arrays
st.deepEqual(flatMap([, [1]], identity), flatMap([[], [1]], identity), 'an array hole is treated the same as an empty array');
st.end();
});
};

9
node_modules/available-typed-arrays/.eslintrc generated vendored Normal file
View File

@@ -0,0 +1,9 @@
{
"root": true,
"extends": "@ljharb",
"globals": {
"globalThis": false
}
}

View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/available-typed-arrays
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

9
node_modules/available-typed-arrays/.nycrc generated vendored Normal file
View File

@@ -0,0 +1,9 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"exclude": [
"coverage",
"test"
]
}

79
node_modules/available-typed-arrays/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,79 @@
# 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.0.5](https://github.com/inspect-js/available-typed-arrays/compare/v1.0.4...v1.0.5) - 2021-08-30
### Fixed
- [Refactor] use `globalThis` if available [`#12`](https://github.com/inspect-js/available-typed-arrays/issues/12)
### Commits
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`1199790`](https://github.com/inspect-js/available-typed-arrays/commit/1199790ab5841517ad04827fab3f135d2dc5cfb7)
## [v1.0.4](https://github.com/inspect-js/available-typed-arrays/compare/v1.0.3...v1.0.4) - 2021-05-25
### Commits
- [Refactor] Remove `array.prototype.filter` dependency [`f39c90e`](https://github.com/inspect-js/available-typed-arrays/commit/f39c90ecb1907de28ee2d3577b7da37ae12aac56)
- [Dev Deps] update `eslint`, `auto-changelog` [`b2e3a03`](https://github.com/inspect-js/available-typed-arrays/commit/b2e3a035e8cd3ddfd7b565249e1651c6419a34d0)
- [meta] create `FUNDING.yml` [`8c0e758`](https://github.com/inspect-js/available-typed-arrays/commit/8c0e758c6ec80adbb3770554653cdc3aa16beb55)
- [Tests] fix harmony test matrix [`ef96549`](https://github.com/inspect-js/available-typed-arrays/commit/ef96549df171776267529413240a2219cb59d5ce)
- [meta] add `sideEffects` flag [`288cca0`](https://github.com/inspect-js/available-typed-arrays/commit/288cca0fbd214bec706447851bb8bccc4b899a48)
## [v1.0.3](https://github.com/inspect-js/available-typed-arrays/compare/v1.0.2...v1.0.3) - 2021-05-19
### Commits
- [Tests] migrate tests to Github Actions [`3ef082c`](https://github.com/inspect-js/available-typed-arrays/commit/3ef082caaa153b49f4c37c85bbd5c4b13fe4f638)
- [meta] do not publish github action workflow files [`fd95ffd`](https://github.com/inspect-js/available-typed-arrays/commit/fd95ffdaca759eca81cb4c5d5772ee863dfea501)
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`eb6bd65`](https://github.com/inspect-js/available-typed-arrays/commit/eb6bd659a31c92a6a178c71a89fe0d5261413e6c)
- [Tests] run `nyc` on all tests [`636c946`](https://github.com/inspect-js/available-typed-arrays/commit/636c94657b532599ef90a214aaa12639d11b0161)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`70a3b61`](https://github.com/inspect-js/available-typed-arrays/commit/70a3b61367b318fb883c2f35b8f2d539849a23b6)
- [actions] add "Allow Edits" workflow [`bd09c45`](https://github.com/inspect-js/available-typed-arrays/commit/bd09c45299e396fa5bbd5be4c58b1aedcb372a82)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `array.prototype.every`, `aud`, `tape` [`8f97523`](https://github.com/inspect-js/available-typed-arrays/commit/8f9752308390a79068cd431436bbfd77bca15647)
- [readme] fix URLs [`75418e2`](https://github.com/inspect-js/available-typed-arrays/commit/75418e20b57f4ad5e65d8c2e1864efd14eaa2e65)
- [readme] add actions and codecov badges [`4a8bc30`](https://github.com/inspect-js/available-typed-arrays/commit/4a8bc30af2ce1f48e2b28ab3db5be9589bd6f2d0)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud` [`65198ac`](https://github.com/inspect-js/available-typed-arrays/commit/65198ace335a013ef49b6bd722bc80bbbc6be784)
- [actions] update workflows [`7f816eb`](https://github.com/inspect-js/available-typed-arrays/commit/7f816eb231131e53ced2572ba6c6c6a00f975789)
- [Refactor] use `array.prototype.filter` instead of `array-filter` [`2dd1038`](https://github.com/inspect-js/available-typed-arrays/commit/2dd1038d71ce48b5650687691cf8fe09795a6d30)
- [actions] switch Automatic Rease workflow to `pull_request_target` event [`9b45e91`](https://github.com/inspect-js/available-typed-arrays/commit/9b45e914fcb08bdaaaa0166b41716e51f400d1c6)
- [Dev Deps] update `auto-changelog`, `tape` [`0003a5b`](https://github.com/inspect-js/available-typed-arrays/commit/0003a5b122a0724db5499c114104eeeb396b2f67)
- [meta] use `prepublishOnly` script for npm 7+ [`d884dd1`](https://github.com/inspect-js/available-typed-arrays/commit/d884dd1c1117411f35d9fbc07f513a1a85ccdead)
- [readme] remove travis badge [`9da2b3c`](https://github.com/inspect-js/available-typed-arrays/commit/9da2b3c29706340fada995137aba12cfae4d6f37)
- [Dev Deps] update `auto-changelog`; add `aud` [`41b1336`](https://github.com/inspect-js/available-typed-arrays/commit/41b13369c71b0e3e57b9de0f4fb1e4d67950d74a)
- [Tests] only audit prod deps [`2571826`](https://github.com/inspect-js/available-typed-arrays/commit/2571826a5d121eeeeccf4c711e3f9e4616685d50)
## [v1.0.2](https://github.com/inspect-js/available-typed-arrays/compare/v1.0.1...v1.0.2) - 2020-01-26
### Commits
- [actions] add automatic rebasing / merge commit blocking [`3229a74`](https://github.com/inspect-js/available-typed-arrays/commit/3229a74bda60f24e2257efc40ddff9a3ce98de76)
- [Dev Deps] update `@ljharb/eslint-config` [`9579abe`](https://github.com/inspect-js/available-typed-arrays/commit/9579abecc196088561d3aedf27cad45b56f8e18b)
- [Fix] remove `require` condition to avoid experimental warning [`2cade6b`](https://github.com/inspect-js/available-typed-arrays/commit/2cade6b56d6a508a950c7da27d038bee496e716b)
## [v1.0.1](https://github.com/inspect-js/available-typed-arrays/compare/v1.0.0...v1.0.1) - 2020-01-24
### Commits
- [meta] add "exports" [`5942917`](https://github.com/inspect-js/available-typed-arrays/commit/5942917aafb56c6bce80f01b7ae6a9b46bc72c69)
## v1.0.0 - 2020-01-24
### Commits
- Initial commit [`2bc5144`](https://github.com/inspect-js/available-typed-arrays/commit/2bc514459c9f65756adfbd9964abf433183d78f6)
- readme [`31e4796`](https://github.com/inspect-js/available-typed-arrays/commit/31e4796379eba4a16d3c6a8e9baf6eb3f39e33d1)
- npm init [`9194266`](https://github.com/inspect-js/available-typed-arrays/commit/9194266b471a2a2dd5e6969bc40358ceb346e21e)
- Tests [`b539830`](https://github.com/inspect-js/available-typed-arrays/commit/b539830c3213f90de42b4d6e62803f52daf61a6d)
- Implementation [`6577df2`](https://github.com/inspect-js/available-typed-arrays/commit/6577df244ea146ef5ec16858044c8955e0fc445c)
- [meta] add `auto-changelog` [`7b43310`](https://github.com/inspect-js/available-typed-arrays/commit/7b43310be76f00fe60b74a2fd6d0e46ac1d01f3e)
- [Tests] add `npm run lint` [`dedfbc1`](https://github.com/inspect-js/available-typed-arrays/commit/dedfbc1592f86ac1636267d3965f2345df43815b)
- [Tests] use shared travis-ci configs [`c459d78`](https://github.com/inspect-js/available-typed-arrays/commit/c459d78bf2efa9d777f88599ae71a796dbfcb70f)
- Only apps should have lockfiles [`d294668`](https://github.com/inspect-js/available-typed-arrays/commit/d294668422cf35f5e7716a85bfd204e62b01c056)
- [meta] add `funding` field [`6e70bc1`](https://github.com/inspect-js/available-typed-arrays/commit/6e70bc1fb199c7898165aaf05c25bb49f4062e53)
- [meta] add `safe-publish-latest` [`dd89ca2`](https://github.com/inspect-js/available-typed-arrays/commit/dd89ca2c6842f0f3e82958df2b2bd0fc0c929c51)

21
node_modules/available-typed-arrays/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Inspect JS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

52
node_modules/available-typed-arrays/README.md generated vendored Normal file
View File

@@ -0,0 +1,52 @@
# available-typed-arrays <sup>[![Version Badge][2]][1]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][11]][1]
Returns an array of Typed Array names that are available in the current environment.
## Example
```js
var availableTypedArrays = require('available-typed-arrays');
var assert = require('assert');
assert.deepStrictEqual(availableTypedArrays(), [
'Int8Array',
'Uint8Array',
'Uint8ClampedArray',
'Int16Array',
'Uint16Array',
'Int32Array',
'Uint32Array',
'Float32Array',
'Float64Array',
'BigInt64Array',
'BigUint64Array'
].sort());
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[1]: https://npmjs.org/package/available-typed-arrays
[2]: https://versionbadg.es/inspect-js/available-typed-arrays.svg
[5]: https://david-dm.org/inspect-js/available-typed-arrays.svg
[6]: https://david-dm.org/inspect-js/available-typed-arrays
[7]: https://david-dm.org/inspect-js/available-typed-arrays/dev-status.svg
[8]: https://david-dm.org/inspect-js/available-typed-arrays#info=devDependencies
[11]: https://nodei.co/npm/available-typed-arrays.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/available-typed-arrays.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/available-typed-arrays.svg
[downloads-url]: https://npm-stat.com/charts.html?package=available-typed-arrays
[codecov-image]: https://codecov.io/gh/inspect-js/available-typed-arrays/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/available-typed-arrays/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/available-typed-arrays
[actions-url]: https://github.com/inspect-js/available-typed-arrays/actions

27
node_modules/available-typed-arrays/index.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
'use strict';
var possibleNames = [
'BigInt64Array',
'BigUint64Array',
'Float32Array',
'Float64Array',
'Int16Array',
'Int32Array',
'Int8Array',
'Uint16Array',
'Uint32Array',
'Uint8Array',
'Uint8ClampedArray'
];
var g = typeof globalThis === 'undefined' ? global : globalThis;
module.exports = function availableTypedArrays() {
var out = [];
for (var i = 0; i < possibleNames.length; i++) {
if (typeof g[possibleNames[i]] === 'function') {
out[out.length] = possibleNames[i];
}
}
return out;
};

82
node_modules/available-typed-arrays/package.json generated vendored Normal file
View File

@@ -0,0 +1,82 @@
{
"name": "available-typed-arrays",
"version": "1.0.5",
"description": "Returns an array of Typed Array names that are available in the current environment",
"main": "index.js",
"type": "commonjs",
"exports": {
".": [
{
"default": "./index.js"
},
"./index.js"
],
"./package": "./package.json",
"./package.json": "./package.json"
},
"sideEffects": false,
"scripts": {
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"prelint": "evalmd README.md",
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint",
"tests-only": "nyc tape 'test/**/*.js'",
"test:harmony": "nyc node --harmony --es-staging test",
"test": "npm run tests-only && npm run test:harmony",
"posttest": "aud --production",
"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",
"url": "git+https://github.com/inspect-js/available-typed-arrays.git"
},
"keywords": [
"typed",
"arrays",
"Float32Array",
"Float64Array",
"Int8Array",
"Int16Array",
"Int32Array",
"Uint8Array",
"Uint8ClampedArray",
"Uint16Array",
"Uint32Array",
"BigInt64Array",
"BigUint64Array"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/inspect-js/available-typed-arrays/issues"
},
"homepage": "https://github.com/inspect-js/available-typed-arrays#readme",
"engines": {
"node": ">= 0.4"
},
"devDependencies": {
"@ljharb/eslint-config": "^18.0.0",
"array.prototype.every": "^1.1.2",
"aud": "^1.1.5",
"auto-changelog": "^2.3.0",
"eslint": "^7.32.0",
"evalmd": "^0.0.19",
"isarray": "^2.0.5",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.3.1"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
}
}

18
node_modules/available-typed-arrays/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
var test = require('tape');
var isArray = require('isarray');
var every = require('array.prototype.every');
var availableTypedArrays = require('../');
test('available typed arrays', function (t) {
t.equal(typeof availableTypedArrays, 'function', 'is a function');
var arrays = availableTypedArrays();
t.equal(isArray(arrays), true, 'returns an array');
t.equal(every(arrays, function (array) { return typeof array === 'string'; }), true, 'contains only strings');
t.end();
});

View File

@@ -5,8 +5,15 @@
"rules": {
"id-length": [2, { "min": 1, "max": 35 }],
"max-lines-per-function": [2, 100],
"max-params": [2, 4],
"max-statements": [2, 13]
}
},
"overrides": [
{
"files": "test/**",
"rules": {
"max-lines-per-function": 0,
},
},
],
}

12
node_modules/define-properties/.github/FUNDING.yml generated vendored Normal file
View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/define-properties
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

View File

@@ -1,175 +0,0 @@
{
"es3": true,
"additionalRules": [],
"requireSemicolons": true,
"disallowMultipleSpaces": true,
"disallowIdentifierNames": [],
"requireCurlyBraces": {
"allExcept": [],
"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
},
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
"disallowSpaceAfterKeywords": [],
"disallowSpaceBeforeComma": true,
"disallowSpaceAfterComma": false,
"disallowSpaceBeforeSemicolon": true,
"disallowNodeTypes": [
"DebuggerStatement",
"LabeledStatement",
"SwitchCase",
"SwitchStatement",
"WithStatement"
],
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
"requireSpaceBetweenArguments": true,
"disallowSpacesInsideParentheses": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },
"disallowSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"requireSpaceAfterPrefixUnaryOperators": [],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforePostfixUnaryOperators": [],
"disallowSpaceBeforeBinaryOperators": [],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"disallowSpaceAfterBinaryOperators": [],
"disallowImplicitTypeConversion": ["binary", "string"],
"disallowKeywords": ["with", "eval"],
"requireKeywordsOnNewLine": [],
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"disallowTrailingWhitespace": true,
"disallowTrailingComma": true,
"excludeFiles": ["node_modules/**", "vendor/**"],
"disallowMultipleLineStrings": true,
"requireDotNotation": { "allExcept": ["keywords"] },
"requireParenthesesAroundIIFE": true,
"validateLineBreaks": "LF",
"validateQuoteMarks": {
"escape": true,
"mark": "'"
},
"disallowOperatorBeforeLineBreak": [],
"requireSpaceBeforeKeywords": [
"do",
"for",
"if",
"else",
"switch",
"case",
"try",
"catch",
"finally",
"while",
"with",
"return"
],
"validateAlignedFunctionParameters": {
"lineBreakAfterOpeningBraces": true,
"lineBreakBeforeClosingBraces": true
},
"requirePaddingNewLinesBeforeExport": true,
"validateNewlineAfterArrayElements": {
"maximum": 3
},
"requirePaddingNewLinesAfterUseStrict": true,
"disallowArrowFunctions": true,
"disallowMultiLineTernary": true,
"validateOrderInObjectKeys": "asc-insensitive",
"disallowIdenticalDestructuringNames": true,
"disallowNestedTernaries": { "maxLevel": 1 },
"requireSpaceAfterComma": { "allExcept": ["trailing"] },
"requireAlignedMultilineParams": false,
"requireSpacesInGenerator": {
"afterStar": true
},
"disallowSpacesInGenerator": {
"beforeStar": true
},
"disallowVar": false,
"requireArrayDestructuring": false,
"requireEnhancedObjectLiterals": false,
"requireObjectDestructuring": false,
"requireEarlyReturn": false,
"requireCapitalizedConstructorsNew": {
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
},
"requireImportAlphabetized": false,
"requireSpaceBeforeObjectValues": true,
"requireSpaceBeforeDestructuredValues": true,
"disallowSpacesInsideTemplateStringPlaceholders": true,
"disallowArrayDestructuringReturn": false,
"requireNewlineBeforeSingleStatementsInIf": false,
"disallowUnusedVariables": true,
"requireSpacesInsideImportedObjectBraces": true,
"requireUseStrict": true
}

9
node_modules/define-properties/.nycrc generated vendored Normal file
View File

@@ -0,0 +1,9 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"exclude": [
"coverage",
"test"
]
}

View File

@@ -1,233 +0,0 @@
language: node_js
os:
- linux
node_js:
- "10.8"
- "9.11"
- "8.11"
- "7.10"
- "6.14"
- "5.12"
- "4.9"
- "iojs-v3.3"
- "iojs-v2.5"
- "iojs-v1.8"
- "0.12"
- "0.10"
- "0.8"
before_install:
- 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
- 'nvm install-latest-npm'
install:
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
script:
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
sudo: false
env:
- TEST=true
matrix:
fast_finish: true
include:
- node_js: "lts/*"
env: PRETEST=true
- node_js: "lts/*"
env: POSTTEST=true
- node_js: "4"
env: COVERAGE=true
- node_js: "10.7"
env: TEST=true ALLOW_FAILURE=true
- node_js: "10.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "10.5"
env: TEST=true ALLOW_FAILURE=true
- node_js: "10.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "10.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "10.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "10.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "10.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.10"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.9"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.8"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.7"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.5"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "9.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.10"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.9"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.8"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.7"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.5"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "8.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.9"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.8"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.7"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.5"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "7.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.13"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.12"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.11"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.10"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.9"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.8"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.7"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.5"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "6.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.11"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.10"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.9"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.8"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.7"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.5"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "5.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.8"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.7"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.5"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "4.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v3.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v3.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v3.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.7"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.5"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.4"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.3"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.2"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.1"
env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.0"
env: TEST=true ALLOW_FAILURE=true
- node_js: "0.11"
env: TEST=true ALLOW_FAILURE=true
- node_js: "0.9"
env: TEST=true ALLOW_FAILURE=true
- node_js: "0.6"
env: TEST=true ALLOW_FAILURE=true
- node_js: "0.4"
env: TEST=true ALLOW_FAILURE=true
allow_failures:
- os: osx
- env: TEST=true ALLOW_FAILURE=true
- env: COVERAGE=true

View File

@@ -1,3 +1,22 @@
1.1.4 / 2022-04-14
=================
* [Refactor] use `has-property-descriptors`
* [readme] add github actions/codecov badges
* [Docs] fix header parsing; remove testling
* [Deps] update `object-keys`
* [meta] use `prepublishOnly` script for npm 7+
* [meta] add `funding` field; create FUNDING.yml
* [actions] add "Allow Edits" workflow; automatic rebasing / merge commit blocking
* [actions] reuse common workflows
* [actions] update codecov uploader
* [actions] use `node/install` instead of `node/run`; use `codecov` action
* [Tests] migrate tests to Github Actions
* [Tests] run `nyc` on all tests; use `tape` runner
* [Tests] use shared travis-ci config
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
* [Tests] remove `jscs`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape`; add `aud`, `safe-publish-latest`
1.1.3 / 2018-08-14
=================
* [Refactor] use a for loop instead of `foreach` to make for smaller bundle sizes

View File

@@ -1,6 +1,7 @@
#define-properties <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
# define-properties <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]
@@ -8,8 +9,6 @@
[![npm badge][npm-badge-png]][package-url]
[![browser support][testling-svg]][testling-url]
Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.
Existing properties are not overridden. Accepts a map of property names to a predicate that, when true, force-overrides.
@@ -69,18 +68,17 @@ if (define.supportsDescriptors) {
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.org/package/define-properties
[npm-version-svg]: http://versionbadg.es/ljharb/define-properties.svg
[travis-svg]: https://travis-ci.org/ljharb/define-properties.svg
[travis-url]: https://travis-ci.org/ljharb/define-properties
[npm-version-svg]: https://versionbadg.es/ljharb/define-properties.svg
[deps-svg]: https://david-dm.org/ljharb/define-properties.svg
[deps-url]: https://david-dm.org/ljharb/define-properties
[dev-deps-svg]: https://david-dm.org/ljharb/define-properties/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/define-properties#info=devDependencies
[testling-svg]: https://ci.testling.com/ljharb/define-properties.png
[testling-url]: https://ci.testling.com/ljharb/define-properties
[npm-badge-png]: https://nodei.co/npm/define-properties.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/define-properties.svg
[license-image]: https://img.shields.io/npm/l/define-properties.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/define-properties.svg
[downloads-url]: http://npm-stat.com/charts.html?package=define-properties
[downloads-image]: https://img.shields.io/npm/dm/define-properties.svg
[downloads-url]: https://npm-stat.com/charts.html?package=define-properties
[codecov-image]: https://codecov.io/gh/ljharb/define-properties/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/define-properties/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-properties
[actions-url]: https://github.com/ljharb/define-properties/actions

View File

@@ -11,20 +11,9 @@ var isFunction = function (fn) {
return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
};
var arePropertyDescriptorsSupported = function () {
var obj = {};
try {
origDefineProperty(obj, 'x', { enumerable: false, value: obj });
// eslint-disable-next-line no-unused-vars, no-restricted-syntax
for (var _ in obj) { // jscs:ignore disallowUnusedVariables
return false;
}
return obj.x === obj;
} catch (e) { /* this is IE 8. */
return false;
}
};
var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();
var hasPropertyDescriptors = require('has-property-descriptors')();
var supportsDescriptors = origDefineProperty && hasPropertyDescriptors;
var defineProperty = function (object, name, value, predicate) {
if (name in object && (!isFunction(predicate) || !predicate())) {
@@ -38,7 +27,7 @@ var defineProperty = function (object, name, value, predicate) {
writable: true
});
} else {
object[name] = value;
object[name] = value; // eslint-disable-line no-param-reassign
}
};

View File

@@ -1,21 +1,21 @@
{
"name": "define-properties",
"version": "1.1.3",
"author": "Jordan Harband",
"version": "1.1.4",
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"description": "Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.",
"license": "MIT",
"main": "index.js",
"scripts": {
"pretest": "npm run --silent lint",
"test": "npm run --silent tests-only",
"posttest": "npm run --silent security",
"tests-only": "node test/index.js",
"coverage": "covert test/*.js",
"coverage-quiet": "covert test/*.js --quiet",
"lint": "npm run --silent jscs && npm run --silent eslint",
"jscs": "jscs test/*.js *.js",
"eslint": "eslint test/*.js *.js",
"security": "nsp check"
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run lint",
"test": "npm run tests-only",
"posttest": "aud --production",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint --ext=js,mjs ."
},
"repository": {
"type": "git",
@@ -31,15 +31,16 @@
"ES5"
],
"dependencies": {
"object-keys": "^1.0.12"
"has-property-descriptors": "^1.0.0",
"object-keys": "^1.1.1"
},
"devDependencies": {
"@ljharb/eslint-config": "^13.0.0",
"covert": "^1.1.0",
"eslint": "^5.3.0",
"jscs": "^3.0.7",
"nsp": "^3.2.1",
"tape": "^4.9.0"
"@ljharb/eslint-config": "^21.0.0",
"aud": "^2.0.0",
"eslint": "=8.8.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.5.3"
},
"testling": {
"files": "test/index.js",

View File

@@ -1,125 +0,0 @@
'use strict';
var define = require('../');
var test = require('tape');
var keys = require('object-keys');
var arePropertyDescriptorsSupported = function () {
var obj = { a: 1 };
try {
Object.defineProperty(obj, 'x', { value: obj });
return obj.x === obj;
} catch (e) { /* this is IE 8. */
return false;
}
};
var descriptorsSupported = !!Object.defineProperty && arePropertyDescriptorsSupported();
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
test('defineProperties', function (dt) {
dt.test('with descriptor support', { skip: !descriptorsSupported }, function (t) {
var getDescriptor = function (value) {
return {
configurable: true,
enumerable: false,
value: value,
writable: true
};
};
var obj = {
a: 1,
b: 2,
c: 3
};
t.deepEqual(keys(obj), ['a', 'b', 'c'], 'all literal-set keys start enumerable');
define(obj, {
b: 3,
c: 4,
d: 5
});
t.deepEqual(obj, {
a: 1,
b: 2,
c: 3
}, 'existing properties were not overridden');
t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'd'), getDescriptor(5), 'new property "d" was added and is not enumerable');
t.deepEqual(['a', 'b', 'c'], keys(obj), 'new keys are not enumerable');
define(obj, {
a: 2,
b: 3,
c: 4
}, {
a: function () { return true; },
b: function () { return false; }
});
t.deepEqual(obj, {
b: 2,
c: 3
}, 'properties only overriden when predicate exists and returns true');
t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'd'), getDescriptor(5), 'existing property "d" remained and is not enumerable');
t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'a'), getDescriptor(2), 'existing property "a" was overridden and is not enumerable');
t.deepEqual(['b', 'c'], keys(obj), 'overridden keys are not enumerable');
t.end();
});
dt.test('without descriptor support', { skip: descriptorsSupported }, function (t) {
var obj = {
a: 1,
b: 2,
c: 3
};
define(obj, {
b: 3,
c: 4,
d: 5
});
t.deepEqual(obj, {
a: 1,
b: 2,
c: 3,
d: 5
}, 'existing properties were not overridden, new properties were added');
define(obj, {
a: 2,
b: 3,
c: 4
}, {
a: function () { return true; },
b: function () { return false; }
});
t.deepEqual(obj, {
a: 2,
b: 2,
c: 3,
d: 5
}, 'properties only overriden when predicate exists and returns true');
t.end();
});
dt.end();
});
test('symbols', { skip: !hasSymbols }, function (t) {
var sym = Symbol('foo');
var obj = {};
var aValue = {};
var bValue = {};
var properties = { a: aValue };
properties[sym] = bValue;
define(obj, properties);
t.deepEqual(Object.keys(obj), [], 'object has no enumerable keys');
t.deepEqual(Object.getOwnPropertyNames(obj), ['a'], 'object has non-enumerable "a" key');
t.deepEqual(Object.getOwnPropertySymbols(obj), [sym], 'object has non-enumerable symbol key');
t.equal(obj.a, aValue, 'string keyed value is defined');
t.equal(obj[sym], bValue, 'symbol keyed value is defined');
t.end();
});

144
node_modules/error-ex/README.md generated vendored
View File

@@ -1,144 +0,0 @@
# node-error-ex [![Travis-CI.org Build Status](https://img.shields.io/travis/Qix-/node-error-ex.svg?style=flat-square)](https://travis-ci.org/Qix-/node-error-ex) [![Coveralls.io Coverage Rating](https://img.shields.io/coveralls/Qix-/node-error-ex.svg?style=flat-square)](https://coveralls.io/r/Qix-/node-error-ex)
> Easily subclass and customize new Error types
## Examples
To include in your project:
```javascript
var errorEx = require('error-ex');
```
To create an error message type with a specific name (note, that `ErrorFn.name`
will not reflect this):
```javascript
var JSONError = errorEx('JSONError');
var err = new JSONError('error');
err.name; //-> JSONError
throw err; //-> JSONError: error
```
To add a stack line:
```javascript
var JSONError = errorEx('JSONError', {fileName: errorEx.line('in %s')});
var err = new JSONError('error')
err.fileName = '/a/b/c/foo.json';
throw err; //-> (line 2)-> in /a/b/c/foo.json
```
To append to the error message:
```javascript
var JSONError = errorEx('JSONError', {fileName: errorEx.append('in %s')});
var err = new JSONError('error');
err.fileName = '/a/b/c/foo.json';
throw err; //-> JSONError: error in /a/b/c/foo.json
```
## API
#### `errorEx([name], [properties])`
Creates a new ErrorEx error type
- `name`: the name of the new type (appears in the error message upon throw;
defaults to `Error.name`)
- `properties`: if supplied, used as a key/value dictionary of properties to
use when building up the stack message. Keys are property names that are
looked up on the error message, and then passed to function values.
- `line`: if specified and is a function, return value is added as a stack
entry (error-ex will indent for you). Passed the property value given
the key.
- `stack`: if specified and is a function, passed the value of the property
using the key, and the raw stack lines as a second argument. Takes no
return value (but the stack can be modified directly).
- `message`: if specified and is a function, return value is used as new
`.message` value upon get. Passed the property value of the property named
by key, and the existing message is passed as the second argument as an
array of lines (suitable for multi-line messages).
Returns a constructor (Function) that can be used just like the regular Error
constructor.
```javascript
var errorEx = require('error-ex');
var BasicError = errorEx();
var NamedError = errorEx('NamedError');
// --
var AdvancedError = errorEx('AdvancedError', {
foo: {
line: function (value, stack) {
if (value) {
return 'bar ' + value;
}
return null;
}
}
}
var err = new AdvancedError('hello, world');
err.foo = 'baz';
throw err;
/*
AdvancedError: hello, world
bar baz
at tryReadme() (readme.js:20:1)
*/
```
#### `errorEx.line(str)`
Creates a stack line using a delimiter
> This is a helper function. It is to be used in lieu of writing a value object
> for `properties` values.
- `str`: The string to create
- Use the delimiter `%s` to specify where in the string the value should go
```javascript
var errorEx = require('error-ex');
var FileError = errorEx('FileError', {fileName: errorEx.line('in %s')});
var err = new FileError('problem reading file');
err.fileName = '/a/b/c/d/foo.js';
throw err;
/*
FileError: problem reading file
in /a/b/c/d/foo.js
at tryReadme() (readme.js:7:1)
*/
```
#### `errorEx.append(str)`
Appends to the `error.message` string
> This is a helper function. It is to be used in lieu of writing a value object
> for `properties` values.
- `str`: The string to append
- Use the delimiter `%s` to specify where in the string the value should go
```javascript
var errorEx = require('error-ex');
var SyntaxError = errorEx('SyntaxError', {fileName: errorEx.append('in %s')});
var err = new SyntaxError('improper indentation');
err.fileName = '/a/b/c/d/foo.js';
throw err;
/*
SyntaxError: improper indentation in /a/b/c/d/foo.js
at tryReadme() (readme.js:7:1)
*/
```
## License
Licensed under the [MIT License](http://opensource.org/licenses/MIT).
You can find a copy of it in [LICENSE](LICENSE).

141
node_modules/error-ex/index.js generated vendored
View File

@@ -1,141 +0,0 @@
'use strict';
var util = require('util');
var isArrayish = require('is-arrayish');
var errorEx = function errorEx(name, properties) {
if (!name || name.constructor !== String) {
properties = name || {};
name = Error.name;
}
var errorExError = function ErrorEXError(message) {
if (!this) {
return new ErrorEXError(message);
}
message = message instanceof Error
? message.message
: (message || this.message);
Error.call(this, message);
Error.captureStackTrace(this, errorExError);
this.name = name;
Object.defineProperty(this, 'message', {
configurable: true,
enumerable: false,
get: function () {
var newMessage = message.split(/\r?\n/g);
for (var key in properties) {
if (!properties.hasOwnProperty(key)) {
continue;
}
var modifier = properties[key];
if ('message' in modifier) {
newMessage = modifier.message(this[key], newMessage) || newMessage;
if (!isArrayish(newMessage)) {
newMessage = [newMessage];
}
}
}
return newMessage.join('\n');
},
set: function (v) {
message = v;
}
});
var overwrittenStack = null;
var stackDescriptor = Object.getOwnPropertyDescriptor(this, 'stack');
var stackGetter = stackDescriptor.get;
var stackValue = stackDescriptor.value;
delete stackDescriptor.value;
delete stackDescriptor.writable;
stackDescriptor.set = function (newstack) {
overwrittenStack = newstack;
};
stackDescriptor.get = function () {
var stack = (overwrittenStack || ((stackGetter)
? stackGetter.call(this)
: stackValue)).split(/\r?\n+/g);
// starting in Node 7, the stack builder caches the message.
// just replace it.
if (!overwrittenStack) {
stack[0] = this.name + ': ' + this.message;
}
var lineCount = 1;
for (var key in properties) {
if (!properties.hasOwnProperty(key)) {
continue;
}
var modifier = properties[key];
if ('line' in modifier) {
var line = modifier.line(this[key]);
if (line) {
stack.splice(lineCount++, 0, ' ' + line);
}
}
if ('stack' in modifier) {
modifier.stack(this[key], stack);
}
}
return stack.join('\n');
};
Object.defineProperty(this, 'stack', stackDescriptor);
};
if (Object.setPrototypeOf) {
Object.setPrototypeOf(errorExError.prototype, Error.prototype);
Object.setPrototypeOf(errorExError, Error);
} else {
util.inherits(errorExError, Error);
}
return errorExError;
};
errorEx.append = function (str, def) {
return {
message: function (v, message) {
v = v || def;
if (v) {
message[0] += ' ' + str.replace('%s', v.toString());
}
return message;
}
};
};
errorEx.line = function (str, def) {
return {
line: function (v) {
v = v || def;
if (v) {
return str.replace('%s', v.toString());
}
return null;
}
};
};
module.exports = errorEx;

46
node_modules/error-ex/package.json generated vendored
View File

@@ -1,46 +0,0 @@
{
"name": "error-ex",
"description": "Easy error subclassing and stack customization",
"version": "1.3.2",
"maintainers": [
"Josh Junon <i.am.qix@gmail.com> (github.com/qix-)",
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)"
],
"keywords": [
"error",
"errors",
"extend",
"extending",
"extension",
"subclass",
"stack",
"custom"
],
"license": "MIT",
"scripts": {
"pretest": "xo",
"test": "mocha --compilers coffee:coffee-script/register"
},
"xo": {
"rules": {
"operator-linebreak": [
0
]
}
},
"repository": "qix-/node-error-ex",
"files": [
"index.js"
],
"devDependencies": {
"coffee-script": "^1.9.3",
"coveralls": "^2.11.2",
"istanbul": "^0.3.17",
"mocha": "^2.2.5",
"should": "^7.0.1",
"xo": "^0.7.1"
},
"dependencies": {
"is-arrayish": "^0.2.1"
}
}

View File

@@ -11,3 +11,5 @@ trim_trailing_whitespace = true;
spaces_in_brackets = false;
end_of_line = lf;
[CHANGELOG.md]
indent_style = space

19
node_modules/es-abstract/.eslintrc generated vendored
View File

@@ -9,18 +9,18 @@
"rules": {
"array-bracket-newline": 0,
"array-element-newline": 0,
"complexity": 0,
"eqeqeq": [2, "allow-null"],
"func-name-matching": 0,
"id-length": [2, { "min": 1, "max": 40 }],
"max-params": [2, 4],
"max-lines-per-function": 1,
"max-statements": 1,
"max-statements-per-line": [2, { "max": 2 }],
"multiline-comment-style": 0,
"no-magic-numbers": 0,
"new-cap": 0,
"no-extra-parens": 1,
"operator-linebreak": [2, "before"],
"sort-keys": 0,
},
@@ -46,9 +46,12 @@
],
"extends": "@ljharb/eslint-config/node/latest",
"rules": {
"complexity": 0,
"func-style": 0,
"max-lines-per-function": 0,
"max-nested-callbacks": 0,
"max-statements": 0,
"no-magic-numbers": 0,
"no-throw-literal": 0,
},
},
@@ -56,9 +59,21 @@
"files": "test/**",
"extends": "@ljharb/eslint-config/tests",
"rules": {
"max-len": 0,
"max-lines-per-function": 0,
"no-implicit-coercion": 0,
"no-invalid-this": 1,
"prefer-promise-reject-errors": 0,
},
},
{
"files": "*/RawBytesToNum*.js",
"rules": {
"operator-linebreak": [2, "before", {
"overrides": {
"=": "none"
}
}],
},
},
],

View File

@@ -1,625 +0,0 @@
2015/AbstractRelationalComparison.js spackled linguist-generated=true
2015/DateFromTime.js spackled linguist-generated=true
2015/Day.js spackled linguist-generated=true
2015/DayFromYear.js spackled linguist-generated=true
2015/DayWithinYear.js spackled linguist-generated=true
2015/DaysInYear.js spackled linguist-generated=true
2015/HourFromTime.js spackled linguist-generated=true
2015/InLeapYear.js spackled linguist-generated=true
2015/IsCallable.js spackled linguist-generated=true
2015/IsPropertyDescriptor.js spackled linguist-generated=true
2015/MakeDate.js spackled linguist-generated=true
2015/MakeDay.js spackled linguist-generated=true
2015/MakeTime.js spackled linguist-generated=true
2015/MinFromTime.js spackled linguist-generated=true
2015/MonthFromTime.js spackled linguist-generated=true
2015/SameValue.js spackled linguist-generated=true
2015/SecFromTime.js spackled linguist-generated=true
2015/StrictEqualityComparison.js spackled linguist-generated=true
2015/TimeClip.js spackled linguist-generated=true
2015/TimeFromYear.js spackled linguist-generated=true
2015/TimeWithinDay.js spackled linguist-generated=true
2015/ToBoolean.js spackled linguist-generated=true
2015/ToInt32.js spackled linguist-generated=true
2015/ToPropertyDescriptor.js spackled linguist-generated=true
2015/ToUint16.js spackled linguist-generated=true
2015/ToUint32.js spackled linguist-generated=true
2015/WeekDay.js spackled linguist-generated=true
2015/YearFromTime.js spackled linguist-generated=true
2015/abs.js spackled linguist-generated=true
2015/floor.js spackled linguist-generated=true
2015/modulo.js spackled linguist-generated=true
2015/msFromTime.js spackled linguist-generated=true
2016/AbstractEqualityComparison.js spackled linguist-generated=true
2016/AbstractRelationalComparison.js spackled linguist-generated=true
2016/AdvanceStringIndex.js spackled linguist-generated=true
2016/ArrayCreate.js spackled linguist-generated=true
2016/ArraySetLength.js spackled linguist-generated=true
2016/ArraySpeciesCreate.js spackled linguist-generated=true
2016/Call.js spackled linguist-generated=true
2016/CanonicalNumericIndexString.js spackled linguist-generated=true
2016/CompletePropertyDescriptor.js spackled linguist-generated=true
2016/CreateDataProperty.js spackled linguist-generated=true
2016/CreateDataPropertyOrThrow.js spackled linguist-generated=true
2016/CreateHTML.js spackled linguist-generated=true
2016/CreateIterResultObject.js spackled linguist-generated=true
2016/CreateListFromArrayLike.js spackled linguist-generated=true
2016/CreateMethodProperty.js spackled linguist-generated=true
2016/DateFromTime.js spackled linguist-generated=true
2016/Day.js spackled linguist-generated=true
2016/DayFromYear.js spackled linguist-generated=true
2016/DayWithinYear.js spackled linguist-generated=true
2016/DaysInYear.js spackled linguist-generated=true
2016/DefinePropertyOrThrow.js spackled linguist-generated=true
2016/DeletePropertyOrThrow.js spackled linguist-generated=true
2016/EnumerableOwnNames.js spackled linguist-generated=true
2016/FromPropertyDescriptor.js spackled linguist-generated=true
2016/Get.js spackled linguist-generated=true
2016/GetIterator.js spackled linguist-generated=true
2016/GetMethod.js spackled linguist-generated=true
2016/GetOwnPropertyKeys.js spackled linguist-generated=true
2016/GetPrototypeFromConstructor.js spackled linguist-generated=true
2016/GetSubstitution.js spackled linguist-generated=true
2016/GetV.js spackled linguist-generated=true
2016/HasOwnProperty.js spackled linguist-generated=true
2016/HasProperty.js spackled linguist-generated=true
2016/HourFromTime.js spackled linguist-generated=true
2016/InLeapYear.js spackled linguist-generated=true
2016/InstanceofOperator.js spackled linguist-generated=true
2016/Invoke.js spackled linguist-generated=true
2016/IsAccessorDescriptor.js spackled linguist-generated=true
2016/IsArray.js spackled linguist-generated=true
2016/IsCallable.js spackled linguist-generated=true
2016/IsConcatSpreadable.js spackled linguist-generated=true
2016/IsConstructor.js spackled linguist-generated=true
2016/IsDataDescriptor.js spackled linguist-generated=true
2016/IsExtensible.js spackled linguist-generated=true
2016/IsGenericDescriptor.js spackled linguist-generated=true
2016/IsInteger.js spackled linguist-generated=true
2016/IsPromise.js spackled linguist-generated=true
2016/IsPropertyDescriptor.js spackled linguist-generated=true
2016/IsPropertyKey.js spackled linguist-generated=true
2016/IsRegExp.js spackled linguist-generated=true
2016/IteratorClose.js spackled linguist-generated=true
2016/IteratorComplete.js spackled linguist-generated=true
2016/IteratorNext.js spackled linguist-generated=true
2016/IteratorStep.js spackled linguist-generated=true
2016/IteratorValue.js spackled linguist-generated=true
2016/MakeDate.js spackled linguist-generated=true
2016/MakeDay.js spackled linguist-generated=true
2016/MakeTime.js spackled linguist-generated=true
2016/MinFromTime.js spackled linguist-generated=true
2016/MonthFromTime.js spackled linguist-generated=true
2016/ObjectCreate.js spackled linguist-generated=true
2016/OrdinaryCreateFromConstructor.js spackled linguist-generated=true
2016/OrdinaryDefineOwnProperty.js spackled linguist-generated=true
2016/OrdinaryGetOwnProperty.js spackled linguist-generated=true
2016/OrdinaryHasInstance.js spackled linguist-generated=true
2016/OrdinaryHasProperty.js spackled linguist-generated=true
2016/QuoteJSONString.js spackled linguist-generated=true
2016/RegExpCreate.js spackled linguist-generated=true
2016/RegExpExec.js spackled linguist-generated=true
2016/RequireObjectCoercible.js spackled linguist-generated=true
2016/SameValue.js spackled linguist-generated=true
2016/SameValueZero.js spackled linguist-generated=true
2016/SecFromTime.js spackled linguist-generated=true
2016/Set.js spackled linguist-generated=true
2016/SetFunctionName.js spackled linguist-generated=true
2016/SetIntegrityLevel.js spackled linguist-generated=true
2016/SpeciesConstructor.js spackled linguist-generated=true
2016/SplitMatch.js spackled linguist-generated=true
2016/StrictEqualityComparison.js spackled linguist-generated=true
2016/StringCreate.js spackled linguist-generated=true
2016/SymbolDescriptiveString.js spackled linguist-generated=true
2016/TestIntegrityLevel.js spackled linguist-generated=true
2016/TimeClip.js spackled linguist-generated=true
2016/TimeFromYear.js spackled linguist-generated=true
2016/TimeWithinDay.js spackled linguist-generated=true
2016/ToBoolean.js spackled linguist-generated=true
2016/ToDateString.js spackled linguist-generated=true
2016/ToInt16.js spackled linguist-generated=true
2016/ToInt32.js spackled linguist-generated=true
2016/ToInt8.js spackled linguist-generated=true
2016/ToInteger.js spackled linguist-generated=true
2016/ToLength.js spackled linguist-generated=true
2016/ToNumber.js spackled linguist-generated=true
2016/ToObject.js spackled linguist-generated=true
2016/ToPrimitive.js spackled linguist-generated=true
2016/ToPropertyDescriptor.js spackled linguist-generated=true
2016/ToPropertyKey.js spackled linguist-generated=true
2016/ToString.js spackled linguist-generated=true
2016/ToUint16.js spackled linguist-generated=true
2016/ToUint32.js spackled linguist-generated=true
2016/ToUint8.js spackled linguist-generated=true
2016/ToUint8Clamp.js spackled linguist-generated=true
2016/Type.js spackled linguist-generated=true
2016/ValidateAndApplyPropertyDescriptor.js spackled linguist-generated=true
2016/WeekDay.js spackled linguist-generated=true
2016/YearFromTime.js spackled linguist-generated=true
2016/abs.js spackled linguist-generated=true
2016/floor.js spackled linguist-generated=true
2016/modulo.js spackled linguist-generated=true
2016/msFromTime.js spackled linguist-generated=true
2016/thisBooleanValue.js spackled linguist-generated=true
2016/thisNumberValue.js spackled linguist-generated=true
2016/thisStringValue.js spackled linguist-generated=true
2016/thisTimeValue.js spackled linguist-generated=true
2017/AbstractEqualityComparison.js spackled linguist-generated=true
2017/AbstractRelationalComparison.js spackled linguist-generated=true
2017/AdvanceStringIndex.js spackled linguist-generated=true
2017/ArrayCreate.js spackled linguist-generated=true
2017/ArraySetLength.js spackled linguist-generated=true
2017/ArraySpeciesCreate.js spackled linguist-generated=true
2017/Call.js spackled linguist-generated=true
2017/CanonicalNumericIndexString.js spackled linguist-generated=true
2017/CompletePropertyDescriptor.js spackled linguist-generated=true
2017/CreateDataProperty.js spackled linguist-generated=true
2017/CreateDataPropertyOrThrow.js spackled linguist-generated=true
2017/CreateHTML.js spackled linguist-generated=true
2017/CreateIterResultObject.js spackled linguist-generated=true
2017/CreateListFromArrayLike.js spackled linguist-generated=true
2017/CreateMethodProperty.js spackled linguist-generated=true
2017/DateFromTime.js spackled linguist-generated=true
2017/Day.js spackled linguist-generated=true
2017/DayFromYear.js spackled linguist-generated=true
2017/DayWithinYear.js spackled linguist-generated=true
2017/DaysInYear.js spackled linguist-generated=true
2017/DefinePropertyOrThrow.js spackled linguist-generated=true
2017/DeletePropertyOrThrow.js spackled linguist-generated=true
2017/FromPropertyDescriptor.js spackled linguist-generated=true
2017/Get.js spackled linguist-generated=true
2017/GetIterator.js spackled linguist-generated=true
2017/GetMethod.js spackled linguist-generated=true
2017/GetOwnPropertyKeys.js spackled linguist-generated=true
2017/GetPrototypeFromConstructor.js spackled linguist-generated=true
2017/GetSubstitution.js spackled linguist-generated=true
2017/GetV.js spackled linguist-generated=true
2017/HasOwnProperty.js spackled linguist-generated=true
2017/HasProperty.js spackled linguist-generated=true
2017/HourFromTime.js spackled linguist-generated=true
2017/InLeapYear.js spackled linguist-generated=true
2017/InstanceofOperator.js spackled linguist-generated=true
2017/Invoke.js spackled linguist-generated=true
2017/IsAccessorDescriptor.js spackled linguist-generated=true
2017/IsArray.js spackled linguist-generated=true
2017/IsCallable.js spackled linguist-generated=true
2017/IsConcatSpreadable.js spackled linguist-generated=true
2017/IsConstructor.js spackled linguist-generated=true
2017/IsDataDescriptor.js spackled linguist-generated=true
2017/IsExtensible.js spackled linguist-generated=true
2017/IsGenericDescriptor.js spackled linguist-generated=true
2017/IsInteger.js spackled linguist-generated=true
2017/IsPromise.js spackled linguist-generated=true
2017/IsPropertyDescriptor.js spackled linguist-generated=true
2017/IsPropertyKey.js spackled linguist-generated=true
2017/IsRegExp.js spackled linguist-generated=true
2017/IteratorClose.js spackled linguist-generated=true
2017/IteratorComplete.js spackled linguist-generated=true
2017/IteratorNext.js spackled linguist-generated=true
2017/IteratorStep.js spackled linguist-generated=true
2017/IteratorValue.js spackled linguist-generated=true
2017/MakeDate.js spackled linguist-generated=true
2017/MakeDay.js spackled linguist-generated=true
2017/MakeTime.js spackled linguist-generated=true
2017/MinFromTime.js spackled linguist-generated=true
2017/MonthFromTime.js spackled linguist-generated=true
2017/ObjectCreate.js spackled linguist-generated=true
2017/OrdinaryCreateFromConstructor.js spackled linguist-generated=true
2017/OrdinaryDefineOwnProperty.js spackled linguist-generated=true
2017/OrdinaryGetOwnProperty.js spackled linguist-generated=true
2017/OrdinaryGetPrototypeOf.js spackled linguist-generated=true
2017/OrdinaryHasInstance.js spackled linguist-generated=true
2017/OrdinaryHasProperty.js spackled linguist-generated=true
2017/OrdinarySetPrototypeOf.js spackled linguist-generated=true
2017/QuoteJSONString.js spackled linguist-generated=true
2017/RegExpCreate.js spackled linguist-generated=true
2017/RegExpExec.js spackled linguist-generated=true
2017/RequireObjectCoercible.js spackled linguist-generated=true
2017/SameValue.js spackled linguist-generated=true
2017/SameValueNonNumber.js spackled linguist-generated=true
2017/SameValueZero.js spackled linguist-generated=true
2017/SecFromTime.js spackled linguist-generated=true
2017/Set.js spackled linguist-generated=true
2017/SetFunctionName.js spackled linguist-generated=true
2017/SetIntegrityLevel.js spackled linguist-generated=true
2017/SpeciesConstructor.js spackled linguist-generated=true
2017/SplitMatch.js spackled linguist-generated=true
2017/StrictEqualityComparison.js spackled linguist-generated=true
2017/StringCreate.js spackled linguist-generated=true
2017/SymbolDescriptiveString.js spackled linguist-generated=true
2017/TestIntegrityLevel.js spackled linguist-generated=true
2017/TimeClip.js spackled linguist-generated=true
2017/TimeFromYear.js spackled linguist-generated=true
2017/TimeWithinDay.js spackled linguist-generated=true
2017/ToBoolean.js spackled linguist-generated=true
2017/ToDateString.js spackled linguist-generated=true
2017/ToInt16.js spackled linguist-generated=true
2017/ToInt32.js spackled linguist-generated=true
2017/ToInt8.js spackled linguist-generated=true
2017/ToInteger.js spackled linguist-generated=true
2017/ToLength.js spackled linguist-generated=true
2017/ToNumber.js spackled linguist-generated=true
2017/ToObject.js spackled linguist-generated=true
2017/ToPrimitive.js spackled linguist-generated=true
2017/ToPropertyDescriptor.js spackled linguist-generated=true
2017/ToPropertyKey.js spackled linguist-generated=true
2017/ToString.js spackled linguist-generated=true
2017/ToUint16.js spackled linguist-generated=true
2017/ToUint32.js spackled linguist-generated=true
2017/ToUint8.js spackled linguist-generated=true
2017/ToUint8Clamp.js spackled linguist-generated=true
2017/Type.js spackled linguist-generated=true
2017/UTF16Decode.js spackled linguist-generated=true
2017/UTF16Encoding.js spackled linguist-generated=true
2017/ValidateAndApplyPropertyDescriptor.js spackled linguist-generated=true
2017/WeekDay.js spackled linguist-generated=true
2017/YearFromTime.js spackled linguist-generated=true
2017/abs.js spackled linguist-generated=true
2017/floor.js spackled linguist-generated=true
2017/modulo.js spackled linguist-generated=true
2017/msFromTime.js spackled linguist-generated=true
2017/thisBooleanValue.js spackled linguist-generated=true
2017/thisNumberValue.js spackled linguist-generated=true
2017/thisStringValue.js spackled linguist-generated=true
2017/thisTimeValue.js spackled linguist-generated=true
2018/AbstractEqualityComparison.js spackled linguist-generated=true
2018/AbstractRelationalComparison.js spackled linguist-generated=true
2018/AdvanceStringIndex.js spackled linguist-generated=true
2018/ArrayCreate.js spackled linguist-generated=true
2018/ArraySetLength.js spackled linguist-generated=true
2018/ArraySpeciesCreate.js spackled linguist-generated=true
2018/Call.js spackled linguist-generated=true
2018/CanonicalNumericIndexString.js spackled linguist-generated=true
2018/CompletePropertyDescriptor.js spackled linguist-generated=true
2018/CreateDataProperty.js spackled linguist-generated=true
2018/CreateDataPropertyOrThrow.js spackled linguist-generated=true
2018/CreateHTML.js spackled linguist-generated=true
2018/CreateIterResultObject.js spackled linguist-generated=true
2018/CreateListFromArrayLike.js spackled linguist-generated=true
2018/CreateMethodProperty.js spackled linguist-generated=true
2018/DateFromTime.js spackled linguist-generated=true
2018/Day.js spackled linguist-generated=true
2018/DayFromYear.js spackled linguist-generated=true
2018/DayWithinYear.js spackled linguist-generated=true
2018/DaysInYear.js spackled linguist-generated=true
2018/DefinePropertyOrThrow.js spackled linguist-generated=true
2018/DeletePropertyOrThrow.js spackled linguist-generated=true
2018/FromPropertyDescriptor.js spackled linguist-generated=true
2018/Get.js spackled linguist-generated=true
2018/GetIterator.js spackled linguist-generated=true
2018/GetMethod.js spackled linguist-generated=true
2018/GetOwnPropertyKeys.js spackled linguist-generated=true
2018/GetPrototypeFromConstructor.js spackled linguist-generated=true
2018/GetV.js spackled linguist-generated=true
2018/HasOwnProperty.js spackled linguist-generated=true
2018/HasProperty.js spackled linguist-generated=true
2018/HourFromTime.js spackled linguist-generated=true
2018/InLeapYear.js spackled linguist-generated=true
2018/InstanceofOperator.js spackled linguist-generated=true
2018/Invoke.js spackled linguist-generated=true
2018/IsAccessorDescriptor.js spackled linguist-generated=true
2018/IsArray.js spackled linguist-generated=true
2018/IsCallable.js spackled linguist-generated=true
2018/IsConcatSpreadable.js spackled linguist-generated=true
2018/IsConstructor.js spackled linguist-generated=true
2018/IsDataDescriptor.js spackled linguist-generated=true
2018/IsExtensible.js spackled linguist-generated=true
2018/IsGenericDescriptor.js spackled linguist-generated=true
2018/IsInteger.js spackled linguist-generated=true
2018/IsPromise.js spackled linguist-generated=true
2018/IsPropertyKey.js spackled linguist-generated=true
2018/IsRegExp.js spackled linguist-generated=true
2018/IterableToList.js spackled linguist-generated=true
2018/IteratorClose.js spackled linguist-generated=true
2018/IteratorComplete.js spackled linguist-generated=true
2018/IteratorNext.js spackled linguist-generated=true
2018/IteratorStep.js spackled linguist-generated=true
2018/IteratorValue.js spackled linguist-generated=true
2018/MakeDate.js spackled linguist-generated=true
2018/MakeDay.js spackled linguist-generated=true
2018/MakeTime.js spackled linguist-generated=true
2018/MinFromTime.js spackled linguist-generated=true
2018/MonthFromTime.js spackled linguist-generated=true
2018/ObjectCreate.js spackled linguist-generated=true
2018/OrdinaryCreateFromConstructor.js spackled linguist-generated=true
2018/OrdinaryDefineOwnProperty.js spackled linguist-generated=true
2018/OrdinaryGetOwnProperty.js spackled linguist-generated=true
2018/OrdinaryGetPrototypeOf.js spackled linguist-generated=true
2018/OrdinaryHasInstance.js spackled linguist-generated=true
2018/OrdinaryHasProperty.js spackled linguist-generated=true
2018/OrdinarySetPrototypeOf.js spackled linguist-generated=true
2018/RegExpCreate.js spackled linguist-generated=true
2018/RegExpExec.js spackled linguist-generated=true
2018/RequireObjectCoercible.js spackled linguist-generated=true
2018/SameValue.js spackled linguist-generated=true
2018/SameValueNonNumber.js spackled linguist-generated=true
2018/SameValueZero.js spackled linguist-generated=true
2018/SecFromTime.js spackled linguist-generated=true
2018/Set.js spackled linguist-generated=true
2018/SetFunctionName.js spackled linguist-generated=true
2018/SetIntegrityLevel.js spackled linguist-generated=true
2018/SpeciesConstructor.js spackled linguist-generated=true
2018/SplitMatch.js spackled linguist-generated=true
2018/StrictEqualityComparison.js spackled linguist-generated=true
2018/StringCreate.js spackled linguist-generated=true
2018/StringGetOwnProperty.js spackled linguist-generated=true
2018/SymbolDescriptiveString.js spackled linguist-generated=true
2018/TestIntegrityLevel.js spackled linguist-generated=true
2018/TimeClip.js spackled linguist-generated=true
2018/TimeFromYear.js spackled linguist-generated=true
2018/TimeWithinDay.js spackled linguist-generated=true
2018/ToBoolean.js spackled linguist-generated=true
2018/ToDateString.js spackled linguist-generated=true
2018/ToIndex.js spackled linguist-generated=true
2018/ToInt16.js spackled linguist-generated=true
2018/ToInt32.js spackled linguist-generated=true
2018/ToInt8.js spackled linguist-generated=true
2018/ToInteger.js spackled linguist-generated=true
2018/ToLength.js spackled linguist-generated=true
2018/ToNumber.js spackled linguist-generated=true
2018/ToObject.js spackled linguist-generated=true
2018/ToPrimitive.js spackled linguist-generated=true
2018/ToPropertyDescriptor.js spackled linguist-generated=true
2018/ToPropertyKey.js spackled linguist-generated=true
2018/ToString.js spackled linguist-generated=true
2018/ToUint16.js spackled linguist-generated=true
2018/ToUint32.js spackled linguist-generated=true
2018/ToUint8.js spackled linguist-generated=true
2018/ToUint8Clamp.js spackled linguist-generated=true
2018/Type.js spackled linguist-generated=true
2018/UTF16Decode.js spackled linguist-generated=true
2018/UTF16Encoding.js spackled linguist-generated=true
2018/ValidateAndApplyPropertyDescriptor.js spackled linguist-generated=true
2018/WeekDay.js spackled linguist-generated=true
2018/YearFromTime.js spackled linguist-generated=true
2018/abs.js spackled linguist-generated=true
2018/floor.js spackled linguist-generated=true
2018/modulo.js spackled linguist-generated=true
2018/msFromTime.js spackled linguist-generated=true
2018/thisBooleanValue.js spackled linguist-generated=true
2018/thisNumberValue.js spackled linguist-generated=true
2018/thisStringValue.js spackled linguist-generated=true
2018/thisTimeValue.js spackled linguist-generated=true
2019/AbstractEqualityComparison.js spackled linguist-generated=true
2019/AbstractRelationalComparison.js spackled linguist-generated=true
2019/AdvanceStringIndex.js spackled linguist-generated=true
2019/ArrayCreate.js spackled linguist-generated=true
2019/ArraySetLength.js spackled linguist-generated=true
2019/ArraySpeciesCreate.js spackled linguist-generated=true
2019/Call.js spackled linguist-generated=true
2019/CanonicalNumericIndexString.js spackled linguist-generated=true
2019/CompletePropertyDescriptor.js spackled linguist-generated=true
2019/CopyDataProperties.js spackled linguist-generated=true
2019/CreateDataProperty.js spackled linguist-generated=true
2019/CreateDataPropertyOrThrow.js spackled linguist-generated=true
2019/CreateHTML.js spackled linguist-generated=true
2019/CreateIterResultObject.js spackled linguist-generated=true
2019/CreateListFromArrayLike.js spackled linguist-generated=true
2019/CreateMethodProperty.js spackled linguist-generated=true
2019/DateFromTime.js spackled linguist-generated=true
2019/DateString.js spackled linguist-generated=true
2019/Day.js spackled linguist-generated=true
2019/DayFromYear.js spackled linguist-generated=true
2019/DayWithinYear.js spackled linguist-generated=true
2019/DaysInYear.js spackled linguist-generated=true
2019/DefinePropertyOrThrow.js spackled linguist-generated=true
2019/DeletePropertyOrThrow.js spackled linguist-generated=true
2019/EnumerableOwnPropertyNames.js spackled linguist-generated=true
2019/FromPropertyDescriptor.js spackled linguist-generated=true
2019/Get.js spackled linguist-generated=true
2019/GetIterator.js spackled linguist-generated=true
2019/GetMethod.js spackled linguist-generated=true
2019/GetOwnPropertyKeys.js spackled linguist-generated=true
2019/GetPrototypeFromConstructor.js spackled linguist-generated=true
2019/GetSubstitution.js spackled linguist-generated=true
2019/GetV.js spackled linguist-generated=true
2019/HasOwnProperty.js spackled linguist-generated=true
2019/HasProperty.js spackled linguist-generated=true
2019/HourFromTime.js spackled linguist-generated=true
2019/InLeapYear.js spackled linguist-generated=true
2019/InstanceofOperator.js spackled linguist-generated=true
2019/Invoke.js spackled linguist-generated=true
2019/IsAccessorDescriptor.js spackled linguist-generated=true
2019/IsArray.js spackled linguist-generated=true
2019/IsCallable.js spackled linguist-generated=true
2019/IsConcatSpreadable.js spackled linguist-generated=true
2019/IsConstructor.js spackled linguist-generated=true
2019/IsDataDescriptor.js spackled linguist-generated=true
2019/IsExtensible.js spackled linguist-generated=true
2019/IsGenericDescriptor.js spackled linguist-generated=true
2019/IsInteger.js spackled linguist-generated=true
2019/IsPromise.js spackled linguist-generated=true
2019/IsPropertyKey.js spackled linguist-generated=true
2019/IsRegExp.js spackled linguist-generated=true
2019/IsStringPrefix.js spackled linguist-generated=true
2019/IterableToList.js spackled linguist-generated=true
2019/IteratorClose.js spackled linguist-generated=true
2019/IteratorComplete.js spackled linguist-generated=true
2019/IteratorNext.js spackled linguist-generated=true
2019/IteratorStep.js spackled linguist-generated=true
2019/IteratorValue.js spackled linguist-generated=true
2019/MakeDate.js spackled linguist-generated=true
2019/MakeDay.js spackled linguist-generated=true
2019/MakeTime.js spackled linguist-generated=true
2019/MinFromTime.js spackled linguist-generated=true
2019/MonthFromTime.js spackled linguist-generated=true
2019/NumberToString.js spackled linguist-generated=true
2019/ObjectCreate.js spackled linguist-generated=true
2019/OrdinaryCreateFromConstructor.js spackled linguist-generated=true
2019/OrdinaryDefineOwnProperty.js spackled linguist-generated=true
2019/OrdinaryGetOwnProperty.js spackled linguist-generated=true
2019/OrdinaryGetPrototypeOf.js spackled linguist-generated=true
2019/OrdinaryHasInstance.js spackled linguist-generated=true
2019/OrdinaryHasProperty.js spackled linguist-generated=true
2019/OrdinarySetPrototypeOf.js spackled linguist-generated=true
2019/PromiseResolve.js spackled linguist-generated=true
2019/RegExpCreate.js spackled linguist-generated=true
2019/RegExpExec.js spackled linguist-generated=true
2019/RequireObjectCoercible.js spackled linguist-generated=true
2019/SameValue.js spackled linguist-generated=true
2019/SameValueNonNumber.js spackled linguist-generated=true
2019/SameValueZero.js spackled linguist-generated=true
2019/SecFromTime.js spackled linguist-generated=true
2019/Set.js spackled linguist-generated=true
2019/SetFunctionLength.js spackled linguist-generated=true
2019/SetFunctionName.js spackled linguist-generated=true
2019/SetIntegrityLevel.js spackled linguist-generated=true
2019/SpeciesConstructor.js spackled linguist-generated=true
2019/SplitMatch.js spackled linguist-generated=true
2019/StrictEqualityComparison.js spackled linguist-generated=true
2019/StringCreate.js spackled linguist-generated=true
2019/StringGetOwnProperty.js spackled linguist-generated=true
2019/SymbolDescriptiveString.js spackled linguist-generated=true
2019/TestIntegrityLevel.js spackled linguist-generated=true
2019/TimeClip.js spackled linguist-generated=true
2019/TimeFromYear.js spackled linguist-generated=true
2019/TimeString.js spackled linguist-generated=true
2019/TimeWithinDay.js spackled linguist-generated=true
2019/ToBoolean.js spackled linguist-generated=true
2019/ToDateString.js spackled linguist-generated=true
2019/ToIndex.js spackled linguist-generated=true
2019/ToInt16.js spackled linguist-generated=true
2019/ToInt32.js spackled linguist-generated=true
2019/ToInt8.js spackled linguist-generated=true
2019/ToInteger.js spackled linguist-generated=true
2019/ToLength.js spackled linguist-generated=true
2019/ToNumber.js spackled linguist-generated=true
2019/ToObject.js spackled linguist-generated=true
2019/ToPrimitive.js spackled linguist-generated=true
2019/ToPropertyDescriptor.js spackled linguist-generated=true
2019/ToPropertyKey.js spackled linguist-generated=true
2019/ToString.js spackled linguist-generated=true
2019/ToUint16.js spackled linguist-generated=true
2019/ToUint32.js spackled linguist-generated=true
2019/ToUint8.js spackled linguist-generated=true
2019/ToUint8Clamp.js spackled linguist-generated=true
2019/Type.js spackled linguist-generated=true
2019/UTF16Decode.js spackled linguist-generated=true
2019/UTF16Encoding.js spackled linguist-generated=true
2019/UnicodeEscape.js spackled linguist-generated=true
2019/ValidateAndApplyPropertyDescriptor.js spackled linguist-generated=true
2019/WeekDay.js spackled linguist-generated=true
2019/YearFromTime.js spackled linguist-generated=true
2019/abs.js spackled linguist-generated=true
2019/floor.js spackled linguist-generated=true
2019/modulo.js spackled linguist-generated=true
2019/msFromTime.js spackled linguist-generated=true
2019/thisBooleanValue.js spackled linguist-generated=true
2019/thisNumberValue.js spackled linguist-generated=true
2019/thisStringValue.js spackled linguist-generated=true
2019/thisSymbolValue.js spackled linguist-generated=true
2020/AbstractEqualityComparison.js spackled linguist-generated=true
2020/AbstractRelationalComparison.js spackled linguist-generated=true
2020/AddEntriesFromIterable.js spackled linguist-generated=true
2020/ArrayCreate.js spackled linguist-generated=true
2020/ArraySetLength.js spackled linguist-generated=true
2020/ArraySpeciesCreate.js spackled linguist-generated=true
2020/Call.js spackled linguist-generated=true
2020/CanonicalNumericIndexString.js spackled linguist-generated=true
2020/CompletePropertyDescriptor.js spackled linguist-generated=true
2020/CreateDataProperty.js spackled linguist-generated=true
2020/CreateDataPropertyOrThrow.js spackled linguist-generated=true
2020/CreateHTML.js spackled linguist-generated=true
2020/CreateIterResultObject.js spackled linguist-generated=true
2020/CreateMethodProperty.js spackled linguist-generated=true
2020/DateFromTime.js spackled linguist-generated=true
2020/DateString.js spackled linguist-generated=true
2020/Day.js spackled linguist-generated=true
2020/DayFromYear.js spackled linguist-generated=true
2020/DayWithinYear.js spackled linguist-generated=true
2020/DaysInYear.js spackled linguist-generated=true
2020/DefinePropertyOrThrow.js spackled linguist-generated=true
2020/DeletePropertyOrThrow.js spackled linguist-generated=true
2020/EnumerableOwnPropertyNames.js spackled linguist-generated=true
2020/FromPropertyDescriptor.js spackled linguist-generated=true
2020/Get.js spackled linguist-generated=true
2020/GetMethod.js spackled linguist-generated=true
2020/GetOwnPropertyKeys.js spackled linguist-generated=true
2020/GetPrototypeFromConstructor.js spackled linguist-generated=true
2020/GetSubstitution.js spackled linguist-generated=true
2020/GetV.js spackled linguist-generated=true
2020/HasOwnProperty.js spackled linguist-generated=true
2020/HasProperty.js spackled linguist-generated=true
2020/HourFromTime.js spackled linguist-generated=true
2020/InLeapYear.js spackled linguist-generated=true
2020/InstanceofOperator.js spackled linguist-generated=true
2020/Invoke.js spackled linguist-generated=true
2020/IsAccessorDescriptor.js spackled linguist-generated=true
2020/IsArray.js spackled linguist-generated=true
2020/IsCallable.js spackled linguist-generated=true
2020/IsConcatSpreadable.js spackled linguist-generated=true
2020/IsConstructor.js spackled linguist-generated=true
2020/IsDataDescriptor.js spackled linguist-generated=true
2020/IsExtensible.js spackled linguist-generated=true
2020/IsGenericDescriptor.js spackled linguist-generated=true
2020/IsInteger.js spackled linguist-generated=true
2020/IsPromise.js spackled linguist-generated=true
2020/IsPropertyKey.js spackled linguist-generated=true
2020/IsRegExp.js spackled linguist-generated=true
2020/IsStringPrefix.js spackled linguist-generated=true
2020/IteratorClose.js spackled linguist-generated=true
2020/IteratorComplete.js spackled linguist-generated=true
2020/IteratorNext.js spackled linguist-generated=true
2020/IteratorStep.js spackled linguist-generated=true
2020/IteratorValue.js spackled linguist-generated=true
2020/MakeDate.js spackled linguist-generated=true
2020/MakeDay.js spackled linguist-generated=true
2020/MakeTime.js spackled linguist-generated=true
2020/MinFromTime.js spackled linguist-generated=true
2020/MonthFromTime.js spackled linguist-generated=true
2020/OrdinaryDefineOwnProperty.js spackled linguist-generated=true
2020/OrdinaryGetOwnProperty.js spackled linguist-generated=true
2020/OrdinaryGetPrototypeOf.js spackled linguist-generated=true
2020/OrdinaryHasInstance.js spackled linguist-generated=true
2020/OrdinaryHasProperty.js spackled linguist-generated=true
2020/OrdinarySetPrototypeOf.js spackled linguist-generated=true
2020/PromiseResolve.js spackled linguist-generated=true
2020/RegExpCreate.js spackled linguist-generated=true
2020/RegExpExec.js spackled linguist-generated=true
2020/RequireObjectCoercible.js spackled linguist-generated=true
2020/SameValue.js spackled linguist-generated=true
2020/SameValueZero.js spackled linguist-generated=true
2020/SecFromTime.js spackled linguist-generated=true
2020/Set.js spackled linguist-generated=true
2020/SetFunctionName.js spackled linguist-generated=true
2020/SetIntegrityLevel.js spackled linguist-generated=true
2020/SpeciesConstructor.js spackled linguist-generated=true
2020/SplitMatch.js spackled linguist-generated=true
2020/StrictEqualityComparison.js spackled linguist-generated=true
2020/StringCreate.js spackled linguist-generated=true
2020/StringGetOwnProperty.js spackled linguist-generated=true
2020/SymbolDescriptiveString.js spackled linguist-generated=true
2020/TestIntegrityLevel.js spackled linguist-generated=true
2020/TimeClip.js spackled linguist-generated=true
2020/TimeFromYear.js spackled linguist-generated=true
2020/TimeString.js spackled linguist-generated=true
2020/TimeWithinDay.js spackled linguist-generated=true
2020/ToBoolean.js spackled linguist-generated=true
2020/ToDateString.js spackled linguist-generated=true
2020/ToInt16.js spackled linguist-generated=true
2020/ToInt32.js spackled linguist-generated=true
2020/ToInt8.js spackled linguist-generated=true
2020/ToLength.js spackled linguist-generated=true
2020/ToObject.js spackled linguist-generated=true
2020/ToPrimitive.js spackled linguist-generated=true
2020/ToPropertyDescriptor.js spackled linguist-generated=true
2020/ToPropertyKey.js spackled linguist-generated=true
2020/ToString.js spackled linguist-generated=true
2020/ToUint16.js spackled linguist-generated=true
2020/ToUint32.js spackled linguist-generated=true
2020/ToUint8.js spackled linguist-generated=true
2020/ToUint8Clamp.js spackled linguist-generated=true
2020/TrimString.js spackled linguist-generated=true
2020/UTF16Encoding.js spackled linguist-generated=true
2020/ValidateAndApplyPropertyDescriptor.js spackled linguist-generated=true
2020/WeekDay.js spackled linguist-generated=true
2020/YearFromTime.js spackled linguist-generated=true
2020/abs.js spackled linguist-generated=true
2020/floor.js spackled linguist-generated=true
2020/modulo.js spackled linguist-generated=true
2020/msFromTime.js spackled linguist-generated=true
2020/thisBooleanValue.js spackled linguist-generated=true
2020/thisNumberValue.js spackled linguist-generated=true
2020/thisStringValue.js spackled linguist-generated=true
2020/thisSymbolValue.js spackled linguist-generated=true
2020/thisTimeValue.js spackled linguist-generated=true

7
node_modules/es-abstract/.nycrc generated vendored
View File

@@ -5,6 +5,11 @@
"exclude": [
"coverage",
"operations",
"test"
"test",
"helpers/callBind.js",
"helpers/callBound.js",
"helpers/getOwnPropertyDescriptor.js",
"helpers/getSymbolDescription.js",
"helpers/regexTester.js"
]
}

View File

@@ -9,16 +9,17 @@ var $TypeError = GetIntrinsic('%TypeError%');
var IsInteger = require('./IsInteger');
var hasProto = require('has-proto')();
var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
// eslint-disable-next-line no-proto, no-negated-condition
[].__proto__ !== $ArrayPrototype
? null
: function (O, proto) {
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate

31
node_modules/es-abstract/2015/CharacterRange.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var callBound = require('call-bind/callBound');
var $fromCharCode = GetIntrinsic('%String.fromCharCode%');
var $TypeError = GetIntrinsic('%TypeError%');
var $charCodeAt = callBound('%String.prototype.charCodeAt%');
var $push = callBound('%Array.prototype.push%');
module.exports = function CharacterRange(A, B) {
if (A.length !== 1 || B.length !== 1) {
throw new $TypeError('Assertion failed: CharSets A and B contain exactly one character');
}
var a = A[0];
var b = B[0];
var i = $charCodeAt(a, 0);
var j = $charCodeAt(b, 0);
if (!(i <= j)) {
throw new $TypeError('Assertion failed: i is not <= j');
}
var arr = [];
for (var k = i; k <= j; k += 1) {
$push(arr, $fromCharCode(k));
}
return arr;
};

53
node_modules/es-abstract/2015/CompletionRecord.js generated vendored Normal file
View File

@@ -0,0 +1,53 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var SLOT = require('internal-slot');
// https://262.ecma-international.org/6.0/#sec-completion-record-specification-type
var CompletionRecord = function CompletionRecord(type, value) {
if (!(this instanceof CompletionRecord)) {
return new CompletionRecord(type, value);
}
if (type !== 'normal' && type !== 'break' && type !== 'continue' && type !== 'return' && type !== 'throw') {
throw new $SyntaxError('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');
}
SLOT.set(this, '[[type]]', type);
SLOT.set(this, '[[value]]', value);
// [[target]] slot?
};
CompletionRecord.prototype.type = function type() {
return SLOT.get(this, '[[type]]');
};
CompletionRecord.prototype.value = function value() {
return SLOT.get(this, '[[value]]');
};
CompletionRecord.prototype['?'] = function ReturnIfAbrupt() {
var type = SLOT.get(this, '[[type]]');
var value = SLOT.get(this, '[[value]]');
if (type === 'normal') {
return value;
}
if (type === 'throw') {
throw value;
}
throw new $SyntaxError('Completion Record is not of type "normal" or "throw": other types not supported');
};
CompletionRecord.prototype['!'] = function assert() {
var type = SLOT.get(this, '[[type]]');
if (type !== 'normal') {
throw new $SyntaxError('Assertion failed: Completion Record is not of type "normal"');
}
return SLOT.get(this, '[[value]]');
};
module.exports = CompletionRecord;

View File

@@ -25,8 +25,8 @@ module.exports = function CreateDataProperty(O, P, V) {
}
var oldDesc = OrdinaryGetOwnProperty(O, P);
var extensible = !oldDesc || IsExtensible(O);
var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
if (immutable || !extensible) {
var nonConfigurable = oldDesc && !oldDesc['[[Configurable]]'];
if (nonConfigurable || !extensible) {
return false;
}
return DefineOwnProperty(

34
node_modules/es-abstract/2015/DetachArrayBuffer.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var isArrayBuffer = require('is-array-buffer');
var MessageChannel;
try {
// eslint-disable-next-line global-require
MessageChannel = require('worker_threads').MessageChannel; // node 11.7+
} catch (e) { /**/ }
// https://262.ecma-international.org/6.0/#sec-detacharraybuffer
/* globals postMessage */
module.exports = function DetachArrayBuffer(arrayBuffer) {
if (!isArrayBuffer(arrayBuffer)) {
throw new $TypeError('Assertion failed: `arrayBuffer` must be an Object with an [[ArrayBufferData]] internal slot');
}
if (typeof structuredClone === 'function') {
structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
} else if (typeof postMessage === 'function') {
postMessage('', '/', [arrayBuffer]); // TODO: see if this might trigger listeners
} else if (MessageChannel) {
(new MessageChannel()).port1.postMessage(null, [arrayBuffer]);
} else {
throw new $SyntaxError('DetachArrayBuffer is not supported in this environment');
}
return null;
};

View File

@@ -1,36 +1,16 @@
'use strict';
var assertRecord = require('../helpers/assertRecord');
var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor');
var Type = require('./Type');
// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
module.exports = function FromPropertyDescriptor(Desc) {
if (typeof Desc === 'undefined') {
return Desc;
}
if (typeof Desc !== 'undefined') {
assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
}
var obj = {};
if ('[[Value]]' in Desc) {
obj.value = Desc['[[Value]]'];
}
if ('[[Writable]]' in Desc) {
obj.writable = Desc['[[Writable]]'];
}
if ('[[Get]]' in Desc) {
obj.get = Desc['[[Get]]'];
}
if ('[[Set]]' in Desc) {
obj.set = Desc['[[Set]]'];
}
if ('[[Enumerable]]' in Desc) {
obj.enumerable = Desc['[[Enumerable]]'];
}
if ('[[Configurable]]' in Desc) {
obj.configurable = Desc['[[Configurable]]'];
}
return obj;
return fromPropertyDescriptor(Desc);
};

View File

@@ -9,12 +9,7 @@ var inspect = require('object-inspect');
var IsPropertyKey = require('./IsPropertyKey');
var Type = require('./Type');
/**
* 7.3.1 Get (O, P) - https://ecma-international.org/ecma-262/6.0/#sec-get-o-p
* 1. Assert: Type(O) is Object.
* 2. Assert: IsPropertyKey(P) is true.
* 3. Return O.[[Get]](P, O).
*/
// https://ecma-international.org/ecma-262/6.0/#sec-get-o-p
module.exports = function Get(O, P) {
// 7.3.1.1

9
node_modules/es-abstract/2015/GetGlobalObject.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
var getGlobal = require('globalthis/polyfill');
// https://262.ecma-international.org/6.0/#sec-getglobalobject
module.exports = function GetGlobalObject() {
return getGlobal();
};

View File

@@ -20,8 +20,7 @@ module.exports = function GetIterator(obj, method) {
{
AdvanceStringIndex: AdvanceStringIndex,
GetMethod: GetMethod,
IsArray: IsArray,
Type: Type
IsArray: IsArray
},
obj
);

View File

@@ -8,15 +8,9 @@ var GetV = require('./GetV');
var IsCallable = require('./IsCallable');
var IsPropertyKey = require('./IsPropertyKey');
/**
* 7.3.9 - https://ecma-international.org/ecma-262/6.0/#sec-getmethod
* 1. Assert: IsPropertyKey(P) is true.
* 2. Let func be GetV(O, P).
* 3. ReturnIfAbrupt(func).
* 4. If func is either undefined or null, return undefined.
* 5. If IsCallable(func) is false, throw a TypeError exception.
* 6. Return func.
*/
var debug = require('object-inspect');
// https://ecma-international.org/ecma-262/6.0/#sec-getmethod
module.exports = function GetMethod(O, P) {
// 7.3.9.1
@@ -34,7 +28,7 @@ module.exports = function GetMethod(O, P) {
// 7.3.9.5
if (!IsCallable(func)) {
throw new $TypeError(P + 'is not a function');
throw new $TypeError(P + ' is not a function: ' + debug(func));
}
// 7.3.9.6

View File

@@ -6,8 +6,8 @@ var hasSymbols = require('has-symbols')();
var $TypeError = GetIntrinsic('%TypeError%');
var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%');
var $gOPS = hasSymbols && GetIntrinsic('%Object.getOwnPropertySymbols%');
var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true);
var $gOPS = hasSymbols && GetIntrinsic('%Object.getOwnPropertySymbols%', true);
var keys = require('object-keys');
var esType = require('./Type');

View File

@@ -4,6 +4,7 @@ var GetIntrinsic = require('get-intrinsic');
var $Function = GetIntrinsic('%Function%');
var $TypeError = GetIntrinsic('%TypeError%');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var Get = require('./Get');
var IsConstructor = require('./IsConstructor');
@@ -20,7 +21,7 @@ module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefa
if (Type(proto) !== 'Object') {
if (!(constructor instanceof $Function)) {
// ignore other realms, for now
throw new $TypeError('cross-realm constructors not currently supported');
throw new $SyntaxError('cross-realm constructors not currently supported');
}
proto = intrinsic;
}

View File

@@ -8,7 +8,7 @@ var $parseInt = GetIntrinsic('%parseInt%');
var inspect = require('object-inspect');
var regexTester = require('../helpers/regexTester');
var regexTester = require('safe-regex-test');
var callBound = require('call-bind/callBound');
var every = require('../helpers/every');

View File

@@ -7,13 +7,7 @@ var $TypeError = GetIntrinsic('%TypeError%');
var IsPropertyKey = require('./IsPropertyKey');
var ToObject = require('./ToObject');
/**
* 7.3.2 GetV (V, P)
* 1. Assert: IsPropertyKey(P) is true.
* 2. Let O be ToObject(V).
* 3. ReturnIfAbrupt(O).
* 4. Return O.[[Get]](P, V).
*/
// https://ecma-international.org/ecma-262/6.0/#sec-getv
module.exports = function GetV(V, P) {
// 7.3.2.1

View File

@@ -1,14 +1,4 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $Array = GetIntrinsic('%Array%');
// eslint-disable-next-line global-require
var toStr = !$Array.isArray && require('call-bind/callBound')('Object.prototype.toString');
// https://ecma-international.org/ecma-262/6.0/#sec-isarray
module.exports = $Array.isArray || function IsArray(argument) {
return toStr(argument) === '[object Array]';
};
module.exports = require('../helpers/IsArray');

View File

@@ -0,0 +1,9 @@
'use strict';
var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor');
// https://262.ecma-international.org/6.0/#sec-iscompatiblepropertydescriptor
module.exports = function IsCompatiblePropertyDescriptor(Extensible, Desc, Current) {
return ValidateAndApplyPropertyDescriptor(undefined, undefined, Extensible, Desc, Current);
};

30
node_modules/es-abstract/2015/IsDetachedBuffer.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var callBound = require('call-bind/callBound');
var $byteLength = callBound('%ArrayBuffer.prototype.byteLength%', true)
|| function byteLength(ab) { return ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property
var isArrayBuffer = require('is-array-buffer');
var availableTypedArrays = require('available-typed-arrays')();
// https://262.ecma-international.org/6.0/#sec-isdetachedbuffer
module.exports = function IsDetachedBuffer(arrayBuffer) {
if (!isArrayBuffer(arrayBuffer)) {
throw new $TypeError('Assertion failed: `arrayBuffer` must be an Object with an [[ArrayBufferData]] internal slot');
}
if ($byteLength(arrayBuffer) === 0) {
try {
new global[availableTypedArrays[0]](arrayBuffer); // eslint-disable-line no-new
} catch (error) {
return error.name === 'TypeError';
}
}
return false;
};

View File

@@ -2,13 +2,11 @@
var GetIntrinsic = require('get-intrinsic');
var $Object = GetIntrinsic('%Object%');
var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true);
var $isExtensible = GetIntrinsic('%Object.isExtensible%', true);
var isPrimitive = require('../helpers/isPrimitive');
var $preventExtensions = $Object.preventExtensions;
var $isExtensible = $Object.isExtensible;
// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
module.exports = $preventExtensions

View File

@@ -5,6 +5,7 @@ var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var Call = require('./Call');
var CompletionRecord = require('./CompletionRecord');
var GetMethod = require('./GetMethod');
var IsCallable = require('./IsCallable');
var Type = require('./Type');
@@ -15,10 +16,10 @@ module.exports = function IteratorClose(iterator, completion) {
if (Type(iterator) !== 'Object') {
throw new $TypeError('Assertion failed: Type(iterator) is not Object');
}
if (!IsCallable(completion)) {
throw new $TypeError('Assertion failed: completion is not a thunk for a Completion Record');
if (!IsCallable(completion) && !(completion instanceof CompletionRecord)) {
throw new $TypeError('Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance');
}
var completionThunk = completion;
var completionThunk = completion instanceof CompletionRecord ? function () { return completion['?'](); } : completion;
var iteratorReturn = GetMethod(iterator, 'return');

9
node_modules/es-abstract/2015/NormalCompletion.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
var CompletionRecord = require('./CompletionRecord');
// https://262.ecma-international.org/6.0/#sec-normalcompletion
module.exports = function NormalCompletion(value) {
return new CompletionRecord('normal', value);
};

View File

@@ -6,9 +6,14 @@ var $ObjectCreate = GetIntrinsic('%Object.create%', true);
var $TypeError = GetIntrinsic('%TypeError%');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var IsArray = require('./IsArray');
var Type = require('./Type');
var hasProto = !({ __proto__: null } instanceof Object);
var forEach = require('../helpers/forEach');
var SLOT = require('internal-slot');
var hasProto = require('has-proto')();
// https://ecma-international.org/ecma-262/6.0/#sec-objectcreate
@@ -16,22 +21,30 @@ module.exports = function ObjectCreate(proto, internalSlotsList) {
if (proto !== null && Type(proto) !== 'Object') {
throw new $TypeError('Assertion failed: `proto` must be null or an object');
}
var slots = arguments.length < 2 ? [] : internalSlotsList;
if (slots.length > 0) {
throw new $SyntaxError('es-abstract does not yet support internal slots');
var slots = arguments.length < 2 ? [] : internalSlotsList; // step 1
if (arguments.length >= 2 && !IsArray(slots)) {
throw new $TypeError('Assertion failed: `internalSlotsList` must be an Array');
}
var O;
if ($ObjectCreate) {
return $ObjectCreate(proto);
}
if (hasProto) {
return { __proto__: proto };
}
O = $ObjectCreate(proto);
} else if (hasProto) {
O = { __proto__: proto };
} else {
if (proto === null) {
throw new $SyntaxError('native Object.create support is required to create null objects');
}
var T = function T() {};
T.prototype = proto;
return new T();
O = new T();
}
if (slots.length > 0) {
forEach(slots, function (slot) {
SLOT.set(O, slot, void undefined);
});
}
return O; // step 6
};

View File

@@ -0,0 +1,40 @@
'use strict';
var callBound = require('call-bind/callBound');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var FromPropertyDescriptor = require('./FromPropertyDescriptor');
var Get = require('./Get');
var ToObject = require('./ToObject');
var ToPropertyDescriptor = require('./ToPropertyDescriptor');
var forEach = require('../helpers/forEach');
var getOwnPropertyDescriptor = require('gopd');
var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
var $push = callBound('Array.prototype.push');
// https://262.ecma-international.org/6.0/#sec-objectdefineproperties
module.exports = function ObjectDefineProperties(O, Properties) {
var props = ToObject(Properties); // step 1
var keys = OwnPropertyKeys(props); // step 2
var descriptors = []; // step 3
forEach(keys, function (nextKey) { // step 4
var propDesc = ToPropertyDescriptor(getOwnPropertyDescriptor(props, nextKey)); // step 4.a
if (typeof propDesc !== 'undefined' && propDesc['[[Enumerable]]']) { // step 4.b
var descObj = Get(props, nextKey); // step 4.b.i
var desc = ToPropertyDescriptor(descObj); // step 4.b.ii
$push(descriptors, [nextKey, desc]); // step 4.b.iii
}
});
forEach(descriptors, function (pair) { // step 5
var P = pair[0]; // step 5.a
var desc = pair[1]; // step 5.b
desc = FromPropertyDescriptor(desc); // TODO: remove this once DefinePropertyOrThrow is fixed
DefinePropertyOrThrow(O, P, desc); // step 5.c
});
return O; // step 6
};

View File

@@ -2,7 +2,7 @@
var GetIntrinsic = require('get-intrinsic');
var $gOPD = require('../helpers/getOwnPropertyDescriptor');
var $gOPD = require('gopd');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');

View File

@@ -2,7 +2,7 @@
var GetIntrinsic = require('get-intrinsic');
var $gOPD = require('../helpers/getOwnPropertyDescriptor');
var $gOPD = require('gopd');
var $TypeError = GetIntrinsic('%TypeError%');
var callBound = require('call-bind/callBound');

View File

@@ -36,12 +36,12 @@ module.exports = function Set(O, P, V, Throw) {
throw new $TypeError('Attempted to assign to readonly property.');
}
return true;
} else {
}
try {
O[P] = V; // eslint-disable-line no-param-reassign
return noThrowOnStrictViolation ? SameValue(O[P], V) : true;
} catch (e) {
return false;
}
}
};

View File

@@ -6,7 +6,7 @@ var has = require('has');
var $TypeError = GetIntrinsic('%TypeError%');
var getSymbolDescription = require('../helpers/getSymbolDescription');
var getSymbolDescription = require('get-symbol-description');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var IsExtensible = require('./IsExtensible');

View File

@@ -4,9 +4,9 @@ var GetIntrinsic = require('get-intrinsic');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var $preventExtensions = GetIntrinsic('%Object.preventExtensions%');
var $gOPD = require('../helpers/getOwnPropertyDescriptor');
var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%');
var $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true);
var $gOPD = require('gopd');
var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true);
var forEach = require('../helpers/forEach');

View File

@@ -20,7 +20,7 @@ module.exports = function StringCreate(value, prototype) {
}
var S = $Object(value);
if (S !== $StringPrototype) {
if (prototype !== $StringPrototype) {
if (setProto) {
setProto(S, prototype);
} else {

View File

@@ -2,11 +2,11 @@
var GetIntrinsic = require('get-intrinsic');
var $gOPD = require('../helpers/getOwnPropertyDescriptor');
var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%');
var $gOPD = require('gopd');
var $TypeError = GetIntrinsic('%TypeError%');
var every = require('../helpers/every');
var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
var IsDataDescriptor = require('./IsDataDescriptor');
var IsExtensible = require('./IsExtensible');
@@ -26,7 +26,7 @@ module.exports = function TestIntegrityLevel(O, level) {
if (status) {
return false;
}
var theKeys = $gOPN(O);
var theKeys = OwnPropertyKeys(O);
return theKeys.length === 0 || every(theKeys, function (k) {
var currentDesc = $gOPD(O, k);
if (typeof currentDesc !== 'undefined') {

View File

@@ -8,7 +8,7 @@ var $RegExp = GetIntrinsic('%RegExp%');
var $parseInteger = GetIntrinsic('%parseInt%');
var callBound = require('call-bind/callBound');
var regexTester = require('../helpers/regexTester');
var regexTester = require('safe-regex-test');
var isPrimitive = require('../helpers/isPrimitive');
var $strSlice = callBound('String.prototype.slice');
@@ -48,12 +48,12 @@ module.exports = function ToNumber(argument) {
return ToNumber($parseInteger($strSlice(value, 2), 8));
} else if (hasNonWS(value) || isInvalidHexLiteral(value)) {
return NaN;
} else {
}
var trimmed = $trim(value);
if (trimmed !== value) {
return ToNumber(trimmed);
}
}
}
return $Number(value);
};

30
node_modules/es-abstract/2015/ValidateTypedArray.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var callBound = require('call-bind/callBound');
var $taSome = callBound('%TypedArray.prototype.some%', true);
var Type = require('./Type');
var isTypedArray = require('is-typed-array');
// https://262.ecma-international.org/6.0/#sec-validatetypedarray
module.exports = function ValidateTypedArray(O) {
if (Type(O) !== 'Object') {
throw new $TypeError('Assertion failed: O must be an Object');
}
if (!isTypedArray(O)) {
throw new $TypeError('Assertion failed: O must be a TypedArray');
}
// without `.some` (like in node 0.10), there's no way to check buffer detachment, but also no way to be detached
if ($taSome) {
$taSome(O, function () { return true; });
}
return O.buffer;
};

7
node_modules/es-abstract/2015/max.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
// https://262.ecma-international.org/6.0/#sec-algorithm-conventions
module.exports = GetIntrinsic('%Math.max%');

7
node_modules/es-abstract/2015/min.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
// https://262.ecma-international.org/6.0/#sec-algorithm-conventions
module.exports = GetIntrinsic('%Math.min%');

View File

@@ -1,9 +1,9 @@
'use strict';
var $DateValueOf = require('call-bind/callBound')('Date.prototype.valueOf');
var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime');
// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-date-prototype-object
module.exports = function thisTimeValue(value) {
return $DateValueOf(value);
return $DateGetTime(value);
};

View File

@@ -9,16 +9,17 @@ var $TypeError = GetIntrinsic('%TypeError%');
var IsInteger = require('./IsInteger');
var hasProto = require('has-proto')();
var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
// eslint-disable-next-line no-proto, no-negated-condition
[].__proto__ !== $ArrayPrototype
? null
: function (O, proto) {
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate

31
node_modules/es-abstract/2016/CharacterRange.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var callBound = require('call-bind/callBound');
var $fromCharCode = GetIntrinsic('%String.fromCharCode%');
var $TypeError = GetIntrinsic('%TypeError%');
var $charCodeAt = callBound('%String.prototype.charCodeAt%');
var $push = callBound('%Array.prototype.push%');
module.exports = function CharacterRange(A, B) {
if (A.length !== 1 || B.length !== 1) {
throw new $TypeError('Assertion failed: CharSets A and B contain exactly one character');
}
var a = A[0];
var b = B[0];
var i = $charCodeAt(a, 0);
var j = $charCodeAt(b, 0);
if (!(i <= j)) {
throw new $TypeError('Assertion failed: i is not <= j');
}
var arr = [];
for (var k = i; k <= j; k += 1) {
$push(arr, $fromCharCode(k));
}
return arr;
};

53
node_modules/es-abstract/2016/CompletionRecord.js generated vendored Normal file
View File

@@ -0,0 +1,53 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var SLOT = require('internal-slot');
// https://262.ecma-international.org/7.0/#sec-completion-record-specification-type
var CompletionRecord = function CompletionRecord(type, value) {
if (!(this instanceof CompletionRecord)) {
return new CompletionRecord(type, value);
}
if (type !== 'normal' && type !== 'break' && type !== 'continue' && type !== 'return' && type !== 'throw') {
throw new $SyntaxError('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');
}
SLOT.set(this, '[[Type]]', type);
SLOT.set(this, '[[Value]]', value);
// [[Target]] slot?
};
CompletionRecord.prototype.type = function Type() {
return SLOT.get(this, '[[Type]]');
};
CompletionRecord.prototype.value = function Value() {
return SLOT.get(this, '[[Value]]');
};
CompletionRecord.prototype['?'] = function ReturnIfAbrupt() {
var type = SLOT.get(this, '[[Type]]');
var value = SLOT.get(this, '[[Value]]');
if (type === 'normal') {
return value;
}
if (type === 'throw') {
throw value;
}
throw new $SyntaxError('Completion Record is not of type "normal" or "throw": other types not supported');
};
CompletionRecord.prototype['!'] = function assert() {
var type = SLOT.get(this, '[[Type]]');
if (type !== 'normal') {
throw new $SyntaxError('Assertion failed: Completion Record is not of type "normal"');
}
return SLOT.get(this, '[[Value]]');
};
module.exports = CompletionRecord;

Some files were not shown because too many files have changed in this diff Show More