mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Update checked-in dependencies
This commit is contained in:
43
node_modules/safe-array-concat/CHANGELOG.md
generated
vendored
43
node_modules/safe-array-concat/CHANGELOG.md
generated
vendored
@@ -5,6 +5,49 @@ 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.1.2](https://github.com/ljharb/safe-array-concat/compare/v1.1.1...v1.1.2) - 2024-03-09
|
||||
|
||||
### Commits
|
||||
|
||||
- [types] use a generic [`a1d744d`](https://github.com/ljharb/safe-array-concat/commit/a1d744d749033c91f0c108b28ac6dbc6016ecce4)
|
||||
- [Dev Deps] update `@ljharb/tsconfig`, `set-function-length` [`3d3da0a`](https://github.com/ljharb/safe-array-concat/commit/3d3da0ab110bce21f466381c5d09f93200a20f85)
|
||||
|
||||
## [v1.1.1](https://github.com/ljharb/safe-array-concat/compare/v1.1.0...v1.1.1) - 2024-03-09
|
||||
|
||||
### Commits
|
||||
|
||||
- [types] use shared config [`f509f80`](https://github.com/ljharb/safe-array-concat/commit/f509f80fb2dd9734c309ccb59ca9451c5a5de885)
|
||||
- [actions] remove redundant finisher; use reusable workflows [`b5f5ff4`](https://github.com/ljharb/safe-array-concat/commit/b5f5ff497976a48e291788b26b741cd4f3d388eb)
|
||||
- [types] use handwritten d.ts instead of emit [`e717048`](https://github.com/ljharb/safe-array-concat/commit/e717048433b52d3a3240b7c697b5736756ed296e)
|
||||
- [Dev Deps] update `set-function-length`, `tape` [`dde26a7`](https://github.com/ljharb/safe-array-concat/commit/dde26a7600ebe8ebc8f45d1bf8f1a970175604d8)
|
||||
- [Deps] update `call-bind`, `get-intrinsic` [`d5d2cde`](https://github.com/ljharb/safe-array-concat/commit/d5d2cde9e5b7179d00d85e007b80b138969c5968)
|
||||
- [Dev Deps] update `tape` [`9454c5a`](https://github.com/ljharb/safe-array-concat/commit/9454c5a3beacb08200b4b00b7ffa54a572cb76ab)
|
||||
- [Tests] add `@arethetypeswrong/cli [`00a5243`](https://github.com/ljharb/safe-array-concat/commit/00a5243a5b923ff2b694b3b5ef4ce39027e30f6e)
|
||||
- [Deps] update `get-intrinsic` [`c935764`](https://github.com/ljharb/safe-array-concat/commit/c9357646c3923a1351dca21f175b2b421dd15da5)
|
||||
|
||||
## [v1.1.0](https://github.com/ljharb/safe-array-concat/compare/v1.0.1...v1.1.0) - 2024-01-15
|
||||
|
||||
### Commits
|
||||
|
||||
- [New] add types [`bd92413`](https://github.com/ljharb/safe-array-concat/commit/bd92413643b2bd0ad62e854172fad129d3899dc1)
|
||||
- [Dev Deps] update `aud`, `mock-property`, `npmignore`, `set-function-length`, `tape` [`497ffcb`](https://github.com/ljharb/safe-array-concat/commit/497ffcbb271ad61752756ec363ad5b9400e4d367)
|
||||
- [Deps] update `call-bind`, `get-intrinsic` [`770f870`](https://github.com/ljharb/safe-array-concat/commit/770f8704d3751b947c7f4772d9ee38d8bcdecf44)
|
||||
- [Dev Deps] update `mock-property`, `tape` [`be76bd9`](https://github.com/ljharb/safe-array-concat/commit/be76bd958fa73607a105122a8770677ecbdf78f0)
|
||||
- [Tests] use `set-function-length/env` [`89b1167`](https://github.com/ljharb/safe-array-concat/commit/89b116758d91ad521f963cccf056f9a3f0b18c20)
|
||||
- [meta] add missing npmrc values [`3185cc7`](https://github.com/ljharb/safe-array-concat/commit/3185cc7a6773baf625c65bb58ffb9b7ee5f3306e)
|
||||
- [meta] add `sideEffects` flag [`df6c7eb`](https://github.com/ljharb/safe-array-concat/commit/df6c7ebca7f2fd2f152fe2c2a2260d21728e70a3)
|
||||
|
||||
## [v1.0.1](https://github.com/ljharb/safe-array-concat/compare/v1.0.0...v1.0.1) - 2023-09-05
|
||||
|
||||
### Fixed
|
||||
|
||||
- [Perf] set `Symbol.isConcatSpreadable` only when required [`#2`](https://github.com/ljharb/safe-array-concat/issues/2)
|
||||
|
||||
### Commits
|
||||
|
||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`c0791b0`](https://github.com/ljharb/safe-array-concat/commit/c0791b00b74e70113921c32d4d1fd494b7e8f555)
|
||||
- [Deps] update `get-intrinsic` [`7d07ae6`](https://github.com/ljharb/safe-array-concat/commit/7d07ae69d512bb3b6fb2131f1c824b5ffd85af9f)
|
||||
|
||||
## v1.0.0 - 2023-04-20
|
||||
|
||||
### Commits
|
||||
|
||||
3
node_modules/safe-array-concat/index.d.ts
generated
vendored
Normal file
3
node_modules/safe-array-concat/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function safeArrayConcat<T = unknown>(item: T | T[], ...items: (T | T[])[]): T[];
|
||||
|
||||
export = safeArrayConcat;
|
||||
23
node_modules/safe-array-concat/index.js
generated
vendored
23
node_modules/safe-array-concat/index.js
generated
vendored
@@ -11,26 +11,33 @@ var $slice = callBound('Array.prototype.slice');
|
||||
var hasSymbols = require('has-symbols/shams')();
|
||||
var isConcatSpreadable = hasSymbols && Symbol.isConcatSpreadable;
|
||||
|
||||
var empty = [];
|
||||
if (isConcatSpreadable) {
|
||||
empty[isConcatSpreadable] = true;
|
||||
}
|
||||
/** @type {never[]} */ var empty = [];
|
||||
var $concatApply = isConcatSpreadable ? callBind.apply($concat, empty) : null;
|
||||
var $concatCall = isConcatSpreadable ? null : callBind($concat, empty);
|
||||
|
||||
var isArray = isConcatSpreadable ? require('isarray') : null;
|
||||
// eslint-disable-next-line no-extra-parens
|
||||
var isArray = isConcatSpreadable ? /** @type {(value: unknown) => value is unknown[]} */ (require('isarray')) : null;
|
||||
|
||||
/** @type {import('.')} */
|
||||
module.exports = isConcatSpreadable
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
? function safeArrayConcat(item) {
|
||||
for (var i = 0; i < arguments.length; i += 1) {
|
||||
var arg = arguments[i];
|
||||
/** @type {typeof item} */ var arg = arguments[i];
|
||||
// @ts-expect-error ts(2538) see https://github.com/microsoft/TypeScript/issues/9998#issuecomment-1890787975; works if `const`
|
||||
if (arg && typeof arg === 'object' && typeof arg[isConcatSpreadable] === 'boolean') {
|
||||
// @ts-expect-error ts(7015) TS doesn't yet support Symbol indexing
|
||||
if (!empty[isConcatSpreadable]) {
|
||||
// @ts-expect-error ts(7015) TS doesn't yet support Symbol indexing
|
||||
empty[isConcatSpreadable] = true;
|
||||
}
|
||||
// @ts-expect-error ts(2721) ts(18047) not sure why TS can't figure out this can't be null
|
||||
var arr = isArray(arg) ? $slice(arg) : [arg];
|
||||
// @ts-expect-error ts(7015) TS can't handle expandos on an array
|
||||
arr[isConcatSpreadable] = true; // shadow the property. TODO: use [[Define]]
|
||||
arguments[i] = arr;
|
||||
}
|
||||
}
|
||||
// @ts-expect-error ts(2345) https://github.com/microsoft/TypeScript/issues/57164 TS doesn't understand that apply can take an arguments object
|
||||
return $concatApply(arguments);
|
||||
}
|
||||
: $concatCall;
|
||||
: callBind($concat, empty);
|
||||
|
||||
21
node_modules/safe-array-concat/node_modules/isarray/LICENSE
generated
vendored
21
node_modules/safe-array-concat/node_modules/isarray/LICENSE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
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.
|
||||
38
node_modules/safe-array-concat/node_modules/isarray/README.md
generated
vendored
38
node_modules/safe-array-concat/node_modules/isarray/README.md
generated
vendored
@@ -1,38 +0,0 @@
|
||||
|
||||
# isarray
|
||||
|
||||
`Array#isArray` for older browsers and deprecated Node.js versions.
|
||||
|
||||
[](http://travis-ci.org/juliangruber/isarray)
|
||||
[](https://www.npmjs.org/package/isarray)
|
||||
|
||||
[
|
||||
](https://ci.testling.com/juliangruber/isarray)
|
||||
|
||||
__Just use Array.isArray directly__, unless you need to support those older versions.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isArray = require('isarray');
|
||||
|
||||
console.log(isArray([])); // => true
|
||||
console.log(isArray({})); // => false
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
With [npm](https://npmjs.org) do
|
||||
|
||||
```bash
|
||||
$ npm install isarray
|
||||
```
|
||||
|
||||
Then bundle for the browser with
|
||||
[browserify](https://github.com/substack/node-browserify).
|
||||
|
||||
## Sponsors
|
||||
|
||||
This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)!
|
||||
|
||||
Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)!
|
||||
5
node_modules/safe-array-concat/node_modules/isarray/index.js
generated
vendored
5
node_modules/safe-array-concat/node_modules/isarray/index.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
var toString = {}.toString;
|
||||
|
||||
module.exports = Array.isArray || function (arr) {
|
||||
return toString.call(arr) == '[object Array]';
|
||||
};
|
||||
48
node_modules/safe-array-concat/node_modules/isarray/package.json
generated
vendored
48
node_modules/safe-array-concat/node_modules/isarray/package.json
generated
vendored
@@ -1,48 +0,0 @@
|
||||
{
|
||||
"name": "isarray",
|
||||
"description": "Array#isArray for older browsers",
|
||||
"version": "2.0.5",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/juliangruber/isarray.git"
|
||||
},
|
||||
"homepage": "https://github.com/juliangruber/isarray",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"tape": "~2.13.4"
|
||||
},
|
||||
"keywords": [
|
||||
"browser",
|
||||
"isarray",
|
||||
"array"
|
||||
],
|
||||
"author": {
|
||||
"name": "Julian Gruber",
|
||||
"email": "mail@juliangruber.com",
|
||||
"url": "http://juliangruber.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"testling": {
|
||||
"files": "test.js",
|
||||
"browsers": [
|
||||
"ie/8..latest",
|
||||
"firefox/17..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/22..latest",
|
||||
"chrome/canary",
|
||||
"opera/12..latest",
|
||||
"opera/next",
|
||||
"safari/5.1..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2..latest"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tape test.js"
|
||||
}
|
||||
}
|
||||
30
node_modules/safe-array-concat/package.json
generated
vendored
30
node_modules/safe-array-concat/package.json
generated
vendored
@@ -1,17 +1,21 @@
|
||||
{
|
||||
"name": "safe-array-concat",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.2",
|
||||
"description": "`Array.prototype.concat`, but made safe by ignoring Symbol.isConcatSpreadable",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated",
|
||||
"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)\")\"",
|
||||
"prelint": "npm run tsc",
|
||||
"lint": "eslint --ext=js,mjs .",
|
||||
"tsc": "tsc -p .",
|
||||
"posttsc": "attw -P",
|
||||
"postlint": "evalmd README.md",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
@@ -41,21 +45,31 @@
|
||||
},
|
||||
"homepage": "https://github.com/ljharb/safe-array-concat#readme",
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^21.0.1",
|
||||
"aud": "^2.0.2",
|
||||
"@arethetypeswrong/cli": "^0.15.1",
|
||||
"@ljharb/eslint-config": "^21.1.0",
|
||||
"@ljharb/tsconfig": "^0.2.0",
|
||||
"@types/call-bind": "^1.0.5",
|
||||
"@types/get-intrinsic": "^1.2.2",
|
||||
"@types/has-symbols": "^1.0.2",
|
||||
"@types/isarray": "^2.0.2",
|
||||
"@types/mock-property": "^1.0.2",
|
||||
"@types/tape": "^5.6.4",
|
||||
"aud": "^2.0.4",
|
||||
"auto-changelog": "^2.4.0",
|
||||
"eslint": "=8.8.0",
|
||||
"evalmd": "^0.0.19",
|
||||
"in-publish": "^2.0.1",
|
||||
"mock-property": "^1.0.0",
|
||||
"npmignore": "^0.3.0",
|
||||
"mock-property": "^1.0.3",
|
||||
"npmignore": "^0.3.1",
|
||||
"nyc": "^10.3.2",
|
||||
"safe-publish-latest": "^2.0.0",
|
||||
"tape": "^5.6.3"
|
||||
"set-function-length": "^1.2.2",
|
||||
"tape": "^5.7.5",
|
||||
"typescript": "next"
|
||||
},
|
||||
"dependencies": {
|
||||
"call-bind": "^1.0.2",
|
||||
"get-intrinsic": "^1.2.0",
|
||||
"call-bind": "^1.0.7",
|
||||
"get-intrinsic": "^1.2.4",
|
||||
"has-symbols": "^1.0.3",
|
||||
"isarray": "^2.0.5"
|
||||
},
|
||||
|
||||
42
node_modules/safe-array-concat/test/index.js
generated
vendored
42
node_modules/safe-array-concat/test/index.js
generated
vendored
@@ -6,7 +6,7 @@ var hasSymbols = require('has-symbols/shams')();
|
||||
var isConcatSpreadable = hasSymbols && Symbol.isConcatSpreadable;
|
||||
var species = hasSymbols && Symbol.species;
|
||||
|
||||
var boundFnsHaveConfigurableLengths = Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(function () {}.bind(), 'length').configurable;
|
||||
var boundFnsHaveConfigurableLengths = require('set-function-length/env').boundFnsHaveConfigurableLengths;
|
||||
|
||||
var safeConcat = require('../');
|
||||
|
||||
@@ -15,12 +15,12 @@ test('safe-array-concat', function (t) {
|
||||
t.equal(
|
||||
safeConcat.length,
|
||||
boundFnsHaveConfigurableLengths ? 1 : 0,
|
||||
'has a length of ' + (boundFnsHaveConfigurableLengths ? 1 : '0 (function lengths are not configurable)'),
|
||||
'length is as expected'
|
||||
'has a length of ' + (boundFnsHaveConfigurableLengths ? 1 : '0 (function lengths are not configurable)')
|
||||
);
|
||||
|
||||
t.deepEqual(
|
||||
safeConcat([1, 2], [3, 4], 'foo', 5, 6, [[7]]),
|
||||
// eslint-disable-next-line no-extra-parens
|
||||
safeConcat(/** @type {(string | number | number[])[]} */ ([1, 2]), [3, 4], 'foo', 5, 6, [[7]]),
|
||||
[1, 2, 3, 4, 'foo', 5, 6, [7]],
|
||||
'works with flat and nested arrays'
|
||||
);
|
||||
@@ -48,7 +48,9 @@ test('safe-array-concat', function (t) {
|
||||
|
||||
t.test('has Symbol.species', { skip: !species }, function (st) {
|
||||
var speciesArr = [1, 2];
|
||||
// @ts-expect-error ts(2740) TS's `constructor` type requires a function
|
||||
speciesArr.constructor = {};
|
||||
// @ts-expect-error ts(2538) TS can't type narrow from tape's `skip`
|
||||
speciesArr.constructor[species] = function Species() {
|
||||
return { args: arguments };
|
||||
};
|
||||
@@ -63,24 +65,28 @@ test('safe-array-concat', function (t) {
|
||||
});
|
||||
|
||||
t.test('has isConcatSpreadable', { skip: !isConcatSpreadable }, function (st) {
|
||||
st.teardown(mockProperty(String.prototype, isConcatSpreadable, { value: true }));
|
||||
// TS can't type narrow from tape's `skip`
|
||||
if (isConcatSpreadable) {
|
||||
st.teardown(mockProperty(String.prototype, isConcatSpreadable, { value: true }));
|
||||
|
||||
var nonSpreadable = [1, 2];
|
||||
nonSpreadable[isConcatSpreadable] = false;
|
||||
var nonSpreadable = [1, 2];
|
||||
// @ts-expect-error ts(7015) TS can't handle expandos on an array
|
||||
nonSpreadable[isConcatSpreadable] = false;
|
||||
|
||||
st.deepEqual(
|
||||
safeConcat(nonSpreadable, 3, 4, 'foo', Object('bar')),
|
||||
[1, 2, 3, 4, 'foo', Object('bar')],
|
||||
'a non-concat-spreadable array is spreaded, and a concat-spreadable String is not spreaded'
|
||||
);
|
||||
st.deepEqual(
|
||||
safeConcat(nonSpreadable, 3, 4, 'foo', Object('bar')),
|
||||
[1, 2, 3, 4, 'foo', Object('bar')],
|
||||
'a non-concat-spreadable array is spreaded, and a concat-spreadable String is not spreaded'
|
||||
);
|
||||
|
||||
st.teardown(mockProperty(Array.prototype, isConcatSpreadable, { value: false }));
|
||||
st.teardown(mockProperty(Array.prototype, isConcatSpreadable, { value: false }));
|
||||
|
||||
st.deepEqual(
|
||||
safeConcat([1, 2], 3, 4, 'foo', Object('bar')),
|
||||
[1, 2, 3, 4, 'foo', Object('bar')],
|
||||
'all arrays marked non-concat-spreadable are still spreaded, and a concat-spreadable String is not spreaded'
|
||||
);
|
||||
st.deepEqual(
|
||||
safeConcat([1, 2], 3, 4, 'foo', Object('bar')),
|
||||
[1, 2, 3, 4, 'foo', Object('bar')],
|
||||
'all arrays marked non-concat-spreadable are still spreaded, and a concat-spreadable String is not spreaded'
|
||||
);
|
||||
}
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
9
node_modules/safe-array-concat/tsconfig.json
generated
vendored
Normal file
9
node_modules/safe-array-concat/tsconfig.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "@ljharb/tsconfig",
|
||||
"compilerOptions": {
|
||||
"target": "es2021",
|
||||
},
|
||||
"exclude": [
|
||||
"coverage",
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user