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

@dlghq/country-codes

Package Overview
Dependencies
Maintainers
6
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlghq/country-codes - npm Package Compare versions

Comparing version

to
0.2.0

2

package.json
{
"name": "@dlghq/country-codes",
"version": "0.1.4",
"version": "0.2.0",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "repository": "https://github.com/dialogs/dialog-country-codes",

@@ -6,13 +6,12 @@ /*

// $FlowFixMe: Required module not found
import countries from './meta/countries.json';
import countries from './meta/countries.json';
export type CountryInfo = {
alpha: string,
codes: string[],
emoji: ?string
};
export type CountryInfo = {
alpha: string,
codes: string[],
emoji: ?string
};
export function getCountries(): CountryInfo[] {
return countries;
};
export function getCountries(): CountryInfo[] {
return countries;
}

@@ -6,14 +6,13 @@ /*

// $FlowFixMe: Required module not found
import en from './meta/en.json';
import ru from './meta/ru.json';
import en from './meta/en.json';
import ru from './meta/ru.json';
export function getCountryName(alpha: string, locale: string): string {
switch (locale) {
case 'ru':
return ru[alpha];
default:
export function getCountryName(alpha: string, locale: string): string {
switch (locale) {
case 'ru':
return ru[alpha];
default:
return en[alpha];
}
};
}
}

@@ -20,0 +19,0 @@ export function getCountryNamesArray(alpha: string): string[] {

@@ -10,10 +10,4 @@ /*

export type {
CountryInfo
};
export type { CountryInfo };
export {
getCountries,
getCountryName,
getCountryNamesArray
}
export { getCountries, getCountryName, getCountryNamesArray };

Sorry, the diff of this file is not supported yet