1.0.3 • Published 1 month ago

@razee/request-util v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

request-util

This module is used to make https requests with arguments supported by the request library (or request-promise-native) but without actually using the request library as it is deprecated.

Instead, the expected arguments are converted and used with axios, e.g.:

  • baseUrl --> baseURL
  • uri --> url
  • qs --> params
  • etc (see src/request.js for full details)
  • aws aws.key and aws.secret -> aws4.sign generated headers

Similarly, the response is modified to include attributes expected on a request response, e.g.:

  • data --> body
  • status --> statusCode
  • etc (see src/request.js for full details)

The behavior can be compared directly to request behavior by uncommenting the lines prefixed with //COMPARE and creating a USE_LEGACY_REQUEST_LIBRARY file in the base directory. The fs-extra, request, and request-promise-native libraries will also need to be installed as they are not included in package.json. If this is done, request will be used instead of axios, allowing comparison.

1.0.3

1 month ago

1.0.2

4 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.18

9 months ago

0.0.19

6 months ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

11 months ago

0.0.17

11 months ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.0-dev

1 year ago