mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 12:54:45 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
13
node_modules/request-promise-native/.npmignore
generated
vendored
13
node_modules/request-promise-native/.npmignore
generated
vendored
|
@ -1,13 +0,0 @@
|
|||
/.idea/
|
||||
/coverage/
|
||||
/test/
|
||||
|
||||
/.editorconfig
|
||||
/.eslintrc.json
|
||||
/.gitignore
|
||||
/.publishrc
|
||||
/.travis.yml
|
||||
/gulpfile.js
|
||||
|
||||
.DS_Store
|
||||
npm-debug.log
|
15
node_modules/request-promise-native/LICENSE
generated
vendored
15
node_modules/request-promise-native/LICENSE
generated
vendored
|
@ -1,15 +0,0 @@
|
|||
ISC License
|
||||
|
||||
Copyright (c) 2017, Nicolai Kamenzky and contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
78
node_modules/request-promise-native/README.md
generated
vendored
78
node_modules/request-promise-native/README.md
generated
vendored
|
@ -1,78 +0,0 @@
|
|||
<a href="http://promisesaplus.com/">
|
||||
<img src="https://promises-aplus.github.io/promises-spec/assets/logo-small.png" align="right" alt="Promises/A+ logo" />
|
||||
</a>
|
||||
|
||||
# Request-Promise-Native
|
||||
|
||||
[](https://gitter.im/request/request-promise?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[](https://travis-ci.org/request/request-promise-native)
|
||||
[](https://coveralls.io/r/request/request-promise-native)
|
||||
[](https://david-dm.org/request/request-promise-native)
|
||||
[](https://snyk.io/test/npm/request-promise-native)
|
||||
|
||||
This package is similar to [`request-promise`](https://www.npmjs.com/package/request-promise) but uses native ES6 promises.
|
||||
|
||||
Please refer to the [`request-promise` documentation](https://www.npmjs.com/package/request-promise). Everything applies to `request-promise-native` except the following:
|
||||
- Instead of using Bluebird promises this library uses native ES6 promises.
|
||||
- Mind that native ES6 promises have fewer features than Bluebird promises do. In particular, the `.finally(...)` method is not available.
|
||||
|
||||
## Installation
|
||||
|
||||
This module is installed via npm:
|
||||
|
||||
```
|
||||
npm install --save request
|
||||
npm install --save request-promise-native
|
||||
```
|
||||
|
||||
`request` is defined as a peer-dependency and thus has to be installed separately.
|
||||
|
||||
## Migration from `request-promise` to `request-promise-native`
|
||||
|
||||
1. Go through the [migration instructions](https://github.com/request/request-promise#migration-from-v3-to-v4) to upgrade to `request-promise` v4.
|
||||
2. Ensure that you don't use Bluebird-specific features on the promise returned by your request calls. In particular, you can't use `.finally(...)` anymore.
|
||||
3. You are done.
|
||||
|
||||
## Contributing
|
||||
|
||||
To set up your development environment:
|
||||
|
||||
1. clone the repo to your desktop,
|
||||
2. in the shell `cd` to the main folder,
|
||||
3. hit `npm install`,
|
||||
4. hit `npm install gulp -g` if you haven't installed gulp globally yet, and
|
||||
5. run `gulp dev`. (Or run `node ./node_modules/.bin/gulp dev` if you don't want to install gulp globally.)
|
||||
|
||||
`gulp dev` watches all source files and if you save some changes it will lint the code and execute all tests. The test coverage report can be viewed from `./coverage/lcov-report/index.html`.
|
||||
|
||||
If you want to debug a test you should use `gulp test-without-coverage` to run all tests without obscuring the code by the test coverage instrumentation.
|
||||
|
||||
## Change History
|
||||
|
||||
- v1.0.7 (2019-02-14)
|
||||
- Corrected mistakenly set `tough-cookie` version, now `^2.3.3`
|
||||
*(Thanks to @evocateur for pointing this out.)*
|
||||
- If you installed `request-promise-native@1.0.6` please make sure after the upgrade that `request` and `request-promise-native` use the same physical copy of `tough-cookie`.
|
||||
- v1.0.6 (2019-02-14)
|
||||
- Using stricter `tough-cookie@~2.3.3` to avoid installing `tough-cookie@3` which introduces breaking changes
|
||||
*(Thanks to @jasonmit for pull request [#33](https://github.com/request/request-promise-native/pull/33/))*
|
||||
- Security fix: bumped `lodash` to `^4.17.11`, see [vulnerabilty reports](https://snyk.io/vuln/search?q=lodash&type=npm)
|
||||
- v1.0.5 (2017-09-22)
|
||||
- Upgraded `tough-cookie` to a version without regex DoS vulnerability
|
||||
*(Thanks to @sophieklm for [pull request #13](https://github.com/request/request-promise-native/pull/13))*
|
||||
- v1.0.4 (2017-05-07)
|
||||
- Fix that allows to use `tough-cookie` for [cookie creation](https://github.com/request/request-promise#include-a-cookie)
|
||||
- v1.0.3 (2016-08-08)
|
||||
- Renamed internally used package `@request/promise-core` to `request-promise-core` because there where [too](https://github.com/request/request-promise/issues/137) [many](https://github.com/request/request-promise/issues/141) issues with the scoped package name
|
||||
- v1.0.2 (2016-07-18)
|
||||
- Fix for using with module bundlers like Webpack and Browserify
|
||||
- v1.0.1 (2016-07-17)
|
||||
- Fixed `@request/promise-core` version for safer versioning
|
||||
- v1.0.0 (2016-07-15)
|
||||
- Initial version similar to [`request-promise`](https://www.npmjs.com/package/request-promise) v4
|
||||
|
||||
## License (ISC)
|
||||
|
||||
In case you never heard about the [ISC license](http://en.wikipedia.org/wiki/ISC_license) it is functionally equivalent to the MIT license.
|
||||
|
||||
See the [LICENSE file](LICENSE) for details.
|
3
node_modules/request-promise-native/errors.js
generated
vendored
3
node_modules/request-promise-native/errors.js
generated
vendored
|
@ -1,3 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = require('request-promise-core/errors');
|
26
node_modules/request-promise-native/lib/rp.js
generated
vendored
26
node_modules/request-promise-native/lib/rp.js
generated
vendored
|
@ -1,26 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var configure = require('request-promise-core/configure/request2'),
|
||||
stealthyRequire = require('stealthy-require');
|
||||
|
||||
// Load Request freshly - so that users can require an unaltered request instance!
|
||||
var request = stealthyRequire(require.cache, function () {
|
||||
return require('request');
|
||||
},
|
||||
function () {
|
||||
require('tough-cookie');
|
||||
}, module);
|
||||
|
||||
|
||||
configure({
|
||||
request: request,
|
||||
PromiseImpl: Promise,
|
||||
expose: [
|
||||
'then',
|
||||
'catch',
|
||||
'promise'
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
module.exports = request;
|
90
node_modules/request-promise-native/package.json
generated
vendored
90
node_modules/request-promise-native/package.json
generated
vendored
|
@ -1,90 +0,0 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
"request-promise-native@1.0.7",
|
||||
"/Users/eric/repos/actions/setup-node"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "request-promise-native@1.0.7",
|
||||
"_id": "request-promise-native@1.0.7",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-rIMnbBdgNViL37nZ1b3L/VfPOpSi0TqVDQPAvO6U14lMzOLrt5nilxCQqtDKhZeDiW0/hkCXGoQjhgJd/tCh6w==",
|
||||
"_location": "/request-promise-native",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "request-promise-native@1.0.7",
|
||||
"name": "request-promise-native",
|
||||
"escapedName": "request-promise-native",
|
||||
"rawSpec": "1.0.7",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.7"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jsdom"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.7.tgz",
|
||||
"_spec": "1.0.7",
|
||||
"_where": "/Users/eric/repos/actions/setup-node",
|
||||
"author": {
|
||||
"name": "Nicolai Kamenzky",
|
||||
"url": "https://github.com/analog-nico"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/request/request-promise-native/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"request-promise-core": "1.1.2",
|
||||
"stealthy-require": "^1.1.1",
|
||||
"tough-cookie": "^2.3.3"
|
||||
},
|
||||
"description": "The simplified HTTP request client 'request' with Promise support. Powered by native ES6 promises.",
|
||||
"devDependencies": {
|
||||
"body-parser": "~1.15.2",
|
||||
"chai": "~3.5.0",
|
||||
"chalk": "~1.1.3",
|
||||
"gulp": "~3.9.1",
|
||||
"gulp-coveralls": "~0.1.4",
|
||||
"gulp-eslint": "~2.1.0",
|
||||
"gulp-istanbul": "~1.0.0",
|
||||
"gulp-mocha": "~2.2.0",
|
||||
"lodash": "~4.13.1",
|
||||
"publish-please": "~2.1.4",
|
||||
"request": "^2.34.0",
|
||||
"rimraf": "~2.5.3",
|
||||
"run-sequence": "~1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.12.0"
|
||||
},
|
||||
"homepage": "https://github.com/request/request-promise-native#readme",
|
||||
"keywords": [
|
||||
"xhr",
|
||||
"http",
|
||||
"https",
|
||||
"promise",
|
||||
"request",
|
||||
"then",
|
||||
"thenable",
|
||||
"native"
|
||||
],
|
||||
"license": "ISC",
|
||||
"main": "./lib/rp.js",
|
||||
"name": "request-promise-native",
|
||||
"peerDependencies": {
|
||||
"request": "^2.34"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/request/request-promise-native.git"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "publish-please guard",
|
||||
"publish-please": "publish-please",
|
||||
"test": "gulp ci",
|
||||
"test-publish": "gulp ci-no-cov"
|
||||
},
|
||||
"version": "1.0.7"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue