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

smartystreets-javascript-sdk

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartystreets-javascript-sdk - npm Package Compare versions

Comparing version 1.1.8 to 1.2.0

1

examples/us_street.js

@@ -14,2 +14,3 @@ const SmartyStreetsSDK = require("../index");

lookup1.zipCode = "84601";
lookup1.match = "invalid";

@@ -16,0 +17,0 @@ let lookup2 = new Lookup();

2

package.json
{
"name": "smartystreets-javascript-sdk",
"version": "1.1.8",
"version": "1.2.0",
"description": "Quick and easy SmartyStreets address validation.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -59,2 +59,3 @@ /**

this.metadata.obeysDst = responseData.metadata.dst;
this.metadata.isEwsMatch = responseData.metadata.ews_match;
}

@@ -69,3 +70,3 @@

this.analysis.active = responseData.analysis.active;
this.analysis.isEwsMatch = responseData.analysis.ews_match;
this.analysis.isEwsMatch = "Deprecated, refer to metadata.isEwsMatch";
this.analysis.footnotes = responseData.analysis.footnotes;

@@ -72,0 +73,0 @@ this.analysis.lacsLinkCode = responseData.analysis.lacslink_code;

@@ -19,3 +19,3 @@ const Candidate = require("./Candidate");

* Sends up to 100 lookups for validation.
* @param data May be a Lookup object, or a Batch which must contain between 1 and 100 Lookup objects
* @param data may be a Lookup object, or a Batch which must contain between 1 and 100 Lookup objects
* @throws SmartyException

@@ -22,0 +22,0 @@ */

@@ -52,3 +52,4 @@ const chai = require("chai");

utc_offset: 40.0,
dst: "41"
dst: "41",
ews_match: "47"
},

@@ -61,3 +62,2 @@ analysis: {

active: "46",
ews_match: "47",
footnotes: "48",

@@ -115,2 +115,3 @@ lacslink_code: "49",

expect(candidate.metadata.obeysDst).to.equal('41');
expect(candidate.metadata.isEwsMatch).to.equal('47');

@@ -122,3 +123,2 @@ expect(candidate.analysis.dpvMatchCode).to.equal('42');

expect(candidate.analysis.active).to.equal('46');
expect(candidate.analysis.isEwsMatch).to.equal('47');
expect(candidate.analysis.footnotes).to.equal('48');

@@ -125,0 +125,0 @@ expect(candidate.analysis.lacsLinkCode).to.equal('49');

@@ -6,2 +6,3 @@ const chai = require("chai");

const Client = require("../../src/us_street/Client");
const ClientBuilder = require("../../src/ClientBuilder");
const Lookup = require("../../src/us_street/Lookup");

@@ -8,0 +9,0 @@ const Candidate = require("../../src/us_street/Candidate");

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