Comparing version 1.3.0 to 1.3.1
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
## [1.3.1] - 2017-4-10 | ||
### Fixed | ||
- #16 fix issue where concat was used incorrectly | ||
- Thanks to [Limian Wang](https://github.com/limianwang) for the PR! | ||
## [1.3.0] - 2017-4-6 | ||
@@ -5,0 +10,0 @@ ### Added |
@@ -63,3 +63,3 @@ (function() { | ||
if (cat instanceof Array) { | ||
this.header.category.concat(cat); | ||
this.header.category = this.header.category.concat(cat); | ||
} else { | ||
@@ -66,0 +66,0 @@ this.header.category.push(cat); |
{ | ||
"name": "smtpapi", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Build SendGrid X-SMTPAPI headers in nodejs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -36,3 +36,3 @@ [![BuildStatus](https://travis-ci.org/sendgrid/smtpapi-nodejs.png?branch=master)](https://travis-ci.org/sendgrid/smtpapi-nodejs) | ||
... | ||
"smtpapi": "1.3.0" | ||
"smtpapi": "1.3.1" | ||
} | ||
@@ -39,0 +39,0 @@ } |
@@ -62,2 +62,7 @@ var assert = require('assert'); | ||
it('addCategory', function() { | ||
header.addCategory(['addCategory']); | ||
header.jsonString().should.equal(t.add_category_array); | ||
}); | ||
it('addCategoryUnicode', function() { | ||
@@ -64,0 +69,0 @@ header.addCategory('カテゴリUnicode'); |
@@ -11,2 +11,3 @@ { | ||
"add_category": "{\"category\":[\"addCategory\",\"addCategory2\"]}", | ||
"add_category_array": "{\"category\":[\"addCategory\"]}", | ||
"add_category_unicode": "{\"category\":[\"\\u30ab\\u30c6\\u30b4\\u30eaUnicode\",\"\\u30ab\\u30c6\\u30b4\\u30ea2Unicode\"]}", | ||
@@ -13,0 +14,0 @@ "set_categories": "{\"category\":[\"setCategories\"]}", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
27110
362
0