@orderly.network/utils 0.0.44 → 0.0.46
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/dist/index.js +109 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,2 +1,110 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var src_exports = {};
|
|
32
|
+
__export(src_exports, {
|
|
33
|
+
Decimal: () => decimal_default,
|
|
34
|
+
commify: () => commify,
|
|
35
|
+
cutNumber: () => cutNumber,
|
|
36
|
+
dayjs: () => import_dayjs.default,
|
|
37
|
+
getPrecisionByNumber: () => getPrecisionByNumber,
|
|
38
|
+
hex2int: () => hex2int,
|
|
39
|
+
int2hex: () => int2hex,
|
|
40
|
+
numberToHumanStyle: () => numberToHumanStyle,
|
|
41
|
+
praseChainId: () => praseChainId,
|
|
42
|
+
timeConvertString: () => timeConvertString,
|
|
43
|
+
zero: () => zero
|
|
44
|
+
});
|
|
45
|
+
module.exports = __toCommonJS(src_exports);
|
|
46
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
47
|
+
|
|
48
|
+
// src/decimal.ts
|
|
49
|
+
var import_decimal = __toESM(require("decimal.js-light"));
|
|
50
|
+
import_decimal.default.set({
|
|
51
|
+
rounding: import_decimal.default.ROUND_DOWN
|
|
52
|
+
});
|
|
53
|
+
var decimal_default = import_decimal.default;
|
|
54
|
+
var cutNumber = (num, lenght) => {
|
|
55
|
+
};
|
|
56
|
+
var zero = new import_decimal.default(0);
|
|
57
|
+
var commify = (num) => {
|
|
58
|
+
var parts = num.toString().split(".");
|
|
59
|
+
const numberPart = parts[0];
|
|
60
|
+
const decimalPart = parts[1];
|
|
61
|
+
const thousands = /\B(?=(\d{3})+(?!\d))/g;
|
|
62
|
+
return numberPart.replace(thousands, ",") + (decimalPart ? "." + decimalPart : "");
|
|
63
|
+
};
|
|
64
|
+
var getPrecisionByNumber = (num) => {
|
|
65
|
+
const parts = num.toString().split(".");
|
|
66
|
+
return parts[1] ? parts[1].length : 0;
|
|
67
|
+
};
|
|
68
|
+
function numberToHumanStyle(number, decimalPlaces = 2) {
|
|
69
|
+
const abbreviations = ["", "K", "M", "B", "T"];
|
|
70
|
+
let index = 0;
|
|
71
|
+
while (number >= 1e3 && index < abbreviations.length - 1) {
|
|
72
|
+
number /= 1e3;
|
|
73
|
+
index++;
|
|
74
|
+
}
|
|
75
|
+
const roundedNumber = number.toFixed(decimalPlaces);
|
|
76
|
+
return `${roundedNumber}${abbreviations[index]}`;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// src/dateTime.ts
|
|
80
|
+
var timeConvertString = (time) => {
|
|
81
|
+
time /= 1e3;
|
|
82
|
+
const h = Math.floor(time / 3600);
|
|
83
|
+
const m = Math.floor(time / 60 % 60);
|
|
84
|
+
const s = Math.floor(time % 60);
|
|
85
|
+
return [h, m, s];
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/chain.ts
|
|
89
|
+
var hex2int = (chainId) => parseInt(chainId);
|
|
90
|
+
var int2hex = (chainId) => `0x${chainId.toString(16)}`;
|
|
91
|
+
var praseChainId = (chainId) => {
|
|
92
|
+
if (typeof chainId === "string")
|
|
93
|
+
return hex2int(chainId);
|
|
94
|
+
return chainId;
|
|
95
|
+
};
|
|
96
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
97
|
+
0 && (module.exports = {
|
|
98
|
+
Decimal,
|
|
99
|
+
commify,
|
|
100
|
+
cutNumber,
|
|
101
|
+
dayjs,
|
|
102
|
+
getPrecisionByNumber,
|
|
103
|
+
hex2int,
|
|
104
|
+
int2hex,
|
|
105
|
+
numberToHumanStyle,
|
|
106
|
+
praseChainId,
|
|
107
|
+
timeConvertString,
|
|
108
|
+
zero
|
|
109
|
+
});
|
|
2
110
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/decimal.ts","../src/dateTime.ts","../src/chain.ts"],"sourcesContent":["export { default as dayjs } from \"dayjs\";\n\nexport { default as Decimal } from \"./decimal\";\nexport * from \"./decimal\";\nexport * from \"./dateTime\";\nexport * from \"./chain\";\n","import Decimal from \"decimal.js-light\";\n\nDecimal.set({\n rounding: Decimal.ROUND_DOWN,\n});\n\nexport default Decimal;\n\nexport const cutNumber = (num: number | string, lenght: number) => {};\n\nexport const zero = new Decimal(0);\n\nexport const commify = (num: number | string): string => {\n var parts = num.toString().split(\".\");\n const numberPart = parts[0];\n const decimalPart = parts[1];\n const thousands = /\\B(?=(\\d{3})+(?!\\d))/g;\n return (\n numberPart.replace(thousands, \",\") + (decimalPart ? \".\" + decimalPart : \"\")\n );\n};\n\nexport const getPrecisionByNumber = (num: number | string): number => {\n // if(Math.floor(num) === num) return 0;\n const parts = num.toString().split(\".\");\n return parts[1] ? parts[1].length : 0;\n};\n\n/**\n *\n * @example\n * const number1 = 12345;\n * const number2 = 987654321;\n *\n * console.log(numberToHumanStyle(number1)); // Output: \"12.35K\"\n * console.log(numberToHumanStyle(number2)); // Output: \"987.65M\"\n */\nexport function numberToHumanStyle(\n number: number,\n decimalPlaces: number = 2\n): string {\n const abbreviations = [\"\", \"K\", \"M\", \"B\", \"T\"];\n\n let index = 0;\n while (number >= 1000 && index < abbreviations.length - 1) {\n number /= 1000;\n index++;\n }\n\n const roundedNumber = number.toFixed(decimalPlaces);\n\n return `${roundedNumber}${abbreviations[index]}`;\n}\n","export const timeConvertString = (time: number): number[] => {\n time /= 1000;\n const h = Math.floor(time / 3600);\n const m = Math.floor((time / 60) % 60);\n const s = Math.floor(time % 60);\n // return result = h + \"小时\" + m + \"分钟\" + s + \"秒\";\n return [h, m, s];\n};\n","export const hex2int = (chainId: string): number => parseInt(chainId);\nexport const int2hex = (chainId: number): string => `0x${chainId.toString(16)}`;\nexport const praseChainId = (chainId: string | number): number => {\n if (typeof chainId === \"string\") return hex2int(chainId);\n return chainId;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/decimal.ts","../src/dateTime.ts","../src/chain.ts"],"sourcesContent":["export { default as dayjs } from \"dayjs\";\n\nexport { default as Decimal } from \"./decimal\";\nexport * from \"./decimal\";\nexport * from \"./dateTime\";\nexport * from \"./chain\";\n","import Decimal from \"decimal.js-light\";\n\nDecimal.set({\n rounding: Decimal.ROUND_DOWN,\n});\n\nexport default Decimal;\n\nexport const cutNumber = (num: number | string, lenght: number) => {};\n\nexport const zero = new Decimal(0);\n\nexport const commify = (num: number | string): string => {\n var parts = num.toString().split(\".\");\n const numberPart = parts[0];\n const decimalPart = parts[1];\n const thousands = /\\B(?=(\\d{3})+(?!\\d))/g;\n return (\n numberPart.replace(thousands, \",\") + (decimalPart ? \".\" + decimalPart : \"\")\n );\n};\n\nexport const getPrecisionByNumber = (num: number | string): number => {\n // if(Math.floor(num) === num) return 0;\n const parts = num.toString().split(\".\");\n return parts[1] ? parts[1].length : 0;\n};\n\n/**\n *\n * @example\n * const number1 = 12345;\n * const number2 = 987654321;\n *\n * console.log(numberToHumanStyle(number1)); // Output: \"12.35K\"\n * console.log(numberToHumanStyle(number2)); // Output: \"987.65M\"\n */\nexport function numberToHumanStyle(\n number: number,\n decimalPlaces: number = 2\n): string {\n const abbreviations = [\"\", \"K\", \"M\", \"B\", \"T\"];\n\n let index = 0;\n while (number >= 1000 && index < abbreviations.length - 1) {\n number /= 1000;\n index++;\n }\n\n const roundedNumber = number.toFixed(decimalPlaces);\n\n return `${roundedNumber}${abbreviations[index]}`;\n}\n","export const timeConvertString = (time: number): number[] => {\n time /= 1000;\n const h = Math.floor(time / 3600);\n const m = Math.floor((time / 60) % 60);\n const s = Math.floor(time % 60);\n // return result = h + \"小时\" + m + \"分钟\" + s + \"秒\";\n return [h, m, s];\n};\n","export const hex2int = (chainId: string): number => parseInt(chainId);\nexport const int2hex = (chainId: number): string => `0x${chainId.toString(16)}`;\nexport const praseChainId = (chainId: string | number): number => {\n if (typeof chainId === \"string\") return hex2int(chainId);\n return chainId;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAiC;;;ACAjC,qBAAoB;AAEpB,eAAAA,QAAQ,IAAI;AAAA,EACV,UAAU,eAAAA,QAAQ;AACpB,CAAC;AAED,IAAO,kBAAQ,eAAAA;AAER,IAAM,YAAY,CAAC,KAAsB,WAAmB;AAAC;AAE7D,IAAM,OAAO,IAAI,eAAAA,QAAQ,CAAC;AAE1B,IAAM,UAAU,CAAC,QAAiC;AACvD,MAAI,QAAQ,IAAI,SAAS,EAAE,MAAM,GAAG;AACpC,QAAM,aAAa,MAAM,CAAC;AAC1B,QAAM,cAAc,MAAM,CAAC;AAC3B,QAAM,YAAY;AAClB,SACE,WAAW,QAAQ,WAAW,GAAG,KAAK,cAAc,MAAM,cAAc;AAE5E;AAEO,IAAM,uBAAuB,CAAC,QAAiC;AAEpE,QAAM,QAAQ,IAAI,SAAS,EAAE,MAAM,GAAG;AACtC,SAAO,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,SAAS;AACtC;AAWO,SAAS,mBACd,QACA,gBAAwB,GAChB;AACR,QAAM,gBAAgB,CAAC,IAAI,KAAK,KAAK,KAAK,GAAG;AAE7C,MAAI,QAAQ;AACZ,SAAO,UAAU,OAAQ,QAAQ,cAAc,SAAS,GAAG;AACzD,cAAU;AACV;AAAA,EACF;AAEA,QAAM,gBAAgB,OAAO,QAAQ,aAAa;AAElD,SAAO,GAAG,aAAa,GAAG,cAAc,KAAK,CAAC;AAChD;;;ACpDO,IAAM,oBAAoB,CAAC,SAA2B;AAC3D,UAAQ;AACR,QAAM,IAAI,KAAK,MAAM,OAAO,IAAI;AAChC,QAAM,IAAI,KAAK,MAAO,OAAO,KAAM,EAAE;AACrC,QAAM,IAAI,KAAK,MAAM,OAAO,EAAE;AAE9B,SAAO,CAAC,GAAG,GAAG,CAAC;AACjB;;;ACPO,IAAM,UAAU,CAAC,YAA4B,SAAS,OAAO;AAC7D,IAAM,UAAU,CAAC,YAA4B,KAAK,QAAQ,SAAS,EAAE,CAAC;AACtE,IAAM,eAAe,CAAC,YAAqC;AAChE,MAAI,OAAO,YAAY;AAAU,WAAO,QAAQ,OAAO;AACvD,SAAO;AACT;","names":["Decimal"]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,65 @@
|
|
|
1
|
-
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { default as default2 } from "dayjs";
|
|
3
|
+
|
|
4
|
+
// src/decimal.ts
|
|
5
|
+
import Decimal from "decimal.js-light";
|
|
6
|
+
Decimal.set({
|
|
7
|
+
rounding: Decimal.ROUND_DOWN
|
|
8
|
+
});
|
|
9
|
+
var decimal_default = Decimal;
|
|
10
|
+
var cutNumber = (num, lenght) => {
|
|
11
|
+
};
|
|
12
|
+
var zero = new Decimal(0);
|
|
13
|
+
var commify = (num) => {
|
|
14
|
+
var parts = num.toString().split(".");
|
|
15
|
+
const numberPart = parts[0];
|
|
16
|
+
const decimalPart = parts[1];
|
|
17
|
+
const thousands = /\B(?=(\d{3})+(?!\d))/g;
|
|
18
|
+
return numberPart.replace(thousands, ",") + (decimalPart ? "." + decimalPart : "");
|
|
19
|
+
};
|
|
20
|
+
var getPrecisionByNumber = (num) => {
|
|
21
|
+
const parts = num.toString().split(".");
|
|
22
|
+
return parts[1] ? parts[1].length : 0;
|
|
23
|
+
};
|
|
24
|
+
function numberToHumanStyle(number, decimalPlaces = 2) {
|
|
25
|
+
const abbreviations = ["", "K", "M", "B", "T"];
|
|
26
|
+
let index = 0;
|
|
27
|
+
while (number >= 1e3 && index < abbreviations.length - 1) {
|
|
28
|
+
number /= 1e3;
|
|
29
|
+
index++;
|
|
30
|
+
}
|
|
31
|
+
const roundedNumber = number.toFixed(decimalPlaces);
|
|
32
|
+
return `${roundedNumber}${abbreviations[index]}`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// src/dateTime.ts
|
|
36
|
+
var timeConvertString = (time) => {
|
|
37
|
+
time /= 1e3;
|
|
38
|
+
const h = Math.floor(time / 3600);
|
|
39
|
+
const m = Math.floor(time / 60 % 60);
|
|
40
|
+
const s = Math.floor(time % 60);
|
|
41
|
+
return [h, m, s];
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// src/chain.ts
|
|
45
|
+
var hex2int = (chainId) => parseInt(chainId);
|
|
46
|
+
var int2hex = (chainId) => `0x${chainId.toString(16)}`;
|
|
47
|
+
var praseChainId = (chainId) => {
|
|
48
|
+
if (typeof chainId === "string")
|
|
49
|
+
return hex2int(chainId);
|
|
50
|
+
return chainId;
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
decimal_default as Decimal,
|
|
54
|
+
commify,
|
|
55
|
+
cutNumber,
|
|
56
|
+
default2 as dayjs,
|
|
57
|
+
getPrecisionByNumber,
|
|
58
|
+
hex2int,
|
|
59
|
+
int2hex,
|
|
60
|
+
numberToHumanStyle,
|
|
61
|
+
praseChainId,
|
|
62
|
+
timeConvertString,
|
|
63
|
+
zero
|
|
64
|
+
};
|
|
2
65
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/decimal.ts","../src/dateTime.ts","../src/chain.ts"],"sourcesContent":["export { default as dayjs } from \"dayjs\";\n\nexport { default as Decimal } from \"./decimal\";\nexport * from \"./decimal\";\nexport * from \"./dateTime\";\nexport * from \"./chain\";\n","import Decimal from \"decimal.js-light\";\n\nDecimal.set({\n rounding: Decimal.ROUND_DOWN,\n});\n\nexport default Decimal;\n\nexport const cutNumber = (num: number | string, lenght: number) => {};\n\nexport const zero = new Decimal(0);\n\nexport const commify = (num: number | string): string => {\n var parts = num.toString().split(\".\");\n const numberPart = parts[0];\n const decimalPart = parts[1];\n const thousands = /\\B(?=(\\d{3})+(?!\\d))/g;\n return (\n numberPart.replace(thousands, \",\") + (decimalPart ? \".\" + decimalPart : \"\")\n );\n};\n\nexport const getPrecisionByNumber = (num: number | string): number => {\n // if(Math.floor(num) === num) return 0;\n const parts = num.toString().split(\".\");\n return parts[1] ? parts[1].length : 0;\n};\n\n/**\n *\n * @example\n * const number1 = 12345;\n * const number2 = 987654321;\n *\n * console.log(numberToHumanStyle(number1)); // Output: \"12.35K\"\n * console.log(numberToHumanStyle(number2)); // Output: \"987.65M\"\n */\nexport function numberToHumanStyle(\n number: number,\n decimalPlaces: number = 2\n): string {\n const abbreviations = [\"\", \"K\", \"M\", \"B\", \"T\"];\n\n let index = 0;\n while (number >= 1000 && index < abbreviations.length - 1) {\n number /= 1000;\n index++;\n }\n\n const roundedNumber = number.toFixed(decimalPlaces);\n\n return `${roundedNumber}${abbreviations[index]}`;\n}\n","export const timeConvertString = (time: number): number[] => {\n time /= 1000;\n const h = Math.floor(time / 3600);\n const m = Math.floor((time / 60) % 60);\n const s = Math.floor(time % 60);\n // return result = h + \"小时\" + m + \"分钟\" + s + \"秒\";\n return [h, m, s];\n};\n","export const hex2int = (chainId: string): number => parseInt(chainId);\nexport const int2hex = (chainId: number): string => `0x${chainId.toString(16)}`;\nexport const praseChainId = (chainId: string | number): number => {\n if (typeof chainId === \"string\") return hex2int(chainId);\n return chainId;\n};\n"],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/decimal.ts","../src/dateTime.ts","../src/chain.ts"],"sourcesContent":["export { default as dayjs } from \"dayjs\";\n\nexport { default as Decimal } from \"./decimal\";\nexport * from \"./decimal\";\nexport * from \"./dateTime\";\nexport * from \"./chain\";\n","import Decimal from \"decimal.js-light\";\n\nDecimal.set({\n rounding: Decimal.ROUND_DOWN,\n});\n\nexport default Decimal;\n\nexport const cutNumber = (num: number | string, lenght: number) => {};\n\nexport const zero = new Decimal(0);\n\nexport const commify = (num: number | string): string => {\n var parts = num.toString().split(\".\");\n const numberPart = parts[0];\n const decimalPart = parts[1];\n const thousands = /\\B(?=(\\d{3})+(?!\\d))/g;\n return (\n numberPart.replace(thousands, \",\") + (decimalPart ? \".\" + decimalPart : \"\")\n );\n};\n\nexport const getPrecisionByNumber = (num: number | string): number => {\n // if(Math.floor(num) === num) return 0;\n const parts = num.toString().split(\".\");\n return parts[1] ? parts[1].length : 0;\n};\n\n/**\n *\n * @example\n * const number1 = 12345;\n * const number2 = 987654321;\n *\n * console.log(numberToHumanStyle(number1)); // Output: \"12.35K\"\n * console.log(numberToHumanStyle(number2)); // Output: \"987.65M\"\n */\nexport function numberToHumanStyle(\n number: number,\n decimalPlaces: number = 2\n): string {\n const abbreviations = [\"\", \"K\", \"M\", \"B\", \"T\"];\n\n let index = 0;\n while (number >= 1000 && index < abbreviations.length - 1) {\n number /= 1000;\n index++;\n }\n\n const roundedNumber = number.toFixed(decimalPlaces);\n\n return `${roundedNumber}${abbreviations[index]}`;\n}\n","export const timeConvertString = (time: number): number[] => {\n time /= 1000;\n const h = Math.floor(time / 3600);\n const m = Math.floor((time / 60) % 60);\n const s = Math.floor(time % 60);\n // return result = h + \"小时\" + m + \"分钟\" + s + \"秒\";\n return [h, m, s];\n};\n","export const hex2int = (chainId: string): number => parseInt(chainId);\nexport const int2hex = (chainId: number): string => `0x${chainId.toString(16)}`;\nexport const praseChainId = (chainId: string | number): number => {\n if (typeof chainId === \"string\") return hex2int(chainId);\n return chainId;\n};\n"],"mappings":";AAAA,SAAoB,WAAXA,gBAAwB;;;ACAjC,OAAO,aAAa;AAEpB,QAAQ,IAAI;AAAA,EACV,UAAU,QAAQ;AACpB,CAAC;AAED,IAAO,kBAAQ;AAER,IAAM,YAAY,CAAC,KAAsB,WAAmB;AAAC;AAE7D,IAAM,OAAO,IAAI,QAAQ,CAAC;AAE1B,IAAM,UAAU,CAAC,QAAiC;AACvD,MAAI,QAAQ,IAAI,SAAS,EAAE,MAAM,GAAG;AACpC,QAAM,aAAa,MAAM,CAAC;AAC1B,QAAM,cAAc,MAAM,CAAC;AAC3B,QAAM,YAAY;AAClB,SACE,WAAW,QAAQ,WAAW,GAAG,KAAK,cAAc,MAAM,cAAc;AAE5E;AAEO,IAAM,uBAAuB,CAAC,QAAiC;AAEpE,QAAM,QAAQ,IAAI,SAAS,EAAE,MAAM,GAAG;AACtC,SAAO,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,SAAS;AACtC;AAWO,SAAS,mBACd,QACA,gBAAwB,GAChB;AACR,QAAM,gBAAgB,CAAC,IAAI,KAAK,KAAK,KAAK,GAAG;AAE7C,MAAI,QAAQ;AACZ,SAAO,UAAU,OAAQ,QAAQ,cAAc,SAAS,GAAG;AACzD,cAAU;AACV;AAAA,EACF;AAEA,QAAM,gBAAgB,OAAO,QAAQ,aAAa;AAElD,SAAO,GAAG,aAAa,GAAG,cAAc,KAAK,CAAC;AAChD;;;ACpDO,IAAM,oBAAoB,CAAC,SAA2B;AAC3D,UAAQ;AACR,QAAM,IAAI,KAAK,MAAM,OAAO,IAAI;AAChC,QAAM,IAAI,KAAK,MAAO,OAAO,KAAM,EAAE;AACrC,QAAM,IAAI,KAAK,MAAM,OAAO,EAAE;AAE9B,SAAO,CAAC,GAAG,GAAG,CAAC;AACjB;;;ACPO,IAAM,UAAU,CAAC,YAA4B,SAAS,OAAO;AAC7D,IAAM,UAAU,CAAC,YAA4B,KAAK,QAAQ,SAAS,EAAE,CAAC;AACtE,IAAM,eAAe,CAAC,YAAqC;AAChE,MAAI,OAAO,YAAY;AAAU,WAAO,QAAQ,OAAO;AACvD,SAAO;AACT;","names":["default"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderly.network/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"jest": "^29.6.1",
|
|
19
19
|
"tsup": "^7.1.0",
|
|
20
20
|
"typescript": "^5.1.6",
|
|
21
|
-
"tsconfig": "0.0.
|
|
21
|
+
"tsconfig": "0.0.49"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"dayjs": "^1.11.9",
|