Socket
Socket
Sign inDemoInstall

notifications-node-client

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notifications-node-client - npm Package Compare versions

Comparing version 7.0.3 to 7.0.4

4

CHANGELOG.md
## 7.0.3 - 2023-07-21
* Bump axios to the 1.x branch to address CVE-2023-45857. Due to underlying changes in Axios you may have to explicitly set the `protocol` property when constructing your `proxyConfig` object, if using a proxy.
## 7.0.3 - 2023-07-21
* Bump word-wrap from 1.2.3 to 1.2.4 to address CVE-2023-26115.

@@ -4,0 +8,0 @@

16

DOCUMENTATION.md

@@ -319,3 +319,3 @@ # Node.js client documentation

You can upload PDF, CSV, .odt, .txt, .rtf, .xlsx and MS Word Document files. Your file must be smaller than 2MB. [Contact the GOV.UK Notify team](https://www.notifications.service.gov.uk/support/ask-question-give-feedback) if you need to send other file types.
You can upload PDF, CSV, JSON, .odt, .txt, .rtf, .xlsx and MS Word Document files. Your file must be smaller than 2MB. [Contact the GOV.UK Notify team](https://www.notifications.service.gov.uk/support/ask-question-give-feedback) if you need to send other file types.

@@ -402,6 +402,9 @@ Pass the file object as a value into the `personalisation` argument. For example:

You can choose any value between 1 week and 78 weeks.
To use this feature will need version 5.2.0 of the Node.js client library, or a more recent version.
You can choose any value between 1 week and 78 weeks. When deciding this, you should consider:
* the need to protect the recipient’s personal information
* whether the recipient will need to download the file again later
If you do not choose a value, the file will be available for the default period of 26 weeks (6 months).

@@ -877,3 +880,3 @@

|#`sent`|The message was sent to an international number. The mobile networks in some countries do not provide any more delivery information. The GOV.UK Notify website displays this status as 'Sent to an international number'.|
|#`delivered`|The message was successfully delivered.|
|#`delivered`|The message was successfully delivered. If a recipient blocks your sender name or mobile number, your message will still show as delivered.|
|#`permanent-failure`|The provider could not deliver the message. This can happen if the phone number was wrong or if the network operator rejects the message. If you’re sure that these phone numbers are correct, you should [contact GOV.UK Notify support](https://www.notifications.service.gov.uk/support). If not, you should remove them from your database. You’ll still be charged for text messages that cannot be delivered.

@@ -1213,4 +1216,7 @@ |#`temporary-failure`|The provider could not deliver the message. This can happen when the recipient’s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You’ll still be charged for text messages to phones that are not accepting messages.|

Contact the GOV.UK Notify team using the [support page](https://www.notifications.service.gov.uk/support) or [chat to us on Slack](https://ukgovernmentdigital.slack.com/messages/C0E1ADVPC) to request a unique number for text message replies.
To receive text messages:
1. Go to the **Text message settings** section of the **Settings** page.
1. Select **Change** on the **Receive text messages** row.
### Get a page of received text messages

@@ -1217,0 +1223,0 @@

{
"name": "notifications-node-client",
"version": "7.0.3",
"version": "7.0.4",
"homepage": "https://docs.notifications.service.gov.uk/node.html",

@@ -24,3 +24,3 @@ "repository": {

"jsonwebtoken": "^9.0.0",
"axios": "^0.25.0"
"axios": "^1.2.0"
},

@@ -40,1 +40,2 @@ "devDependencies": {

}

@@ -85,3 +85,3 @@ var expect = require('chai').expect,

var urlBase = 'https://api.notifications.service.gov.uk',
proxyConfig = { host: 'addressofmyproxy.test'},
proxyConfig = { host: 'addressofmyproxy.test', protocol: 'http'},
path = '/email',

@@ -105,3 +105,3 @@ apiClient = new ApiClient(urlBase, 'apiKey');

var urlBase = 'https://api.notifications.service.gov.uk',
proxyConfig = { host: 'addressofmyproxy.test'},
proxyConfig = { host: 'addressofmyproxy.test', protocol: 'http'},
path = '/email',

@@ -108,0 +108,0 @@ apiClient = new ApiClient(urlBase, 'apiKey');

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