@injectivelabs/utils 1.20.68 → 1.20.69-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.
@@ -391,7 +391,7 @@ var HttpRestClient = class {
391
391
  if (abortError) throw abortError;
392
392
  throwIfAborted(signal);
393
393
  if (e instanceof __injectivelabs_exceptions.HttpRequestException) {
394
- if (e.code === http_status_codes.StatusCodes.REQUEST_TOO_LONG) throw e;
394
+ if (e.code === http_status_codes.StatusCodes.REQUEST_TOO_LONG || e.code === http_status_codes.StatusCodes.GONE) throw e;
395
395
  }
396
396
  if (attempt >= retries) throw e;
397
397
  await abortableSleep(delay * attempt, signal);
package/dist/cjs/http.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_HttpRestClient = require('./HttpRestClient-BIcHe0ig.cjs');
1
+ const require_HttpRestClient = require('./HttpRestClient-BNDzCs5y.cjs');
2
2
  require('./defineProperty-DAtJs5JQ.cjs');
3
3
 
4
4
  exports.HttpClient = require_HttpRestClient.HttpClient;
@@ -1,4 +1,4 @@
1
- const require_HttpRestClient = require('./HttpRestClient-BIcHe0ig.cjs');
1
+ const require_HttpRestClient = require('./HttpRestClient-BNDzCs5y.cjs');
2
2
  require('./defineProperty-DAtJs5JQ.cjs');
3
3
  const require_BigNumber = require('./BigNumber-DbDA4_xA.cjs');
4
4
  const require_time = require('./time-CPSnQ8xf.cjs');
@@ -389,7 +389,7 @@ var HttpRestClient = class {
389
389
  if (abortError) throw abortError;
390
390
  throwIfAborted(signal);
391
391
  if (e instanceof HttpRequestException) {
392
- if (e.code === StatusCodes.REQUEST_TOO_LONG) throw e;
392
+ if (e.code === StatusCodes.REQUEST_TOO_LONG || e.code === StatusCodes.GONE) throw e;
393
393
  }
394
394
  if (attempt >= retries) throw e;
395
395
  await abortableSleep(delay * attempt, signal);
package/dist/esm/http.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as HttpClient, t as HttpRestClient } from "./HttpRestClient-CWyiACSA.js";
1
+ import { n as HttpClient, t as HttpRestClient } from "./HttpRestClient-BE07-emg.js";
2
2
  import "./defineProperty-DiY4Kzl4.js";
3
3
 
4
4
  export { HttpClient, HttpRestClient };
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as combineAbortSignals, c as raceWithAbort, i as abortableSleep, l as throwIfAborted, n as HttpClient, o as createAbortError, r as AbortError, s as isAbortError, t as HttpRestClient } from "./HttpRestClient-CWyiACSA.js";
1
+ import { a as combineAbortSignals, c as raceWithAbort, i as abortableSleep, l as throwIfAborted, n as HttpClient, o as createAbortError, r as AbortError, s as isAbortError, t as HttpRestClient } from "./HttpRestClient-BE07-emg.js";
2
2
  import "./defineProperty-DiY4Kzl4.js";
3
3
  import { i as toHumanReadable, n as toBigNumber, r as toChainFormat, t as BigNumber_default } from "./BigNumber-DUr2WQBK.js";
4
4
  import { a as past24Hours, c as tomorrow, i as getUTCDateFromTimestamp, n as getEndDateStringFromTimeInSeconds, o as pastDays, r as getSecondsInDay, s as todayInSeconds, t as convertTimestampToMilliseconds } from "./time-BBEhFnvo.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/utils",
3
- "version": "1.20.68",
3
+ "version": "1.20.69-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": {
@@ -266,9 +266,9 @@
266
266
  "bignumber.js": "^9.3.1",
267
267
  "http-status-codes": "^2.3.0",
268
268
  "store2": "^2.14.4",
269
- "@injectivelabs/exceptions": "1.20.68",
270
- "@injectivelabs/ts-types": "1.20.68",
271
- "@injectivelabs/networks": "1.20.68"
269
+ "@injectivelabs/exceptions": "1.20.69-alpha.0",
270
+ "@injectivelabs/networks": "1.20.69-alpha.0",
271
+ "@injectivelabs/ts-types": "1.20.69-alpha.0"
272
272
  },
273
273
  "publishConfig": {
274
274
  "access": "public"