mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 05:14:44 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
23
node_modules/p-is-promise/index.d.ts
generated
vendored
23
node_modules/p-is-promise/index.d.ts
generated
vendored
|
@ -1,23 +0,0 @@
|
|||
declare const pIsPromise: {
|
||||
/**
|
||||
Check if `input` is a ES2015 promise.
|
||||
|
||||
@param input - Value to be checked.
|
||||
|
||||
@example
|
||||
```
|
||||
import isPromise = require('p-is-promise');
|
||||
|
||||
isPromise(Promise.resolve('🦄'));
|
||||
//=> true
|
||||
```
|
||||
*/
|
||||
(input: unknown): input is Promise<unknown>;
|
||||
|
||||
// TODO: Remove this for the next major release, refactor the whole definition to:
|
||||
// declare function pIsPromise(input: unknown): input is Promise<unknown>;
|
||||
// export = pIsPromise;
|
||||
default: typeof pIsPromise;
|
||||
};
|
||||
|
||||
export = pIsPromise;
|
15
node_modules/p-is-promise/index.js
generated
vendored
15
node_modules/p-is-promise/index.js
generated
vendored
|
@ -1,15 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
const isPromise = input => (
|
||||
input instanceof Promise ||
|
||||
(
|
||||
input !== null &&
|
||||
typeof input === 'object' &&
|
||||
typeof input.then === 'function' &&
|
||||
typeof input.catch === 'function'
|
||||
)
|
||||
);
|
||||
|
||||
module.exports = isPromise;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = isPromise;
|
9
node_modules/p-is-promise/license
generated
vendored
9
node_modules/p-is-promise/license
generated
vendored
|
@ -1,9 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.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.
|
78
node_modules/p-is-promise/package.json
generated
vendored
78
node_modules/p-is-promise/package.json
generated
vendored
|
@ -1,78 +0,0 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
"p-is-promise@2.1.0",
|
||||
"/Users/eric/repos/actions/setup-node"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "p-is-promise@2.1.0",
|
||||
"_id": "p-is-promise@2.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==",
|
||||
"_location": "/p-is-promise",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "p-is-promise@2.1.0",
|
||||
"name": "p-is-promise",
|
||||
"escapedName": "p-is-promise",
|
||||
"rawSpec": "2.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/mem"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz",
|
||||
"_spec": "2.1.0",
|
||||
"_where": "/Users/eric/repos/actions/setup-node",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/p-is-promise/issues"
|
||||
},
|
||||
"description": "Check if something is a promise",
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"bluebird": "^3.5.4",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/p-is-promise#readme",
|
||||
"keywords": [
|
||||
"promise",
|
||||
"is",
|
||||
"detect",
|
||||
"check",
|
||||
"kind",
|
||||
"type",
|
||||
"thenable",
|
||||
"es2015",
|
||||
"async",
|
||||
"await",
|
||||
"promises",
|
||||
"bluebird"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "p-is-promise",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/p-is-promise.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "2.1.0"
|
||||
}
|
43
node_modules/p-is-promise/readme.md
generated
vendored
43
node_modules/p-is-promise/readme.md
generated
vendored
|
@ -1,43 +0,0 @@
|
|||
# p-is-promise [](https://travis-ci.org/sindresorhus/p-is-promise)
|
||||
|
||||
> Check if something is a promise
|
||||
|
||||
Why not [`is-promise`](https://github.com/then/is-promise)? That module [checks for a thenable](https://github.com/then/is-promise/issues/6), not an ES2015 promise. This one is stricter.
|
||||
|
||||
You most likely don't need this. Just pass your value to `Promise.resolve()` and let it handle it.
|
||||
|
||||
Can be useful if you need to create a fast path for a synchronous operation.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install p-is-promise
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const pIsPromise = require('p-is-promise');
|
||||
const Bluebird = require('bluebird');
|
||||
|
||||
pIsPromise(Promise.resolve('🦄'));
|
||||
//=> true
|
||||
|
||||
pIsPromise(Bluebird.resolve('🦄'));
|
||||
//=> true
|
||||
|
||||
pIsPromise('🦄');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [More…](https://github.com/sindresorhus/promise-fun)
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue