@alwatr/math
Advanced tools
Comparing version 0.21.0 to 0.22.0
@@ -6,2 +6,6 @@ # Change Log | ||
# [0.22.0](https://github.com/AliMD/alwatr/compare/v0.21.0...v0.22.0) (2022-11-20) | ||
**Note:** Version bump only for package @alwatr/math | ||
# [0.21.0](https://github.com/AliMD/alwatr/compare/v0.20.0...v0.21.0) (2022-11-13) | ||
@@ -8,0 +12,0 @@ |
@@ -109,4 +109,4 @@ import { TransformRangeOptions } from './type.js'; | ||
}; | ||
export declare type DurationUnit = 's' | 'm' | 'h' | 'd' | 'w' | 'M' | 'y'; | ||
export declare type DurationString = `${number}${DurationUnit}`; | ||
export type DurationUnit = 's' | 'm' | 'h' | 'd' | 'w' | 'M' | 'y'; | ||
export type DurationString = `${number}${DurationUnit}`; | ||
/** | ||
@@ -113,0 +113,0 @@ * Parse duration string to target unit. |
{ | ||
"name": "@alwatr/math", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"description": "Simple useful Math library written in tiny TypeScript module.", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "b4a565ee520e5a9fab404f539463109b6af19aa9" | ||
"gitHead": "2c45f39d4f1d684c9580ed28501b31b7c170ebd4" | ||
} |
@@ -61,3 +61,3 @@ declare const supportedLanguageList: { | ||
}; | ||
export declare type UnicodeLangKeys = keyof typeof supportedLanguageList; | ||
export type UnicodeLangKeys = keyof typeof supportedLanguageList; | ||
export declare class UnicodeDigits { | ||
@@ -64,0 +64,0 @@ protected _toLangZeroCode: 48 | 1632 | 1776 | 1984 | 2406 | 2534 | 2662 | 2790 | 2918 | 3046 | 3174 | 3302 | 3430 | 3558 | 3664 | 3792 | 3872 | 4160 | 4240 | 6112 | 6160 | 6470 | 6608 | 6784 | 6800 | 6992 | 7088 | 7232 | 7248 | 42528 | 43216 | 43264 | 43472 | 43504 | 43600 | 44016 | 65296 | 66720 | 69734 | 69872 | 69942 | 70096 | 70384 | 70736 | 70864 | 71248 | 71360 | 71472 | 71904 | 72784 | 92768 | 93008 | 120782 | 120792 | 120802 | 120812 | 120822 | 125264; |
@@ -62,2 +62,5 @@ const supportedLanguageList = { | ||
export class UnicodeDigits { | ||
_replacer(_, ...args) { | ||
return String.fromCharCode(this._toLangZeroCode + args.findIndex((v) => v != null)); | ||
} | ||
/** | ||
@@ -104,5 +107,2 @@ * Translate number. | ||
} | ||
_replacer(_, ...args) { | ||
return String.fromCharCode(this._toLangZeroCode + args.findIndex((v) => v != null)); | ||
} | ||
/** | ||
@@ -109,0 +109,0 @@ * Convert the String of number of the source language to the destination language. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34961