feat(package): modernize package metadata, exports, and typed country dataset coverage

This commit is contained in:
2026-05-01 22:10:01 +00:00
parent bea77e8672
commit 1aba288d2b
14 changed files with 7650 additions and 5000 deletions
+3 -3
View File
@@ -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
View File
@@ -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
View File
@@ -1,2 +1 @@
import * as plugins from './smarti18n.plugins.js';
export * from './countrycodes.js';
+1 -4
View File
@@ -1,4 +1 @@
const removeme = {};
export {
removeme
}
export {};