notifications-node-client 7.0.4 → 7.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/client/notification.js +4 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
## 7.0.
|
|
1
|
+
## 7.0.6 - 2023-11-13
|
|
2
|
+
|
|
3
|
+
* Bump axios from 1.2.6 to 1.6.1
|
|
4
|
+
|
|
5
|
+
## 7.0.5 - 2023-11-13
|
|
6
|
+
|
|
7
|
+
* Fix a few cases of assignment to undeclared (global) variables
|
|
8
|
+
|
|
9
|
+
## 7.0.4 - 2023-11-10
|
|
2
10
|
|
|
3
11
|
* 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.
|
|
4
12
|
|
package/client/notification.js
CHANGED
|
@@ -201,8 +201,8 @@ Object.assign(NotifyClient.prototype, {
|
|
|
201
201
|
|
|
202
202
|
sendPrecompiledLetter: function(reference, pdf_file, postage) {
|
|
203
203
|
var postage = postage || undefined
|
|
204
|
-
content = _check_and_encode_file(pdf_file, 5)
|
|
205
|
-
notification = {
|
|
204
|
+
var content = _check_and_encode_file(pdf_file, 5)
|
|
205
|
+
var notification = {
|
|
206
206
|
"reference": reference,
|
|
207
207
|
"content": content
|
|
208
208
|
}
|
|
@@ -327,6 +327,8 @@ Object.assign(NotifyClient.prototype, {
|
|
|
327
327
|
* @returns {Promise}
|
|
328
328
|
*/
|
|
329
329
|
getReceivedTexts: function(olderThan){
|
|
330
|
+
let queryString;
|
|
331
|
+
|
|
330
332
|
if (olderThan) {
|
|
331
333
|
queryString = '?older_than=' + olderThan;
|
|
332
334
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notifications-node-client",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
4
4
|
"homepage": "https://docs.notifications.service.gov.uk/node.html",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"jsonwebtoken": "^9.0.0",
|
|
24
|
-
"axios": "^1.
|
|
24
|
+
"axios": "^1.6.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"chai": "4.1.2",
|