@aomex/console
Advanced tools
Comparing version 1.0.1 to 1.0.2
# @aomex/console | ||
## 1.0.2 | ||
### Patch Changes | ||
- Updated dependencies []: | ||
- @aomex/internal-file-import@1.0.2 | ||
- @aomex/internal-tools@1.0.2 | ||
## 1.0.1 | ||
@@ -4,0 +12,0 @@ |
@@ -30,3 +30,3 @@ // src/i18n/locales/zh-cn.ts | ||
// src/utils/meta.ts | ||
var version = "1.0.1"; | ||
var version = "1.0.2"; | ||
var scriptName = "aomex"; | ||
@@ -71,4 +71,3 @@ | ||
const onDocumentItemLoop = async (commandName, middlewareList2) => { | ||
if (!commandName || !document[commandName]) | ||
return; | ||
if (!commandName || !document[commandName]) return; | ||
const injectors = middlewareList2.map((middleware3) => { | ||
@@ -94,4 +93,3 @@ return middleware3 instanceof ConsoleMiddleware ? middleware3["help"]() : {}; | ||
const postDocumentItemLoop = async (commandName, middlewareList2) => { | ||
if (!commandName || !document[commandName]) | ||
return; | ||
if (!commandName || !document[commandName]) return; | ||
const injectors = [...middlewareList2].reverse().map((middleware3) => { | ||
@@ -185,6 +183,4 @@ return middleware3 instanceof ConsoleMiddleware ? middleware3["help"]() : {}; | ||
var getDistance = (a, b) => { | ||
if (a.length === 0) | ||
return b.length; | ||
if (b.length === 0) | ||
return a.length; | ||
if (a.length === 0) return b.length; | ||
if (b.length === 0) return a.length; | ||
const matrix = []; | ||
@@ -240,4 +236,3 @@ let i; | ||
Object.entries(document).forEach(([commandName, commandItem]) => { | ||
if (commandItem.show === false) | ||
return; | ||
if (commandItem.show === false) return; | ||
cli.command(chalk.yellow(commandName), commandItem.summary || ""); | ||
@@ -244,0 +239,0 @@ }); |
{ | ||
"name": "@aomex/console", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "控制台应用", | ||
@@ -38,4 +38,4 @@ "type": "module", | ||
"yargs-parser": "^21.1.1", | ||
"@aomex/internal-tools": "^1.0.1", | ||
"@aomex/internal-file-import": "^1.0.1" | ||
"@aomex/internal-tools": "^1.0.2", | ||
"@aomex/internal-file-import": "^1.0.2" | ||
}, | ||
@@ -45,3 +45,3 @@ "devDependencies": { | ||
"@types/yargs-parser": "^21.0.0", | ||
"@aomex/core": "^1.0.1" | ||
"@aomex/core": "^1.0.2" | ||
}, | ||
@@ -48,0 +48,0 @@ "scripts": {}, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54217
638