Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alwatr/math

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/math - npm Package Compare versions

Comparing version 0.22.0 to 0.22.1

4

CHANGELOG.md

@@ -6,2 +6,6 @@ # Change Log

## [0.22.1](https://github.com/AliMD/alwatr/compare/v0.22.0...v0.22.1) (2022-11-21)
**Note:** Version bump only for package @alwatr/math
# [0.22.0](https://github.com/AliMD/alwatr/compare/v0.21.0...v0.22.0) (2022-11-20)

@@ -8,0 +12,0 @@

4

package.json
{
"name": "@alwatr/math",
"version": "0.22.0",
"version": "0.22.1",
"description": "Simple useful Math library written in tiny TypeScript module.",

@@ -36,3 +36,3 @@ "keywords": [

},
"gitHead": "2c45f39d4f1d684c9580ed28501b31b7c170ebd4"
"gitHead": "0e754ce09f4d6bedc34029d9d03b38f471782456"
}

@@ -59,2 +59,3 @@ # Alwatr Math - `@alwatr/math`

<!-- prettier-ignore -->
```ts

@@ -61,0 +62,0 @@ import {isNumber} from 'https://esm.run/@alwatr/math';

@@ -94,25 +94,25 @@ declare const supportedLanguageList: {

/**
* Convert the String of number of the source language to the destination language.
*
* @param {string} str - String of number of the source language.
* @returns String of number of the destination language.
*
* Example:
*
* ```ts
* const list = [
* '0123456789',
* '٠١٢٣٤٥٦٧٨٩',
* '߀߁߂߃߄߅߆߇߈߉',
* '०१२३४५६७८९',
* '০১২৩৪৫৬৭৮৯',
* '੦੧੨੩੪੫੬੭੮੯',
* '૦૧૨૩૪૫૬૭૮૯',
* '୦୧୨୩୪୫୬୭୮୯',
* '௦௧௨௩௪௫௬௭௮௯',
* ].join('\n');
*
* console.log(unicodeDigits.translate(list));
* ```
*/
* Convert the String of number of the source language to the destination language.
*
* @param {string} str - String of number of the source language.
* @returns String of number of the destination language.
*
* Example:
*
* ```ts
* const list = [
* '0123456789',
* '٠١٢٣٤٥٦٧٨٩',
* '߀߁߂߃߄߅߆߇߈߉',
* '०१२३४५६७८९',
* '০১২৩৪৫৬৭৮৯',
* '੦੧੨੩੪੫੬੭੮੯',
* '૦૧૨૩૪૫૬૭૮૯',
* '୦୧୨୩୪୫୬୭୮୯',
* '௦௧௨௩௪௫௬௭௮௯',
* ].join('\n');
*
* console.log(unicodeDigits.translate(list));
* ```
*/
translate(str: string): string;

@@ -119,0 +119,0 @@ }

@@ -107,25 +107,25 @@ const supportedLanguageList = {

/**
* Convert the String of number of the source language to the destination language.
*
* @param {string} str - String of number of the source language.
* @returns String of number of the destination language.
*
* Example:
*
* ```ts
* const list = [
* '0123456789',
* '٠١٢٣٤٥٦٧٨٩',
* '߀߁߂߃߄߅߆߇߈߉',
* '०१२३४५६७८९',
* '০১২৩৪৫৬৭৮৯',
* '੦੧੨੩੪੫੬੭੮੯',
* '૦૧૨૩૪૫૬૭૮૯',
* '୦୧୨୩୪୫୬୭୮୯',
* '௦௧௨௩௪௫௬௭௮௯',
* ].join('\n');
*
* console.log(unicodeDigits.translate(list));
* ```
*/
* Convert the String of number of the source language to the destination language.
*
* @param {string} str - String of number of the source language.
* @returns String of number of the destination language.
*
* Example:
*
* ```ts
* const list = [
* '0123456789',
* '٠١٢٣٤٥٦٧٨٩',
* '߀߁߂߃߄߅߆߇߈߉',
* '०१२३४५६७८९',
* '০১২৩৪৫৬৭৮৯',
* '੦੧੨੩੪੫੬੭੮੯',
* '૦૧૨૩૪૫૬૭૮૯',
* '୦୧୨୩୪୫୬୭୮୯',
* '௦௧௨௩௪௫௬௭௮௯',
* ].join('\n');
*
* console.log(unicodeDigits.translate(list));
* ```
*/
translate(str) {

@@ -132,0 +132,0 @@ return str.replace(this._searchRegExt, this._replacer);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc