feat(package): modernize package metadata, exports, and typed country dataset coverage
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
* autocreated commitinfo by @push.rocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smarti18n',
|
||||
version: '1.0.4',
|
||||
description: 'a package dealing with i18n stuff'
|
||||
version: '1.1.0',
|
||||
description: 'A package for internationalization (i18n) that provides utilities for dealing with international phone number prefixes, country codes, and names.'
|
||||
}
|
||||
|
||||
+8
-2
@@ -1,4 +1,10 @@
|
||||
export const countryCodeArray = [
|
||||
export interface ICountryCode {
|
||||
code: string;
|
||||
name: string;
|
||||
phonePrefix: string;
|
||||
}
|
||||
|
||||
export const countryCodeArray: ICountryCode[] = [
|
||||
{ "code": "AD", "name": "Andorra", "phonePrefix": "376" },
|
||||
{ "code": "AE", "name": "United Arab Emirates", "phonePrefix": "971" },
|
||||
{ "code": "AF", "name": "Afghanistan", "phonePrefix": "93" },
|
||||
@@ -248,4 +254,4 @@ export const countryCodeArray = [
|
||||
{ "code": "ZA", "name": "South Africa", "phonePrefix": "27" },
|
||||
{ "code": "ZM", "name": "Zambia", "phonePrefix": "260" },
|
||||
{ "code": "ZW", "name": "Zimbabwe", "phonePrefix": "263" }
|
||||
];
|
||||
];
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
import * as plugins from './smarti18n.plugins.js';
|
||||
export * from './countrycodes.js';
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
const removeme = {};
|
||||
export {
|
||||
removeme
|
||||
}
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user