@swapkit/helpers 1.0.0-rc.34 → 1.0.0-rc.35

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/package.json CHANGED
@@ -2,22 +2,22 @@
2
2
  "author": "swapkit-oss-team",
3
3
  "description": "SwapKit Lib swapkit-helpers",
4
4
  "dependencies": {
5
- "ky": "1.1.2"
5
+ "ky": "1.1.3"
6
6
  },
7
7
  "devDependencies": {
8
- "@vitest/coverage-istanbul": "0.34.4",
9
- "vite": "4.4.9",
10
- "vitest": "0.34.4",
11
- "@internal/config": "0.0.0-rc.1",
12
- "@swapkit/tokens": "1.0.0-rc.16",
13
- "@swapkit/types": "1.0.0-rc.15"
8
+ "@vitest/coverage-istanbul": "0.34.6",
9
+ "vite": "4.5.0",
10
+ "vitest": "0.34.6",
11
+ "@internal/config": "0.0.0-rc.2",
12
+ "@swapkit/tokens": "1.0.0-rc.17",
13
+ "@swapkit/types": "1.0.0-rc.16"
14
14
  },
15
15
  "eslintConfig": {
16
16
  "extends": "../../../internal/eslint-config"
17
17
  },
18
18
  "peerDependencies": {
19
- "@swapkit/tokens": "1.0.0-rc.16",
20
- "@swapkit/types": "1.0.0-rc.15"
19
+ "@swapkit/tokens": "1.0.0-rc.17",
20
+ "@swapkit/types": "1.0.0-rc.16"
21
21
  },
22
22
  "exports": {
23
23
  ".": {
@@ -42,7 +42,7 @@
42
42
  "repository": "https://github.com/thorswap/SwapKit.git",
43
43
  "type": "module",
44
44
  "types": "./dist/index.d.ts",
45
- "version": "1.0.0-rc.34",
45
+ "version": "1.0.0-rc.35",
46
46
  "scripts": {
47
47
  "build": "vite build",
48
48
  "clean": "rm -rf dist vite.config.ts.* .turbo node_modules",
@@ -124,8 +124,8 @@ export class AssetValue extends BigIntArithmetics {
124
124
  const asset = tokenIdentifier
125
125
  ? new AssetValue({ decimal, identifier: tokenIdentifier, value: parsedValue })
126
126
  : isSynthetic
127
- ? new AssetValue({ decimal: 8, identifier: assetString, value: parsedValue })
128
- : undefined;
127
+ ? new AssetValue({ decimal: 8, identifier: assetString, value: parsedValue })
128
+ : undefined;
129
129
 
130
130
  return asset;
131
131
  }
@@ -282,8 +282,8 @@ export class BigIntArithmetics {
282
282
  !int && !dec
283
283
  ? '0.00'
284
284
  : int === '0'
285
- ? `${parseFloat(`0.${dec}`)}`.replace('.', decimalSeparator)
286
- : `${integer}${parseInt(dec) ? `${decimalSeparator}${dec.slice(0, decimal)}` : ''}`;
285
+ ? `${parseFloat(`0.${dec}`)}`.replace('.', decimalSeparator)
286
+ : `${integer}${parseInt(dec) ? `${decimalSeparator}${dec.slice(0, decimal)}` : ''}`;
287
287
 
288
288
  return `${currencyPosition === 'start' ? currency : ''}${parsedValue}${
289
289
  currencyPosition === 'end' ? currency : ''