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

@fragaria/address-formatter

Package Overview
Dependencies
Maintainers
5
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fragaria/address-formatter - npm Package Compare versions

Comparing version 2.9.0 to 3.0.0

92

index.d.ts

@@ -1,8 +0,84 @@

export function format(input: object, options?: {
abbreviate: boolean;
appendCountry: boolean;
cleanupPostcode: boolean;
countryCode: string;
fallbackCountryCode: string;
output: 'string' | 'array';
}): string | string[];
type PrimaryInputTypes =
| 'archipelago'
| 'city'
| 'continent'
| 'country'
| 'countryCode'
| 'county'
| 'hamlet'
| 'house'
| 'houseNumber'
| 'island'
| 'municipality'
| 'neighbourhood'
| 'postalCity'
| 'postcode'
| 'region'
| 'road'
| 'state'
| 'stateDistrict'
| 'village';
type AliasInputTypes =
| 'allotments'
| 'borough'
| 'building'
| 'cityBlock'
| 'cityDistrict'
| 'commercial'
| 'countryName'
| 'countyCode'
| 'croft'
| 'department'
| 'district'
| 'farmland'
| 'footway'
| 'housenumber'
| 'houses'
| 'industrial'
| 'isolatedDwelling'
| 'localAdministrativeArea'
| 'locality'
| 'partialPostcode'
| 'path'
| 'pedestrian'
| 'place'
| 'postcode'
| 'province'
| 'publicBuilding'
| 'quarter'
| 'residential'
| 'roadReference'
| 'roadReferenceIntl'
| 'square'
| 'stateCode'
| 'street'
| 'streetName'
| 'streetNumber'
| 'subcounty'
| 'subdistrict'
| 'subdivision'
| 'suburb'
| 'town'
| 'township'
| 'ward';
type Input = Partial<Record<PrimaryInputTypes | AliasInputTypes, string>>;
interface CommonOptions {
abbreviate?: boolean;
appendCountry?: boolean;
cleanupPostcode?: boolean;
countryCode?: string;
fallbackCountryCode?: string;
}
export function format(
input: Input,
options?: CommonOptions & {output?: 'string'},
): string;
export function format(
input: Input,
options: CommonOptions & {output: 'array'},
): string[];

3

package.json
{
"name": "@fragaria/address-formatter",
"version": "2.9.0",
"version": "3.0.0",
"description": "Universal international address formatting in Javascript",

@@ -18,2 +18,3 @@ "main": "dist/cjs/address-formatter.js",

"prepare-templates": "node management/prepare-templates.js",
"collect-aliases": "node management/collect-aliases.js",
"build": "rollup -c rollup.config.js"

@@ -20,0 +21,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