Socket
Socket
Sign inDemoInstall

notifications-node-client

Package Overview
Dependencies
19
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    notifications-node-client

GOV.UK Notify Node.js client


Version published
Weekly downloads
5.5M
increased by1.31%
Maintainers
4
Install size
1.70 MB
Created
Weekly downloads
 

Changelog

Source

5.0.0 - 2020-09-02

Changed

We have replaced the use of the npm request-promise package with axios as the npm request package has been deprecated. This makes the following breaking changes:

  1. The response object returned by a successful API call is now in the form of an axios response. This has a different interface to a request response. For example:

    • response.body becomes response.data
    • response.statusCode becomes response.status
  2. The err object returned by an unsuccessful API call has a different interface. For example, err.error becomes err.response.data. See the axios documentation for further details on error handling.

  3. To configure the use of a proxy you should pass the proxy configuration as an object rather than a URL. For details, see the axios client.

  4. We now return native promises rather than bluebird promises. You will not need to make any changes unless you are using some of the additional methods found on bluebird promises that do not exist on native promises.

Readme

Source

GOV.UK Notify Node.js client

Use this client to send emails, text messages and letters using the GOV.UK Notify API.

Useful links:

FAQs

Last updated on 07 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc