Gathering detailed insights and metrics for @automattic/request-promise-native
Gathering detailed insights and metrics for @automattic/request-promise-native
Gathering detailed insights and metrics for @automattic/request-promise-native
Gathering detailed insights and metrics for @automattic/request-promise-native
The simplified HTTP request client 'request' with Promise support. Powered by native ES6 promises.
npm install @automattic/request-promise-native
Typescript
Module System
Min. Node Version
Node Version
NPM Version
68.5
Supply Chain
88
Quality
85
Maintenance
100
Vulnerability
97.9
License
Fix the missing lodash dependency - simplify the package structure
Updated on Feb 13, 2025
Add typing for the `request` package
Updated on Feb 12, 2025
Make the npm package way smaller
Updated on Feb 12, 2025
Update "promise-core" dependencies
Updated on Feb 11, 2025
Use the @cypress/request fork
Updated on Feb 11, 2025
Use the latest eslint and remove unused dependencies
Updated on Feb 06, 2025
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
2 Stars
113 Commits
1 Watchers
3 Branches
138 Contributors
Updated on May 05, 2025
Minified
Minified + Gzipped
Latest Version
2.3.0
Package Id
@automattic/request-promise-native@2.3.0
Unpacked Size
39.88 kB
Size
9.36 kB
File Count
13
NPM Version
10.9.2
Node Version
23.7.0
Published on
Feb 13, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
As of Feb 11th 2020, request
is fully deprecated. Hence, we're using the forked version of it - @cypress/request
.
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 was not included until Node v10.This module is installed via npm:
npm i --save "request-promise-native@npm:@automattic/request-promise-native@latest"
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.
request-promise-core
which bumps lodash
to ^4.17.19
following this advisory.request-promise-core
which bumps lodash
to ^4.17.15
. See vulnerabilty reports.
(Thanks to @aw-davidson for reporting this in issue #49.)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.
No vulnerabilities found.
No security vulnerabilities found.