New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

address-geoservices

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

address-geoservices - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

26

index.js

@@ -44,14 +44,32 @@ 'use strict';

validateAddress: function(addressObj, cb) {
var endpoint = 'http://app.yurisw.com/YAddressWebService/YAddress.asmx/ProcessJson';
var endpoint = 'http://app.yurisw.com/YAddressWebService/YAddress.asmx/ProcessJson'
, line1, line2;
if (!addressObj.line1) {
line1 = addressObj.street1 + ' ' + addressObj.street2;
line2 = addressObj.city + ' ' + addressObj.state + ' ' + addressObj.zip;
} else {
line1 = addressObj.line1;
line2 = addressObj.line2;
}
request({
url: endpoint,
qs: {
AddressLine1: addressObj.line1,
AddressLine2: addressObj.line2,
AddressLine1: line1,
AddressLine2: line2,
UserKey: ''
}
}, function(err, incomingMessage, response) {
if (err) { cb(err); }
if (err) { return cb(err); }
try {
var response = JSON.parse(response);
} catch (e) {
return cb(e);
}
if (response.ErrorMessage) {
return cb(response.ErrorMessage);
}
cb(null, JSON.parse(response));

@@ -58,0 +76,0 @@ })

2

package.json
{
"name": "address-geoservices",
"version": "0.0.1",
"version": "0.0.3",
"description": "Interacts with geoservices apis to help with managing addresses",

@@ -5,0 +5,0 @@ "main": "index.js",

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