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

@furkot/address

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furkot/address - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

20

lib/address/normalize.js

@@ -22,9 +22,15 @@ const { abbr2country, country2abbr } = require('../country');

country = country2abbr[country] || country;
if (!abbr2country[country]) {
street = town;
town = state;
state = getState(country);
country = state2country[state];
if (!country) {
if (country2abbr[country]) {
country = country2abbr[country];
}
else {
const _state = getState(country);
const _country = state2country[_state];
if (_state && _country) {
street = town;
town = state;
state = _state;
country = _country;
}
else if (!abbr2country[country]) {
return;

@@ -31,0 +37,0 @@ }

{
"name": "@furkot/address",
"version": "0.0.3",
"version": "0.0.4",
"description": "Furkot address normalizer.",

@@ -5,0 +5,0 @@ "author": {

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