notifications-node-client 7.0.4 → 7.0.5

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 CHANGED
@@ -1,4 +1,8 @@
1
- ## 7.0.3 - 2023-07-21
1
+ ## 7.0.5 - 2023-11-13
2
+
3
+ * Fix a few cases of assignment to undeclared (global) variables
4
+
5
+ ## 7.0.4 - 2023-11-10
2
6
 
3
7
  * 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
8
 
@@ -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.4",
3
+ "version": "7.0.5",
4
4
  "homepage": "https://docs.notifications.service.gov.uk/node.html",
5
5
  "repository": {
6
6
  "type": "git",