From 8e9b99e3ce3ba3a3d45353fd23b98cc588bdb933 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:43:52 +0000 Subject: [PATCH 1/2] Bump typescript from 5.4.5 to 5.6.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.4.5 to 5.6.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.4.5...v5.6.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index a9d55919..370750d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65,7 +65,7 @@ "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "typechain": "^8.3.2", - "typescript": "^5.4.5" + "typescript": "^5.6.2" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -14407,9 +14407,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -25606,9 +25606,9 @@ } }, "typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", "dev": true }, "typical": { diff --git a/package.json b/package.json index f1e2d66a..17605f08 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,6 @@ "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "typechain": "^8.3.2", - "typescript": "^5.4.5" + "typescript": "^5.6.2" } } From e6440cd7314891925212192ca18889fda21789cb Mon Sep 17 00:00:00 2001 From: Marc Doerflinger Date: Wed, 18 Sep 2024 11:49:20 +0000 Subject: [PATCH 2/2] remove unused code --- src/utils/numbers.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/utils/numbers.ts b/src/utils/numbers.ts index a3fa4960..645d1a94 100644 --- a/src/utils/numbers.ts +++ b/src/utils/numbers.ts @@ -2,9 +2,6 @@ import { BigNumber } from "ethers"; import { formatUnits } from "ethers/lib/utils"; import { FormNumber } from "./types"; -export const THOUSANDS_SEPARATOR = Intl.NumberFormat().format(11111).replace(/\p{Number}/gu, ''); -export const DECIMAL_SEPARATOR = Intl.NumberFormat().format(1.1).replace(/\p{Number}/gu, ''); - export const DISPLAY_PRECISION = parseInt(process.env.NEXT_PUBLIC_DEPECT_TOKEN_DISPLAY_PRECISION || '2'); export const USD1_DECIMALS = parseInt(process.env.NEXT_PUBLIC_DEPEG_USD1_DECIMALS || '6'); export const USD2_DECIMALS = parseInt(process.env.NEXT_PUBLIC_DEPEG_USD1_DECIMALS || '6');