smartystreets-javascript-sdk
Advanced tools
Comparing version 5.0.0 to 5.0.1
{ | ||
"name": "smartystreets-javascript-sdk", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Quick and easy Smarty address validation.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
class Request { | ||
constructor(payload) { | ||
constructor(payload, headers = {"Content-Type": "application/json; charset=utf-8"}) { | ||
this.baseUrl = ""; | ||
this.baseUrlParam = ""; | ||
this.payload = payload; | ||
this.headers = { | ||
"Content-Type": "application/json; charset=utf-8", | ||
}; | ||
this.headers = headers; | ||
@@ -10,0 +8,0 @@ this.parameters = {}; |
@@ -19,3 +19,3 @@ const Errors = require("../Errors"); | ||
let request = new Request(lookup.text); | ||
let request = new Request(lookup.text, {"Content-Type": "text/plain; charset=utf-8"}); | ||
request.parameters = buildInputData(lookup, keyTranslationFormat); | ||
@@ -22,0 +22,0 @@ |
Sorry, the diff of this file is not supported yet
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
171887
92
3894