@injectivelabs/utils 1.16.38-alpha.5 → 1.16.39-alpha.0
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/cjs/index.cjs +3 -2
- package/dist/esm/index.js +1 -1
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -28,7 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
const require_constants = require('./constants-DEbTiKzu.cjs');
|
|
29
29
|
let axios = require("axios");
|
|
30
30
|
axios = __toESM(axios);
|
|
31
|
-
let
|
|
31
|
+
let store2 = require("store2");
|
|
32
|
+
store2 = __toESM(store2);
|
|
32
33
|
let http_status_codes = require("http-status-codes");
|
|
33
34
|
let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
|
|
34
35
|
|
|
@@ -327,7 +328,7 @@ var HttpClient = class {
|
|
|
327
328
|
var LocalStorage = class {
|
|
328
329
|
constructor(namespace) {
|
|
329
330
|
_defineProperty(this, "storage", void 0);
|
|
330
|
-
this.storage =
|
|
331
|
+
this.storage = store2.default.namespace(namespace);
|
|
331
332
|
}
|
|
332
333
|
get(key, defaultValue = {}) {
|
|
333
334
|
return this.storage.get(key) || defaultValue;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as getDefaultStdFee, a as DEFAULT_BRIDGE_FEE_PRICE, b as toChainFormat, c as DEFAULT_GAS_LIMIT, d as DEFAULT_STD_FEE_BY_DENOM, f as DEFAULT_TIMESTAMP_TIMEOUT_MS, g as ZERO_ADDRESS, h as INJ_DENOM, i as DEFAULT_BRIDGE_FEE_DENOM, l as DEFAULT_GAS_PRICE, m as INJECTIVE_DENOM, n as DEFAULT_BLOCK_TIME_IN_SECONDS, o as DEFAULT_EXCHANGE_LIMIT, p as DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, r as DEFAULT_BRIDGE_FEE_AMOUNT, s as DEFAULT_FEE_DENOM, t as DEFAULT_BLOCK_TIMEOUT_HEIGHT, u as DEFAULT_IBC_GAS_LIMIT, v as BigNumber_default, x as toHumanReadable, y as toBigNumber } from "./constants-BxcSsKjm.js";
|
|
2
2
|
import axios from "axios";
|
|
3
|
-
import
|
|
3
|
+
import store from "store2";
|
|
4
4
|
import { StatusCodes } from "http-status-codes";
|
|
5
5
|
import { HttpRequestException, HttpRequestMethod, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/utils",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.39-alpha.0",
|
|
4
4
|
"description": "List of utils and helper functions that can be reused throughout Injective's projects.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"dist"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@bangjelkoski/store2": "^2.14.3",
|
|
62
61
|
"axios": "^1.13.2",
|
|
63
62
|
"bignumber.js": "^9.3.1",
|
|
64
63
|
"http-status-codes": "^2.3.0",
|
|
65
|
-
"
|
|
66
|
-
"@injectivelabs/
|
|
67
|
-
"@injectivelabs/ts-types": "1.16.
|
|
64
|
+
"store2": "^2.14.4",
|
|
65
|
+
"@injectivelabs/networks": "1.16.39-alpha.0",
|
|
66
|
+
"@injectivelabs/ts-types": "1.16.39-alpha.0",
|
|
67
|
+
"@injectivelabs/exceptions": "1.16.39-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|