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 6.0.0 to 7.0.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 7.0.0 - 2023-01-12
* Remove support for node versions below v14.17.3.
## 6.0.0 - 2022-12-22

@@ -2,0 +6,0 @@

16

DOCUMENTATION.md

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

Uploads for CSV files should use the `isCsv` parameter on the `prepareUpload()` function. For example:
Uploads for CSV files should use the `isCsv` option on the `prepareUpload()` function. For example:

@@ -359,3 +359,3 @@ ```javascript

application_date: '2018-01-01',
link_to_file: notifyClient.prepareUpload(csvFile, true)
link_to_file: notifyClient.prepareUpload(csvFile, { isCsv: true })
}

@@ -378,3 +378,3 @@ }).then(response => console.log(response)).catch(err => console.error(err))

To make the recipient confirm their email address before downloading the file, set the `confirmEmailBeforeDownload` flag to `true`.
To make the recipient confirm their email address before downloading the file, set the `confirmEmailBeforeDownload` option to `true`.

@@ -392,3 +392,3 @@ You will not need to do this after 29 March.

application_date: '2018-01-01',
link_to_file: notifyClient.prepareUpload(pdfFile, false, true, undefined)
link_to_file: notifyClient.prepareUpload(pdfFile, { confirmEmailBeforeDownload: true })
}

@@ -411,3 +411,3 @@ }).then(response => console.log(response)).catch(err => console.error(err))

To let the recipient download the file without confirming their email address, set the `confirmEmailBeforeDownload` flag to `false`.
To let the recipient download the file without confirming their email address, set the `confirmEmailBeforeDownload` option to `false`.

@@ -423,3 +423,3 @@ ```javascript

application_date: '2018-01-01',
link_to_file: notifyClient.prepareUpload(pdfFile, false, false, undefined)
link_to_file: notifyClient.prepareUpload(pdfFile, { confirmEmailBeforeDownload: false })
}

@@ -432,3 +432,3 @@ }).then(response => console.log(response)).catch(err => console.error(err))

Set the number of weeks you want the file to be available using the `retentionPeriod` parameter.
Set the number of weeks you want the file to be available using the `retentionPeriod` option.

@@ -450,3 +450,3 @@ You can choose any value between 1 week and 78 weeks.

application_date: '2018-01-01',
link_to_file: notifyClient.prepareUpload(pdfFile, false, undefined, '52 weeks')
link_to_file: notifyClient.prepareUpload(pdfFile, { retentionPeriod: '52 weeks' })
}

@@ -453,0 +453,0 @@ }).then(response => console.log(response)).catch(err => console.error(err))

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

@@ -17,4 +17,4 @@ "repository": {

"engines": {
"npm": ">=6.12.0",
"node": ">=12.13.0"
"npm": ">=6.14.13",
"node": ">=14.17.3"
},

@@ -33,3 +33,3 @@ "author": "GDS developers",

"jsonschema": "1.2.4",
"mocha": "5.2.0",
"mocha": "10.1.0",
"mockdate": "2.0.2",

@@ -36,0 +36,0 @@ "nock": "9.2.6",

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