Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@injectivelabs/utils

Package Overview
Dependencies
Maintainers
8
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injectivelabs/utils - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

20

CHANGELOG.md

@@ -6,5 +6,8 @@ # Change Log

## [0.0.22](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@0.0.21...@injectivelabs/utils@0.0.22) (2021-03-14)
**Note:** Version bump only for package @injectivelabs/utils
## [0.0.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@0.0.20...@injectivelabs/utils@0.0.21) (2021-03-02)
### Bug Fixes

@@ -14,9 +17,4 @@

## [0.0.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@0.0.19...@injectivelabs/utils@0.0.20) (2021-03-02)
### Features

@@ -26,9 +24,4 @@

## [0.0.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@0.0.11...@injectivelabs/utils@0.0.19) (2021-03-01)
### Bug Fixes

@@ -42,3 +35,2 @@

### Features

@@ -53,6 +45,2 @@

## [0.0.18](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@0.0.17...@injectivelabs/utils@0.0.18) (2021-02-25)

@@ -59,0 +47,0 @@

16

dist/classes/index.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StatusType = exports.Status = exports.HttpClient = exports.BigNumber = exports.BigNumberInWei = exports.BigNumberInBase = exports.LocalStorage = void 0;
var LocalStorage_1 = require("./LocalStorage");
Object.defineProperty(exports, "LocalStorage", { enumerable: true, get: function () { return __importDefault(LocalStorage_1).default; } });
Object.defineProperty(exports, "LocalStorage", { enumerable: true, get: function () { return LocalStorage_1.default; } });
var BigNumberInBase_1 = require("./BigNumberInBase");
Object.defineProperty(exports, "BigNumberInBase", { enumerable: true, get: function () { return __importDefault(BigNumberInBase_1).default; } });
Object.defineProperty(exports, "BigNumberInBase", { enumerable: true, get: function () { return BigNumberInBase_1.default; } });
var BigNumberInWei_1 = require("./BigNumberInWei");
Object.defineProperty(exports, "BigNumberInWei", { enumerable: true, get: function () { return __importDefault(BigNumberInWei_1).default; } });
Object.defineProperty(exports, "BigNumberInWei", { enumerable: true, get: function () { return BigNumberInWei_1.default; } });
var BigNumber_1 = require("./BigNumber");
Object.defineProperty(exports, "BigNumber", { enumerable: true, get: function () { return __importDefault(BigNumber_1).default; } });
Object.defineProperty(exports, "BigNumber", { enumerable: true, get: function () { return BigNumber_1.default; } });
var HttpClient_1 = require("./HttpClient");
Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function () { return __importDefault(HttpClient_1).default; } });
Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function () { return HttpClient_1.default; } });
var Status_1 = require("./Status");
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return __importDefault(Status_1).default; } });
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return Status_1.default; } });
Object.defineProperty(exports, "StatusType", { enumerable: true, get: function () { return Status_1.StatusType; } });
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatWalletAddress = void 0;
const formatWalletAddress = (address, substrLength = 6) => {
exports.formatWalletAddress = (address, substrLength = 6) => {
if (address.length <= 10) {

@@ -10,3 +10,2 @@ return address;

};
exports.formatWalletAddress = formatWalletAddress;
//# sourceMappingURL=formatters.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isServerSide = exports.sleep = void 0;
const sleep = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout));
exports.sleep = sleep;
const isServerSide = () => typeof window === 'undefined';
exports.isServerSide = isServerSide;
exports.sleep = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout));
exports.isServerSide = () => typeof window === 'undefined';
//# sourceMappingURL=helpers.js.map

@@ -10,3 +10,3 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};

@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

{
"name": "@injectivelabs/utils",
"description": "List of utils and helper functions that can be reused throughout Injective's projects.",
"version": "0.0.21",
"version": "0.0.22",
"license": "MIT",

@@ -30,4 +30,4 @@ "main": "dist/index.js",

"dependencies": {
"@injectivelabs/exceptions": "^0.0.17",
"@injectivelabs/ts-types": "^0.0.14",
"@injectivelabs/exceptions": "^0.0.18",
"@injectivelabs/ts-types": "^0.0.15",
"@injectivelabs/web3-contract-typings": "^0.1.12",

@@ -41,3 +41,3 @@ "@types/ethereumjs-util": "^6.1.0",

},
"gitHead": "0a26c1c8f60fb750629ff66e7c03b8c554c1ac12"
"gitHead": "9f1150a9fe5bdbd22b816926542234a6dd839793"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc