Socket
Socket
Sign inDemoInstall

notifications-node-client

Package Overview
Dependencies
17
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.1 to 5.1.2

4

CHANGELOG.md

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

## 5.1.2 - 2022-09-23
Remove underscore.js dependency
## 5.1.1 - 2022-01-18

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

5

client/api_client.js
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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc