Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
1
node_modules/is-callable/.eslintignore
generated
vendored
Normal file
1
node_modules/is-callable/.eslintignore
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
coverage/
|
||||
2
node_modules/is-callable/.eslintrc
generated
vendored
2
node_modules/is-callable/.eslintrc
generated
vendored
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
"rules": {
|
||||
"id-length": 0,
|
||||
"max-statements": [2, 12],
|
||||
"max-statements": [2, 14],
|
||||
"max-statements-per-line": [2, { "max": 2 }],
|
||||
"operator-linebreak": [2, "before"],
|
||||
},
|
||||
|
|
|
|||
15
node_modules/is-callable/.github/workflows/rebase.yml
generated
vendored
15
node_modules/is-callable/.github/workflows/rebase.yml
generated
vendored
|
|
@ -1,15 +0,0 @@
|
|||
name: Automatic Rebase
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
_:
|
||||
name: "Automatic Rebase"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ljharb/rebase@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
13
node_modules/is-callable/.nycrc
generated
vendored
Normal file
13
node_modules/is-callable/.nycrc
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
12
node_modules/is-callable/.travis.yml
generated
vendored
12
node_modules/is-callable/.travis.yml
generated
vendored
|
|
@ -1,12 +0,0 @@
|
|||
version: ~> 1.0
|
||||
language: node_js
|
||||
os:
|
||||
- linux
|
||||
import:
|
||||
- ljharb/travis-ci:node/all.yml
|
||||
- ljharb/travis-ci:node/pretest.yml
|
||||
- ljharb/travis-ci:node/posttest.yml
|
||||
- ljharb/travis-ci:node/coverage.yml
|
||||
matrix:
|
||||
allow_failures:
|
||||
- env: COVERAGE=true
|
||||
13
node_modules/is-callable/CHANGELOG.md
generated
vendored
13
node_modules/is-callable/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,16 @@
|
|||
1.2.3 / 2021-01-31
|
||||
=================
|
||||
* [Fix] `document.all` is callable (do not use `document.all`!)
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape`
|
||||
* [Tests] migrate tests to Github Actions
|
||||
* [actions] add "Allow Edits" workflow
|
||||
* [actions] switch Automatic Rebase workflow to `pull_request_target` event
|
||||
|
||||
1.2.2 / 2020-09-21
|
||||
=================
|
||||
* [Fix] include actual fix from 579179e
|
||||
* [Dev Deps] update `eslint`
|
||||
|
||||
1.2.1 / 2020-09-09
|
||||
=================
|
||||
* [Fix] phantomjs‘ Reflect.apply does not throw properly on a bad array-like
|
||||
|
|
|
|||
10
node_modules/is-callable/index.js
generated
vendored
10
node_modules/is-callable/index.js
generated
vendored
|
|
@ -12,8 +12,12 @@ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'func
|
|||
}
|
||||
});
|
||||
isCallableMarker = {};
|
||||
// eslint-disable-next-line no-throw-literal
|
||||
reflectApply(function () { throw 42; }, null, badArrayLike);
|
||||
} catch (_) {
|
||||
reflectApply = null;
|
||||
if (_ !== isCallableMarker) {
|
||||
reflectApply = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
reflectApply = null;
|
||||
|
|
@ -42,9 +46,12 @@ var toStr = Object.prototype.toString;
|
|||
var fnClass = '[object Function]';
|
||||
var genClass = '[object GeneratorFunction]';
|
||||
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
||||
/* globals document: false */
|
||||
var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
|
||||
|
||||
module.exports = reflectApply
|
||||
? function isCallable(value) {
|
||||
if (value === documentDotAll) { return true; }
|
||||
if (!value) { return false; }
|
||||
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
||||
if (typeof value === 'function' && !value.prototype) { return true; }
|
||||
|
|
@ -56,6 +63,7 @@ module.exports = reflectApply
|
|||
return !isES6ClassFn(value);
|
||||
}
|
||||
: function isCallable(value) {
|
||||
if (value === documentDotAll) { return true; }
|
||||
if (!value) { return false; }
|
||||
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
||||
if (typeof value === 'function' && !value.prototype) { return true; }
|
||||
|
|
|
|||
10
node_modules/is-callable/package.json
generated
vendored
10
node_modules/is-callable/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "is-callable",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.3",
|
||||
"author": {
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com",
|
||||
|
|
@ -56,11 +56,11 @@
|
|||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^17.2.0",
|
||||
"aud": "^1.1.2",
|
||||
"@ljharb/eslint-config": "^17.5.0",
|
||||
"aud": "^1.1.3",
|
||||
"covert": "^1.1.1",
|
||||
"eclint": "^2.8.1",
|
||||
"eslint": "^7.8.1",
|
||||
"eslint": "^7.19.0",
|
||||
"foreach": "^2.0.5",
|
||||
"istanbul": "1.1.0-alpha.1",
|
||||
"istanbul-merge": "^1.1.1",
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
"make-generator-function": "^2.0.0",
|
||||
"rimraf": "^2.7.1",
|
||||
"safe-publish-latest": "^1.1.4",
|
||||
"tape": "^5.0.1"
|
||||
"tape": "^5.1.1"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
|
|
|
|||
8
node_modules/is-callable/test/index.js
generated
vendored
8
node_modules/is-callable/test/index.js
generated
vendored
|
|
@ -188,3 +188,11 @@ test('throwing functions', function (t) {
|
|||
var thrower = function (a) { return a.b; };
|
||||
t.ok(isCallable(thrower), 'a function that throws is callable');
|
||||
});
|
||||
|
||||
/* globals document: false */
|
||||
test('document.all', { skip: typeof document !== 'object' }, function (t) {
|
||||
t.notOk(isCallable(document), 'document is not callable');
|
||||
t.ok(isCallable(document.all), 'document.all is callable');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue