Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,7 @@ | ||
## 1.1.2 (2015-11-24) | ||
Bugfixes: | ||
- Fix calculation of Content-Length header value when using UTF-8. | ||
## 1.1.1 (2015-11-18) | ||
@@ -2,0 +8,0 @@ |
@@ -101,3 +101,4 @@ var http = require('http'); | ||
if (data) { | ||
headers['Content-Length'] = JSON.stringify(data).length; | ||
var body = serializer.dump(data); | ||
headers['Content-Length'] = Buffer.byteLength(body, 'utf8'); | ||
} | ||
@@ -104,0 +105,0 @@ } |
var merge = require('./utils/merge'); | ||
var Client = require('./Client'); | ||
var VERSION = '1.1.1'; | ||
var VERSION = '1.1.2'; | ||
var DEFAULT_HOST = 'api.delighted.com'; | ||
@@ -6,0 +6,0 @@ var DEFAULT_PORT = 443; |
{ | ||
"name": "delighted", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Delighted API Node Client", | ||
@@ -5,0 +5,0 @@ "main": "delighted.js", |
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
25465
495
3