notifications-node-client
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -0,1 +1,5 @@ | ||
## 5.1.2 - 2022-09-23 | ||
Remove underscore.js dependency | ||
## 5.1.1 - 2022-01-18 | ||
@@ -2,0 +6,0 @@ |
var restClient = require('axios').default, | ||
_ = require('underscore'), | ||
createGovukNotifyToken = require('../client/authentication.js'), | ||
@@ -59,3 +58,3 @@ notifyProductionAPI = 'https://api.notifications.service.gov.uk', | ||
_.extend(ApiClient.prototype, { | ||
Object.assign(ApiClient.prototype, { | ||
@@ -77,3 +76,3 @@ /** | ||
}; | ||
_.extend(options, additionalOptions) | ||
Object.assign(options, additionalOptions) | ||
if(this.proxy !== null) options.proxy = this.proxy; | ||
@@ -80,0 +79,0 @@ |
@@ -1,3 +0,2 @@ | ||
var ApiClient = require('./api_client'), | ||
_ = require('underscore'); | ||
var ApiClient = require('./api_client'); | ||
@@ -122,3 +121,3 @@ /** | ||
_.extend(NotifyClient.prototype, { | ||
Object.assign(NotifyClient.prototype, { | ||
/** | ||
@@ -125,0 +124,0 @@ * Usage: |
@@ -390,2 +390,3 @@ # Node.js client documentation | ||
|`400`|`[{`<br>`"error": "BadRequestError",`<br>`"message": "Send files by email has not been set up - add contact details for your service at https://www.notifications.service.gov.uk/services/(SERVICE ID)/service-settings/send-files-by-email"`<br>`}]`|See how to [add contact details to the file download page](#add-contact-details-to-the-file-download-page)| | ||
|`400`|`[{`<br>`"error": "BadRequestError",`<br>`"message": "Can only send a file by email"`<br>`}]`|Make sure you are using an email template| | ||
|`403`|`[{`<br>`"error": "AuthError",`<br>`"message": "Error: Your system clock must be accurate to within 30 seconds"`<br>`}]`|Check your system clock| | ||
@@ -392,0 +393,0 @@ |`403`|`[{`<br>`"error": "AuthError",`<br>`"message": "Invalid token: API key not found"`<br>`}]`|Use the correct API key. Refer to [API keys](#api-keys) for more information| |
{ | ||
"name": "notifications-node-client", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"homepage": "https://docs.notifications.service.gov.uk/node.html", | ||
@@ -20,4 +20,3 @@ "repository": { | ||
"jsonwebtoken": "^8.2.1", | ||
"axios": "^0.25.0", | ||
"underscore": "^1.9.0" | ||
"axios": "^0.25.0" | ||
}, | ||
@@ -24,0 +23,0 @@ "devDependencies": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 12 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
227318
2
13
2018
- Removedunderscore@^1.9.0
- Removedunderscore@1.13.6(transitive)