smartystreets-javascript-sdk
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "smartystreets-javascript-sdk", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Quick and easy Smarty address validation.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -28,2 +28,4 @@ /** | ||
this.components.administrativeArea = responseData.components.administrative_area; | ||
this.components.administrativeAreaShort = responseData.components.administrative_area_short; | ||
this.components.administrativeAreaLong = responseData.components.administrative_area_long; | ||
this.components.subAdministrativeArea = responseData.components.sub_administrative_area; | ||
@@ -62,2 +64,4 @@ this.components.dependentLocality = responseData.components.dependent_locality; | ||
this.components.subBuilding = responseData.components.sub_building; | ||
this.components.levelType = responseData.components.level_type; | ||
this.components.levelNumber = responseData.components.level_number; | ||
this.components.postBox = responseData.components.post_box; | ||
@@ -95,2 +99,4 @@ this.components.postBoxType = responseData.components.post_box_type; | ||
this.analysis.changes.components.administrativeArea = responseData.analysis.changes.components.administrative_area; | ||
this.analysis.changes.components.administrativeAreaShort = responseData.analysis.changes.components.administrative_area_short; | ||
this.analysis.changes.components.administrativeAreaLong = responseData.analysis.changes.components.administrative_area_long; | ||
this.analysis.changes.components.subAdministrativeArea = responseData.analysis.changes.components.sub_administrative_area; | ||
@@ -129,2 +135,4 @@ this.analysis.changes.components.dependentLocality = responseData.analysis.changes.components.dependent_locality; | ||
this.analysis.changes.components.subBuilding = responseData.analysis.changes.components.sub_building; | ||
this.analysis.changes.components.levelType = responseData.analysis.changes.components.level_type; | ||
this.analysis.changes.components.levelNumber = responseData.analysis.changes.components.level_number; | ||
this.analysis.changes.components.postBox = responseData.analysis.changes.components.post_box; | ||
@@ -131,0 +139,0 @@ this.analysis.changes.components.postBoxType = responseData.analysis.changes.components.post_box_type; |
@@ -25,2 +25,4 @@ const chai = require("chai"); | ||
administrative_area: "16", | ||
administrative_area_short: "16.1", | ||
administrative_area_long: "16.2", | ||
sub_administrative_area: "17", | ||
@@ -59,2 +61,4 @@ dependent_locality: "18", | ||
sub_building: "48", | ||
level_type: "48.1", | ||
level_number: "48.2", | ||
post_box: "49", | ||
@@ -93,2 +97,4 @@ post_box_type: "50", | ||
administrative_area: "75", | ||
administrative_area_short: "75.1", | ||
administrative_area_long: "75.2", | ||
sub_administrative_area: "76", | ||
@@ -127,2 +133,4 @@ dependent_locality: "77", | ||
sub_building: "108", | ||
level_type: "108.1", | ||
level_number: "108.2", | ||
post_box: "109", | ||
@@ -155,2 +163,4 @@ post_box_type: "110", | ||
expect(components.administrativeArea).to.equal("16"); | ||
expect(components.administrativeAreaShort).to.equal("16.1"); | ||
expect(components.administrativeAreaLong).to.equal("16.2"); | ||
expect(components.subAdministrativeArea).to.equal("17"); | ||
@@ -189,2 +199,4 @@ expect(components.dependentLocality).to.equal("18"); | ||
expect(components.subBuilding).to.equal("48"); | ||
expect(components.levelType).to.equal("48.1"); | ||
expect(components.levelNumber).to.equal("48.2"); | ||
expect(components.postBox).to.equal("49"); | ||
@@ -221,2 +233,4 @@ expect(components.postBoxType).to.equal("50"); | ||
expect(ccomponents.administrativeArea).to.equal("75"); | ||
expect(ccomponents.administrativeAreaShort).to.equal("75.1"); | ||
expect(ccomponents.administrativeAreaLong).to.equal("75.2"); | ||
expect(ccomponents.subAdministrativeArea).to.equal("76"); | ||
@@ -255,2 +269,4 @@ expect(ccomponents.dependentLocality).to.equal("77"); | ||
expect(ccomponents.subBuilding).to.equal("108"); | ||
expect(ccomponents.levelType).to.equal("108.1"); | ||
expect(ccomponents.levelNumber).to.equal("108.2"); | ||
expect(ccomponents.postBox).to.equal("109"); | ||
@@ -257,0 +273,0 @@ expect(ccomponents.postBoxType).to.equal("110"); |
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
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
172261
3944
0