Socket
Socket
Sign inDemoInstall

country-codes-list

Package Overview
Dependencies
0
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.10 to 1.6.11

60

index.d.ts

@@ -5,3 +5,3 @@ // Types for https://www.npmjs.com/package/country-codes-list

declare module 'country-codes-list' {
enum CountryProperty {
export enum CountryProperty {
countryNameEn = 'countryNameEn',

@@ -23,35 +23,41 @@ countryNameLocal = 'countryNameLocal',

type CountryData = {
[CountryProperty.countryNameEn]: string,
[CountryProperty.countryNameLocal]: string,
[CountryProperty.countryCode]: string,
[CountryProperty.currencyCode]: string,
[CountryProperty.currencyNameEn]: string,
[CountryProperty.tinType]: string,
[CountryProperty.tinName]: string,
[CountryProperty.officialLanguageCode]: string,
[CountryProperty.officialLanguageNameEn]: string,
[CountryProperty.officialLanguageNameLocal]: string,
[CountryProperty.countryCallingCode]: string,
[CountryProperty.region]: string,
[CountryProperty.flag]: string,
};
[CountryProperty.countryNameEn]: string
[CountryProperty.countryNameLocal]: string
[CountryProperty.countryCode]: string
[CountryProperty.currencyCode]: string
[CountryProperty.currencyNameEn]: string
[CountryProperty.tinType]: string
[CountryProperty.tinName]: string
[CountryProperty.officialLanguageCode]: string
[CountryProperty.officialLanguageNameEn]: string
[CountryProperty.officialLanguageNameLocal]: string
[CountryProperty.countryCallingCode]: string
[CountryProperty.region]: string
[CountryProperty.flag]: string
}
type Filter<T> = (element: T, index: number, array: T[]) => T[];
type Filter<T> = (element: T, index: number, array: T[]) => T[]
type CustomArraySettings = {
sortDataBy?: CountryProperty,
sortBy?: any,
filter?: Filter<CountryData>,
};
sortDataBy?: CountryProperty
sortBy?: any
filter?: Filter<CountryData>
}
export function all(): CountryData[];
export function all(): CountryData[]
export function filter(countryProperty: CountryProperty, value: string): CountryData[];
export function filter(
countryProperty: CountryProperty,
value: string,
): CountryData[]
export function findOne(countryProperty: CountryProperty, value: string): CountryData;
export function findOne(
countryProperty: CountryProperty,
value: string,
): CountryData
export function customArray(
fields?: { name?: string, value?: string },
settings?: CustomArraySettings
): string[];
fields?: Record<string, string>,
settings?: CustomArraySettings,
): Record<string, string>[]

@@ -62,3 +68,3 @@ export function customList(

settings?: CustomArraySettings,
): { [CountryProperty]: string };
): { [key in CountryProperty]: string }
}
{
"name": "country-codes-list",
"version": "1.6.10",
"version": "1.6.11",
"description": "List of codes per country (languages, calling codes, currency codes, etc)",

@@ -8,3 +8,3 @@ "main": "index.js",

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\""
},

@@ -11,0 +11,0 @@ "repository": {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc