@lifi/types 2.5.1 → 2.5.2

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.5.2](https://github.com/lifinance/types/compare/v2.5.1...v2.5.2) (2023-03-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * set to two decimals ([#142](https://github.com/lifinance/types/issues/142)) ([ef2fe3f](https://github.com/lifinance/types/commit/ef2fe3f41f0258d1358908b10bc8ef0d40c36f80))
11
+
5
12
  ### [2.5.1](https://github.com/lifinance/types/compare/v2.5.0...v2.5.1) (2023-03-14)
6
13
 
7
14
 
package/dist/api.d.ts CHANGED
@@ -50,11 +50,8 @@ export interface AllowDenyPrefer {
50
50
  deny?: string[];
51
51
  prefer?: string[];
52
52
  }
53
- export declare enum InsuranceState {
54
- INSURED = "INSURED",
55
- INSURABLE = "INSURABLE",
56
- NOT_INSURABLE = "NOT_INSURABLE"
57
- }
53
+ export declare const _InsuranceState: readonly ["INSURED", "INSURABLE", "NOT_INSURABLE"];
54
+ export type InsuranceState = (typeof _InsuranceState)[number];
58
55
  export interface Insurance {
59
56
  state: InsuranceState;
60
57
  feeAmountUsd: string;
package/dist/api.js CHANGED
@@ -1,10 +1,9 @@
1
1
  export const Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'];
2
- export var InsuranceState;
3
- (function (InsuranceState) {
4
- InsuranceState["INSURED"] = "INSURED";
5
- InsuranceState["INSURABLE"] = "INSURABLE";
6
- InsuranceState["NOT_INSURABLE"] = "NOT_INSURABLE";
7
- })(InsuranceState || (InsuranceState = {}));
2
+ export const _InsuranceState = [
3
+ 'INSURED',
4
+ 'INSURABLE',
5
+ 'NOT_INSURABLE',
6
+ ];
8
7
  const _StatusMessage = [
9
8
  // The transaction was not found -- likely not mined yet
10
9
  'NOT_FOUND',
package/dist/cjs/api.d.ts CHANGED
@@ -50,11 +50,8 @@ export interface AllowDenyPrefer {
50
50
  deny?: string[];
51
51
  prefer?: string[];
52
52
  }
53
- export declare enum InsuranceState {
54
- INSURED = "INSURED",
55
- INSURABLE = "INSURABLE",
56
- NOT_INSURABLE = "NOT_INSURABLE"
57
- }
53
+ export declare const _InsuranceState: readonly ["INSURED", "INSURABLE", "NOT_INSURABLE"];
54
+ export type InsuranceState = (typeof _InsuranceState)[number];
58
55
  export interface Insurance {
59
56
  state: InsuranceState;
60
57
  feeAmountUsd: string;
package/dist/cjs/api.js CHANGED
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSubstatusFailed = exports.isSubstatusDone = exports.isSubstatusPending = exports.InsuranceState = exports.Orders = void 0;
3
+ exports.isSubstatusFailed = exports.isSubstatusDone = exports.isSubstatusPending = exports._InsuranceState = exports.Orders = void 0;
4
4
  exports.Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'];
5
- var InsuranceState;
6
- (function (InsuranceState) {
7
- InsuranceState["INSURED"] = "INSURED";
8
- InsuranceState["INSURABLE"] = "INSURABLE";
9
- InsuranceState["NOT_INSURABLE"] = "NOT_INSURABLE";
10
- })(InsuranceState = exports.InsuranceState || (exports.InsuranceState = {}));
5
+ exports._InsuranceState = [
6
+ 'INSURED',
7
+ 'INSURABLE',
8
+ 'NOT_INSURABLE',
9
+ ];
11
10
  const _StatusMessage = [
12
11
  // The transaction was not found -- likely not mined yet
13
12
  'NOT_FOUND',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",