lihai 8d6c751f49 feat: push | 2 yıl önce | |
---|---|---|
.. | ||
lib | 2 yıl önce | |
.npmignore | 2 yıl önce | |
LICENSE | 2 yıl önce | |
README.md | 2 yıl önce | |
errors.js | 2 yıl önce | |
package.json | 2 yıl önce |
<img src="https://promises-aplus.github.io/promises-spec/assets/logo-small.png" align="right" alt="Promises/A+ logo" />
This package is similar to request-promise
but uses native ES6 promises.
Please refer to the request-promise
documentation. Everything applies to request-promise-native
except the following:
.finally(...)
method is not available.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.
request-promise
to request-promise-native
request-promise
v4..finally(...)
anymore.To set up your development environment:
cd
to the main folder,npm install
,npm install gulp -g
if you haven't installed gulp globally yet, andgulp 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.
tough-cookie
version, now ^2.3.3
(Thanks to @evocateur for pointing this out.)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
.tough-cookie@~2.3.3
to avoid installing tough-cookie@3
which introduces breaking changes
(Thanks to @jasonmit for pull request #33)lodash
to ^4.17.11
, see vulnerabilty reportstough-cookie
to a version without regex DoS vulnerability
(Thanks to @sophieklm for pull request #13)tough-cookie
for cookie creation@request/promise-core
version for safer versioningrequest-promise
v4In case you never heard about the ISC license it is functionally equivalent to the MIT license.
See the LICENSE file for details.