@alwatr/unicode-digits 5.5.18 โ 5.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/main.cjs +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.5.20](https://github.com/Alwatr/nanolib/compare/@alwatr/unicode-digits@5.5.19...@alwatr/unicode-digits@5.5.20) (2025-10-06)
|
|
7
|
+
|
|
8
|
+
### ๐ Dependencies update
|
|
9
|
+
|
|
10
|
+
* bump the npm-dependencies group with 4 updates ([9825815](https://github.com/Alwatr/nanolib/commit/982581552bbb4b97dca52af5e93a80937f0c3109))
|
|
11
|
+
|
|
12
|
+
## [5.5.19](https://github.com/Alwatr/nanolib/compare/@alwatr/unicode-digits@5.5.18...@alwatr/unicode-digits@5.5.19) (2025-09-27)
|
|
13
|
+
|
|
14
|
+
### ๐งน Miscellaneous Chores
|
|
15
|
+
|
|
16
|
+
* exclude test files from package distribution ([86f4f2f](https://github.com/Alwatr/nanolib/commit/86f4f2f5985845c5cf3a3a9398de7b2f98ce53e7))
|
|
17
|
+
|
|
6
18
|
## [5.5.18](https://github.com/Alwatr/nanolib/compare/@alwatr/unicode-digits@5.5.17...@alwatr/unicode-digits@5.5.18) (2025-09-22)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @alwatr/unicode-digits
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** ๐ฆ @alwatr/unicode-digits v5.5.
|
|
2
|
-
__dev_mode__: console.debug("๐ฆ @alwatr/unicode-digits v5.5.
|
|
1
|
+
/** ๐ฆ @alwatr/unicode-digits v5.5.20 */
|
|
2
|
+
__dev_mode__: console.debug("๐ฆ @alwatr/unicode-digits v5.5.20");
|
|
3
3
|
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{UnicodeDigits:()=>UnicodeDigits});module.exports=__toCommonJS(main_exports);var supportedLanguageList={en:48,ar:1632,fa:1776,nko:1984,hi:2406,bn:2534,pa:2662,gu:2790,or:2918,ta:3046,te:3174,kn:3302,mal:3430,sinhala_lith:3558,thai:3664,lao:3792,tibetan:3872,myanmar:4160,myanmar_shan:4240,khmer:6112,mongolian:6160,limbu:6470,new_tai_lue:6608,tai_tham_hora:6784,tai_tham_tham:6800,balinese:6992,sundanese:7088,lepcha:7232,ol_chiki:7248,vai:42528,saurashtra:43216,kayah_li:43264,javanese:43472,myanmar_tai_laing:43504,cham:43600,meetei_mayek:44016,fullwidth:65296,osmanya:66720,brahmi:69734,sora_sompeng:69872,chakma:69942,sharada:70096,khudawadi:70384,newa:70736,tirhuta:70864,modi:71248,takri:71360,ahom:71472,warang_citi:71904,bhaiksuki:72784,mro:92768,pahawh_hmong:93008,mathematical_bold:120782,"mathematical_double-struck":120792,"mathematical_sans-serif":120802,"mathematical_sans-serif_bold":120812,mathematical_monospace:120822,fula:125264};var commonLangList=["en","fa","ar"];var UnicodeDigits=class{_replacer(_,...args){return String.fromCharCode(this._toLangZeroCode+args.findIndex(v=>v!=null))}constructor(toLanguage,fromLanguages=[...commonLangList]){if(fromLanguages==="all"){fromLanguages=Object.keys(supportedLanguageList)}const removeSelf=fromLanguages.indexOf(toLanguage);if(removeSelf!==-1)fromLanguages.splice(removeSelf,1);this._toLangZeroCode=supportedLanguageList[toLanguage];const regParts=[];for(let n=0;n<10;n++){regParts.push("("+fromLanguages.map(langKey=>String.fromCharCode(supportedLanguageList[langKey]+n)).join("|")+")")}this._searchRegExt=new RegExp(regParts.join("|"),"g");this._replacer=this._replacer.bind(this)}translate(str){return str.trim()===""?str:str.replace(this._searchRegExt,this._replacer)}};0&&(module.exports={UnicodeDigits});
|
|
4
4
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** ๐ฆ @alwatr/unicode-digits v5.5.
|
|
2
|
-
__dev_mode__: console.debug("๐ฆ @alwatr/unicode-digits v5.5.
|
|
1
|
+
/** ๐ฆ @alwatr/unicode-digits v5.5.20 */
|
|
2
|
+
__dev_mode__: console.debug("๐ฆ @alwatr/unicode-digits v5.5.20");
|
|
3
3
|
var supportedLanguageList={en:48,ar:1632,fa:1776,nko:1984,hi:2406,bn:2534,pa:2662,gu:2790,or:2918,ta:3046,te:3174,kn:3302,mal:3430,sinhala_lith:3558,thai:3664,lao:3792,tibetan:3872,myanmar:4160,myanmar_shan:4240,khmer:6112,mongolian:6160,limbu:6470,new_tai_lue:6608,tai_tham_hora:6784,tai_tham_tham:6800,balinese:6992,sundanese:7088,lepcha:7232,ol_chiki:7248,vai:42528,saurashtra:43216,kayah_li:43264,javanese:43472,myanmar_tai_laing:43504,cham:43600,meetei_mayek:44016,fullwidth:65296,osmanya:66720,brahmi:69734,sora_sompeng:69872,chakma:69942,sharada:70096,khudawadi:70384,newa:70736,tirhuta:70864,modi:71248,takri:71360,ahom:71472,warang_citi:71904,bhaiksuki:72784,mro:92768,pahawh_hmong:93008,mathematical_bold:120782,"mathematical_double-struck":120792,"mathematical_sans-serif":120802,"mathematical_sans-serif_bold":120812,mathematical_monospace:120822,fula:125264};var commonLangList=["en","fa","ar"];var UnicodeDigits=class{_replacer(_,...args){return String.fromCharCode(this._toLangZeroCode+args.findIndex(v=>v!=null))}constructor(toLanguage,fromLanguages=[...commonLangList]){if(fromLanguages==="all"){fromLanguages=Object.keys(supportedLanguageList)}const removeSelf=fromLanguages.indexOf(toLanguage);if(removeSelf!==-1)fromLanguages.splice(removeSelf,1);this._toLangZeroCode=supportedLanguageList[toLanguage];const regParts=[];for(let n=0;n<10;n++){regParts.push("("+fromLanguages.map(langKey=>String.fromCharCode(supportedLanguageList[langKey]+n)).join("|")+")")}this._searchRegExt=new RegExp(regParts.join("|"),"g");this._replacer=this._replacer.bind(this)}translate(str){return str.trim()===""?str:str.replace(this._searchRegExt,this._replacer)}};export{UnicodeDigits};
|
|
4
4
|
//# sourceMappingURL=main.mjs.map
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/unicode-digits",
|
|
3
3
|
"description": "Convert the String of number of the source language to the destination language.",
|
|
4
|
-
"version": "5.5.
|
|
4
|
+
"version": "5.5.20",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"bugs": "https://github.com/Alwatr/nanolib/issues",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@alwatr/nano-build": "6.3.
|
|
9
|
-
"@alwatr/prettier-config": "5.0.
|
|
10
|
-
"@alwatr/tsconfig-base": "6.0.
|
|
11
|
-
"@alwatr/type-helper": "6.1.
|
|
12
|
-
"typescript": "^5.9.
|
|
8
|
+
"@alwatr/nano-build": "6.3.5",
|
|
9
|
+
"@alwatr/prettier-config": "5.0.5",
|
|
10
|
+
"@alwatr/tsconfig-base": "6.0.3",
|
|
11
|
+
"@alwatr/type-helper": "6.1.5",
|
|
12
|
+
"typescript": "^5.9.3"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}",
|
|
23
23
|
"LICENSE",
|
|
24
|
-
"!demo/**/*"
|
|
24
|
+
"!demo/**/*",
|
|
25
|
+
"!**/*.test.js"
|
|
25
26
|
],
|
|
26
27
|
"homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/unicode-digits#readme",
|
|
27
28
|
"keywords": [
|
|
@@ -72,5 +73,5 @@
|
|
|
72
73
|
"sideEffects": false,
|
|
73
74
|
"type": "module",
|
|
74
75
|
"types": "./dist/main.d.ts",
|
|
75
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "b141732f4dab13542e3cc99926a250fd5c74bad3"
|
|
76
77
|
}
|