Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

request-promise-native

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-promise-native - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

errors.js

31

package.json
{
"name": "request-promise-native",
"version": "0.0.0",
"version": "1.0.0",
"description": "The simplified HTTP request client 'request' with Promise support. Powered by native ES6 promises.",

@@ -17,3 +17,6 @@ "keywords": [

"scripts": {
"test": "./node_modules/.bin/gulp ci"
"test": "./node_modules/.bin/gulp ci",
"test-publish": "./node_modules/.bin/gulp ci-no-cov",
"publish-please": "publish-please",
"prepublish": "publish-please guard"
},

@@ -31,4 +34,26 @@ "repository": {

"engines": {
"node": ">=0.10.0"
"node": ">=0.12.0"
},
"dependencies": {
"@request/promise-core": "^1.0.0",
"stealthy-require": "^0.1.0"
},
"peerDependencies": {
"request": "^2.34"
},
"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"
}
}
<a href="http://promisesaplus.com/">
<img src="https://promises-aplus.github.io/promises-spec/assets/logo-small.png"
align="right" valign="top" alt="Promises/A+ logo" />
<img src="https://promises-aplus.github.io/promises-spec/assets/logo-small.png" align="right" alt="Promises/A+ logo" />
</a>

@@ -9,3 +8,53 @@

[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/request/request-promise?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://img.shields.io/travis/request/request-promise-native/master.svg?style=flat-square)](https://travis-ci.org/request/request-promise-native)
[![Coverage Status](https://img.shields.io/coveralls/request/request-promise-native.svg?style=flat-square)](https://coveralls.io/r/request/request-promise-native)
[![Dependency Status](https://img.shields.io/gemnasium/request/request-promise-native.svg?style=flat-square)](https://gemnasium.com/github.com/request/request-promise-native)
[![Known Vulnerabilities](https://snyk.io/test/npm/request-promise-native/badge.svg?style=flat-square)](https://snyk.io/test/npm/request-promise-native)
This package will shortly become a package similar to [`request-promise`](https://www.npmjs.com/package/request-promise) but will use native ES6 promises.
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 less features than Bluebird promises. 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.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.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc