You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@cosmjs/cli

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmjs/cli - npm Package Compare versions

Comparing version

to
0.34.0

27

build/async.js

@@ -18,11 +18,21 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapInAsyncFunction = void 0;
exports.wrapInAsyncFunction = wrapInAsyncFunction;
const babylon = __importStar(require("babylon"));

@@ -70,3 +80,2 @@ const recast = __importStar(require("recast"));

}
exports.wrapInAsyncFunction = wrapInAsyncFunction;
//# sourceMappingURL=async.js.map

@@ -18,9 +18,19 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -30,5 +40,6 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

Object.defineProperty(exports, "__esModule", { value: true });
exports.main = exports.installedPackages = void 0;
const axios_1 = __importDefault(require("axios"));
exports.installedPackages = installedPackages;
exports.main = main;
const chalk_1 = __importDefault(require("chalk"));
const cross_fetch_1 = __importDefault(require("cross-fetch"));
const fs = __importStar(require("fs"));

@@ -52,3 +63,2 @@ const path_1 = require("path");

}
exports.installedPackages = installedPackages;
async function main(originalArgs) {

@@ -80,3 +90,3 @@ const args = yargs_1.default

console.info(chalk_1.default.green("Initializing session for you. Have fun!"));
const visiblePackages = (await installedPackages()).filter((name) => name.startsWith("@cosmjs/") || name === "axios");
const visiblePackages = (await installedPackages()).filter((name) => name.startsWith("@cosmjs/") || name === "cross-fetch");
console.info(chalk_1.default.yellow("The following packages have been installed and can be imported:"));

@@ -88,3 +98,3 @@ console.info(chalk_1.default.yellow(visiblePackages.join(", ")));

init += `
import axios from "axios";
import fetch from "cross-fetch";
import * as fs from "fs";

@@ -165,4 +175,4 @@

if (source.startsWith("https://")) {
const response = await axios_1.default.get(source);
init += response.data + "\n";
const response = await (0, cross_fetch_1.default)(source).then((r) => r.json());
init += response + "\n";
}

@@ -188,3 +198,2 @@ else {

}
exports.main = main;
//# sourceMappingURL=cli.js.map

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { TSError } from "ts-node";

@@ -3,0 +2,0 @@ import { Context } from "vm";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRecoverable = exports.executeJavaScriptAsync = exports.executeJavaScript = void 0;
exports.executeJavaScript = executeJavaScript;
exports.executeJavaScriptAsync = executeJavaScriptAsync;
exports.isRecoverable = isRecoverable;
const vm_1 = require("vm");

@@ -10,3 +12,2 @@ const async_1 = require("./async");

}
exports.executeJavaScript = executeJavaScript;
async function executeJavaScriptAsync(code, filename, context) {

@@ -20,11 +21,10 @@ const preparedCode = code.replace(/^\s*"use strict";/, "");

}
exports.executeJavaScriptAsync = executeJavaScriptAsync;
function isRecoverable(error) {
const recoveryCodes = new Set([
1003,
1005,
1109,
1126,
1160,
1161,
1003, // "Identifier expected."
1005, // "')' expected."
1109, // "Expression expected."
1126, // "Unexpected end of text."
1160, // "Unterminated template literal."
1161, // "Unterminated regular expression literal."
2355, // "A function whose declared type is neither 'void' nor 'any' must return a value."

@@ -34,3 +34,2 @@ ]);

}
exports.isRecoverable = isRecoverable;
//# sourceMappingURL=helpers.js.map

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { REPLServer } from "repl";

@@ -3,0 +2,0 @@ export declare class TsRepl {

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

ignoreDiagnostics: [
"1375",
"1375", // TS1375: 'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.
"1378", // TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher.

@@ -20,0 +20,0 @@ ],

{
"name": "@cosmjs/cli",
"version": "0.33.1",
"version": "0.34.0",
"description": "Command line interface",

@@ -19,4 +19,4 @@ "contributors": [

"scripts": {
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-examples": "prettier --write --loglevel warn \"./examples/**/*.ts\"",
"format": "prettier --write --log-level warn \"./src/**/*.ts\"",
"format-examples": "prettier --write --log-level warn \"./examples/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",

@@ -45,20 +45,20 @@ "lint": "eslint --max-warnings 0 \"./**/*.ts\" \"./*.js\"",

"dependencies": {
"@cosmjs/amino": "^0.33.1",
"@cosmjs/cosmwasm-stargate": "^0.33.1",
"@cosmjs/crypto": "^0.33.1",
"@cosmjs/encoding": "^0.33.1",
"@cosmjs/faucet-client": "^0.33.1",
"@cosmjs/math": "^0.33.1",
"@cosmjs/proto-signing": "^0.33.1",
"@cosmjs/stargate": "^0.33.1",
"@cosmjs/tendermint-rpc": "^0.33.1",
"@cosmjs/utils": "^0.33.1",
"axios": "^1.6.0",
"@cosmjs/amino": "^0.34.0",
"@cosmjs/cosmwasm-stargate": "^0.34.0",
"@cosmjs/crypto": "^0.34.0",
"@cosmjs/encoding": "^0.34.0",
"@cosmjs/faucet-client": "^0.34.0",
"@cosmjs/math": "^0.34.0",
"@cosmjs/proto-signing": "^0.34.0",
"@cosmjs/stargate": "^0.34.0",
"@cosmjs/tendermint-rpc": "^0.34.0",
"@cosmjs/utils": "^0.34.0",
"babylon": "^6.18.0",
"chalk": "^4",
"cosmjs-types": "^0.9.0",
"cross-fetch": "^4.1.0",
"diff": "^4",
"recast": "^0.20",
"ts-node": "^8",
"typescript": "~4.9",
"typescript": "~5.8",
"yargs": "^15.3.1"

@@ -70,21 +70,12 @@ },

"@types/diff": "^4",
"@types/eslint-plugin-prettier": "^3",
"@types/jasmine": "^4",
"@types/node": "*",
"@types/yargs": "^15.0.4",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"eslint": "^7.5",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-node": "^0.3.4",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"eslint": "^8.57.1",
"jasmine": "^4",
"jasmine-spec-reporter": "^6",
"nyc": "^15.1.0",
"prettier": "^2.8.1",
"prettier": "^3.5.3",
"source-map-support": "^0.5.19"
}
}

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