Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

notifications-node-client

Package Overview
Dependencies
Maintainers
4
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 4.2.0 to 4.3.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## [4.3.0] - 2018-09-04
* Added `name` to the response for `getTemplateById()` and `getTemplateByIdAndVersion()`
* These functions now return the name of the template as set in Notify
## [4.2.0] - 2018-07-24

@@ -2,0 +7,0 @@

3

DOCUMENTATION.md

@@ -614,2 +614,3 @@ # GOV.UK Notify Node.js client

"id": "template_id",
"name": "template name",
"type": "sms|email|letter",

@@ -680,2 +681,3 @@ "created_at": "created at",

"id": "template_id",
"name": "template name",
"type": "sms|email|letter",

@@ -751,2 +753,3 @@ "created_at": "created at",

"id": "template_id",
"name": "template name",
"type": "sms|email|letter",

@@ -753,0 +756,0 @@ "created_at": "created at",

2

package.json
{
"name": "notifications-node-client",
"version": "4.2.0",
"version": "4.3.0",
"description": "GOV.UK Notify Node.js client ",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -614,2 +614,3 @@ # GOV.UK Notify Node.js client

"id": "template_id",
"name": "template name",
"type": "sms|email|letter",

@@ -680,2 +681,3 @@ "created_at": "created at",

"id": "template_id",
"name": "template name",
"type": "sms|email|letter",

@@ -751,2 +753,3 @@ "created_at": "created at",

"id": "template_id",
"name": "template name",
"type": "sms|email|letter",

@@ -753,0 +756,0 @@ "created_at": "created at",

@@ -8,2 +8,3 @@ {

"id": {"$ref": "definitions.json#/uuid"},
"name": {"type": "string"},
"type": {"enum": ["sms", "email", "letter"] },

@@ -25,3 +26,3 @@ "created_at": {

},
"required": ["id", "type", "created_at", "updated_at", "version", "created_by", "body"]
"required": ["id", "name", "type", "created_at", "updated_at", "version", "created_by", "body"]
}

@@ -187,2 +187,3 @@ const NotifyClient = require('../../client/notification.js').NotifyClient;

expect(response.body).to.be.jsonSchema(getTemplateJson);
response.body.name.should.equal('Client Functional test sms template');
should.not.exist(response.body.subject);

@@ -197,2 +198,3 @@ });

response.body.body.should.equal('Hello ((name))\r\n\r\nFunctional test help make our world a better place');
response.body.name.should.equal('Client Functional test email template');
response.body.subject.should.equal('Functional Tests are good');

@@ -207,2 +209,3 @@ });

response.body.body.should.equal('Hello ((address_line_1))');
response.body.name.should.equal('Client functional letter template');
response.body.subject.should.equal('Main heading');

@@ -216,2 +219,3 @@ });

expect(response.body).to.be.jsonSchema(getTemplateJson);
response.body.name.should.equal('Example text message template');
should.not.exist(response.body.subject);

@@ -226,2 +230,3 @@ response.body.version.should.equal(1);

expect(response.body).to.be.jsonSchema(getTemplateJson);
response.body.name.should.equal('Client Functional test email template');
response.body.version.should.equal(1);

@@ -235,2 +240,3 @@ });

expect(response.body).to.be.jsonSchema(getTemplateJson);
response.body.name.should.equal('Untitled');
response.body.version.should.equal(1);

@@ -237,0 +243,0 @@ });

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