Socket
Socket
Sign inDemoInstall

@arco-cli/core

Package Overview
Dependencies
315
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.2.0

15

dist/cli/commandRunner.js

@@ -9,3 +9,2 @@ "use strict";

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _ink = require("ink");
var _logger = _interopRequireDefault(require("@arco-cli/legacy/dist/logger"));

@@ -54,3 +53,5 @@ var _commandRegistry = require("@arco-cli/legacy/dist/cli/commandRegistry");

async runRenderHandler() {
if (!this.command.render) throw new Error('runRenderHandler expects command.render to be implemented');
if (!this.command.render) {
throw new Error('runRenderHandler expects command.render to be implemented');
}
const result = await this.command.render(this.args, this.flags);

@@ -62,6 +63,8 @@ _loader.default.off();

} = toRenderResult(result);
const {
waitUntilExit
} = (0, _ink.render)(data);
await waitUntilExit();
if (this.command.inkRender) {
const {
waitUntilExit
} = this.command.inkRender(data);
await (waitUntilExit === null || waitUntilExit === void 0 ? void 0 : waitUntilExit());
}
return _logger.default.exitAfterFlush(code, this.commandName);

@@ -68,0 +71,0 @@ }

8

package.json
{
"name": "@arco-cli/core",
"version": "2.1.0",
"version": "2.2.0",
"homepage": "https://github.com/arco-design/arco-cli",

@@ -20,3 +20,3 @@ "repository": "https://github.com/arco-design/arco-cli",

"dependencies": {
"@arco-cli/legacy": "^2.1.0",
"@arco-cli/legacy": "^2.2.0",
"@arco-cli/stone": "^2.0.0-beta.0",

@@ -35,3 +35,2 @@ "@babel/runtime": "^7.20.6",

"graphql-subscriptions": "^1.2.1",
"ink": "^3.2.0",
"lodash": "^4.17.21",

@@ -41,3 +40,2 @@ "node-fetch": "^3.3.0",

"pretty-time": "^1.1.0",
"react": "~17",
"yargs": "^17.6.2"

@@ -48,3 +46,3 @@ },

},
"gitHead": "097e94b44368c872ef7d414ceeb605e135ccbec9"
"gitHead": "e9c2cd3a0de0884e13e36d3b5a81d27f362a8daa"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc