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

@universe/address-parser

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@universe/address-parser - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

16

dist/src/Address.js

@@ -13,2 +13,12 @@ import { Country, FacilityType, getCountryDesc, isCountry, isDirectional, StreetType } from '@universe/models';

const forceStreetExpansion = new Set([StreetType.PLZ]);
const singleStreetSuffix = new Set([
StreetType.BLFS, StreetType.BRKS, StreetType.CIRS, StreetType.CLFS, StreetType.CMNS,
StreetType.CORS, StreetType.CTS, StreetType.XING, StreetType.XRDS, StreetType.DRS,
StreetType.ESTS, StreetType.EXTS, StreetType.FLS, StreetType.FLDS, StreetType.FLTS,
StreetType.FRDS, StreetType.JCTS, StreetType.KYS, StreetType.KNLS, StreetType.MEWS,
StreetType.MDWS, StreetType.RDGS, StreetType.RIV, StreetType.SHLS, StreetType.SHRS,
StreetType.SPGS, StreetType.SQS, StreetType.ST, StreetType.STS, StreetType.TER,
StreetType.VLY, StreetType.VLYS, StreetType.VLG, StreetType.VLGS, StreetType.VIS,
StreetType.WALK, StreetType.WAY, StreetType.WLS,
]);
function streetName(name, type) {

@@ -25,4 +35,4 @@ if (!type || isStreetPrefix(type)) {

}
if (isNumberOrCode(name) && !isOrdinal(name) && !isDirectional(name)) {
return [streetTypeString(toStreetType(type)), name];
if (name.startsWith('of the') || (isNumberOrCode(name) && !isOrdinal(name) && !isDirectional(name) && !singleStreetSuffix.has(type))) {
return [streetTypeString(toStreetType(type), true), name];
}

@@ -144,2 +154,2 @@ return [name, streetTypeOut];

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWRkcmVzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9BZGRyZXNzLnRzIl0sIm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xuICAgIF0uZmlsdGVyKEJvb2xlYW4pO1xuICAgIGlmIChpc0NvdW50cnkobGFiZWwuY291bnRyeSkgJiYgbGFiZWwuY291bnRyeSAhPT0gQ291bnRyeS5VU0EgJiYgbGFiZWwuY291bnRyeSAhPT0gQ291bnRyeS5GT1JFSUdOKSB7XG4gICAgICBjb25zdCBuYW1lID0gZ2V0Q291bnRyeURlc2MobGFiZWwuY291bnRyeSk/Lm5hbWU7XG4gICAgICBuYW1lICYmIG91dC5wdXNoKG5hbWUudG9VcHBlckNhc2UoKSk7XG4gICAgfVxuICAgIHJldHVybiBbXG4gICAgICBvdXRbMF0gfHwgbnVsbCxcbiAgICAgIG91dFsxXSB8fCBudWxsLFxuICAgICAgb3V0WzJdIHx8IG51bGwsXG4gICAgICBvdXRbM10gfHwgbnVsbCxcbiAgICBdO1xuICB9XG5cbiAgc3RhdGljIHByaW50KGFkZHI/OiBJU2l0dXMgfCBudWxsKTogc3RyaW5nIHtcbiAgICBpZiAoIWFkZHIpIHsgcmV0dXJuICcnOyB9XG4gICAgcmV0dXJuIEFkZHJlc3MubGluZXMoYWRkcikuZmlsdGVyKEJvb2xlYW4pLmpvaW4oJ1xcbicpO1xuICB9XG5cbiAgcHVibGljIGxhYmVsKCk6IFVTUFNMYWJlbCB7IHJldHVybiBBZGRyZXNzLmxhYmVsKHRoaXMuYWRkcmVzcyk7IH1cbiAgcHVibGljIGxpbmVzKCk6IFtzdHJpbmcgfCBudWxsLCBzdHJpbmcgfCBudWxsLCBzdHJpbmcgfCBudWxsLCBzdHJpbmcgfCBudWxsXSB7IHJldHVybiBBZGRyZXNzLmxpbmVzKHRoaXMuYWRkcmVzcyk7IH1cbiAgcHVibGljIHByaW50KCk6IHN0cmluZyB7IHJldHVybiBBZGRyZXNzLnByaW50KHRoaXMuYWRkcmVzcyk7IH1cbn1cbiJdfQ==

2

dist/src/data/StreetType.d.ts

@@ -8,3 +8,3 @@ import { StreetType } from '@universe/models';

export declare function isSpanishPrefix(val: unknown): boolean;
export declare function streetTypeString(type: StreetType | null): string | null;
export declare function streetTypeString(type: StreetType | null, force?: boolean): string | null;
export declare function isStreetType(val?: string | null): val is StreetType;

@@ -75,7 +75,7 @@ import { aliases, StreetType } from '@universe/models';

const DO_NOT_EXPAND = new Set([StreetType.DR, StreetType.ST]);
export function streetTypeString(type) {
export function streetTypeString(type, force = false) {
if (type === null) {
return null;
}
if (DO_NOT_EXPAND.has(normalize(type))) {
if (!force && DO_NOT_EXPAND.has(normalize(type))) {
return type;

@@ -92,2 +92,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RyZWV0VHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kYXRhL1N0cmVldFR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBQyxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUV0RCxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRTFELE1BQU0sQ0FBQyxNQUFNLGlCQUFpQixHQUFpQyxFQUFFLENBQUM7QUFFbEUsS0FBSyxNQUFNLElBQUksSUFBSSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQWlCLEVBQUU7SUFDbEUsaUJBQWlCLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBQzFDLEtBQUssTUFBTSxHQUFHLElBQUksT0FBTyxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsRUFBRTtRQUMxQyxpQkFBaUIsQ0FBQyxTQUFTLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUM7S0FDMUM7Q0FDRjtBQUVELE1BQU0sVUFBVSxZQUFZLENBQU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saXplKHR5cGUpXT8uWzBdIHx8ICcnKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzU3RyZWV0VHlwZSh2YWw/OiBzdHJpbmcgfCBudWxsKTogdmFsIGlzIFN0cmVldFR5cGUge1xuICBpZiAoIXZhbCkgeyByZXR1cm4gZmFsc2U7IH1cbiAgcmV0dXJuICEhU3RyZWV0VHlwZU1hcHBpbmdbbm9ybWFsaXplKHZhbCldO1xufVxuIl19
{
"name": "@universe/address-parser",
"version": "3.3.0",
"version": "3.3.1",
"main": "dist/src/index.js",

@@ -30,3 +30,3 @@ "module": "dist/src/index.js",

"dependencies": {
"@universe/models": "^3.0.4",
"@universe/models": "^3.0.10",
"@universe/util": "^1.2.2"

@@ -33,0 +33,0 @@ },

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