Socket
Socket
Sign inDemoInstall

@cosmjs/utils

Package Overview
Dependencies
0
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.20.0 to 0.21.0

1

build/assert.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assert = void 0;
function assert(condition, msg) {

@@ -4,0 +5,0 @@ if (!condition) {

8

build/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var assert_1 = require("./assert");
exports.assert = assert_1.assert;
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return assert_1.assert; } });
var sleep_1 = require("./sleep");
exports.sleep = sleep_1.sleep;
Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return sleep_1.sleep; } });
var typechecks_1 = require("./typechecks");
exports.isNonNullObject = typechecks_1.isNonNullObject;
exports.isUint8Array = typechecks_1.isUint8Array;
Object.defineProperty(exports, "isNonNullObject", { enumerable: true, get: function () { return typechecks_1.isNonNullObject; } });
Object.defineProperty(exports, "isUint8Array", { enumerable: true, get: function () { return typechecks_1.isUint8Array; } });
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sleep = void 0;
async function sleep(ms) {

@@ -4,0 +5,0 @@ return new Promise((resolve) => setTimeout(resolve, ms));

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isUint8Array = exports.isNonNullObject = void 0;
/**

@@ -4,0 +5,0 @@ * Checks if data is a non-null object (i.e. matches the TypeScript object type)

{
"name": "@cosmjs/utils",
"version": "0.20.0",
"version": "0.21.0",
"description": "Utility tools, primarily for testing code",

@@ -30,2 +30,3 @@ "contributors": [

"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"",
"lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix",
"move-types": "shx rm -r ./types/* && shx mv build/types/* ./types && rm -rf ./types/testdata && shx rm -f ./types/*.spec.d.ts",

@@ -37,2 +38,3 @@ "format-types": "prettier --write --loglevel warn \"./types/**/*.d.ts\"",

"test": "yarn build-or-skip && yarn test-node",
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js",

@@ -44,3 +46,3 @@ "test-edge": "yarn pack-web && karma start --single-run --browsers Edge",

},
"gitHead": "dd120779aac5743193965cdfd029979547947642"
"gitHead": "0d4ab069b2277cd186a2037ac3a88a2ab914fbaa"
}

@@ -5,10 +5,9 @@ # @cosmjs/utils

Utility functions independent of blockchain applications. Primarily used for testing
but stuff like `sleep` can also be useful at runtime.
Utility functions independent of blockchain applications. Primarily used for
testing but stuff like `sleep` can also be useful at runtime.
## License
This package is part of the cosmjs repository, licensed under the Apache
License 2.0 (see
[NOTICE](https://github.com/CosmWasm/cosmjs/blob/master/NOTICE) and
This package is part of the cosmjs repository, licensed under the Apache License
2.0 (see [NOTICE](https://github.com/CosmWasm/cosmjs/blob/master/NOTICE) and
[LICENSE](https://github.com/CosmWasm/cosmjs/blob/master/LICENSE)).

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc