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

@aomex/console

Package Overview
Dependencies
Maintainers
0
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aomex/console - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [2.1.0](https://github.com/aomex/aomex/compare/v2.0.2...v2.1.0) (2024-07-28)
### Bug Fixes
* **console:** 帮助信息未国际化 ([d68370f](https://github.com/aomex/aomex/commit/d68370fa8c248d207db819d5cdda90b26981bb2f))
## [2.0.2](https://github.com/aomex/aomex/compare/v2.0.1...v2.0.2) (2024-07-27)

@@ -8,0 +19,0 @@

@@ -17,2 +17,12 @@ import { I18nMessage, I18n, Middleware, Next, MixinMiddleware, Validator } from '@aomex/core';

}>;
help: {
option: I18nMessage;
command: I18nMessage;
version: I18nMessage<{
scriptName: string;
}>;
no_usage: I18nMessage<{
command: string;
}>;
};
};

@@ -19,0 +29,0 @@ }

26

dist/index.js

@@ -5,3 +5,9 @@ // src/i18n/locales/zh-cn.ts

command_not_found: '\u6307\u4EE4 "{{command}}" \u4E0D\u5B58\u5728',
command_found_recommended: '\u6307\u4EE4 "{{command}}" \u4E0D\u5B58\u5728\uFF0C\u4F60\u662F\u8BF4 "aomex {{recommended}}" \u5417\uFF1F'
command_found_recommended: '\u6307\u4EE4 "{{command}}" \u4E0D\u5B58\u5728\uFF0C\u4F60\u662F\u8BF4 "aomex {{recommended}}" \u5417\uFF1F',
help: {
command: "[\u6307\u4EE4]",
option: "[\u9009\u9879]",
version: "\u663E\u793A{{scriptName}}\u7248\u672C\u53F7",
no_usage: '\u627E\u4E0D\u5230\u5173\u4E8E\u6307\u4EE4 "{{command}}" \u7684\u7528\u6CD5'
}
});

@@ -13,7 +19,13 @@

command_not_found: 'command "{{command}}" not found',
command_found_recommended: 'command "{{command}}" not found, did you mean "aomex {{recommended}}"?'
command_found_recommended: 'command "{{command}}" not found, did you mean "aomex {{recommended}}"?',
help: {
command: "[command]",
option: "[options]",
version: "show version of {{scriptName}}",
no_usage: 'no usage of command "{{command}}"'
}
});
// src/utils/meta.ts
var version = "2.0.2";
var version = "2.1.0";
var scriptName = "aomex";

@@ -208,3 +220,5 @@

} else {
const cli = yargs([]).locale(i18n3.getLocale()).scriptName(scriptName).usage(`${scriptName} [\u6307\u4EE4] [\u9009\u9879]`).describe("version", `\u663E\u793A${scriptName}\u7248\u672C\u53F7`).alias("v", "version").alias("h", "help");
const cli = yargs([]).locale(i18n3.getLocale()).scriptName(scriptName).usage(
`${scriptName} ${i18n3.t("console.help.command")} ${i18n3.t("console.help.option")}`
).describe("version", i18n3.t("console.help.version", { scriptName })).alias("v", "version").alias("h", "help");
const document = {};

@@ -230,3 +244,3 @@ await collectConsoleDocument({

if (!commandItem || commandItem.showInHelp === false) {
throw new Error(`\u627E\u4E0D\u5230\u5173\u4E8E\u6307\u4EE4 "${command}" \u7684\u7528\u6CD5`);
throw new Error(i18n3.t("console.help.no_usage", { command }));
}

@@ -236,3 +250,3 @@ const cli = yargs([]).locale(i18n3.getLocale()).scriptName(scriptName).version(false).help(false);

cli.usage(
`${scriptName} ${command} [\u9009\u9879]${description ? "\n\n" + styleText("bold", description) : ""}`
`${scriptName} ${command} ${i18n3.t("console.help.option")}${description ? "\n\n" + styleText("bold", description) : ""}`
);

@@ -239,0 +253,0 @@ parameters.forEach((parameter) => {

{
"name": "@aomex/console",
"version": "2.0.2",
"version": "2.1.0",
"description": "控制台应用",

@@ -40,4 +40,4 @@ "type": "module",

"yargs-parser": "^21.1.1",
"@aomex/internal-tools": "^2.0.2",
"@aomex/internal-file-import": "^2.0.2"
"@aomex/internal-file-import": "^2.1.0",
"@aomex/internal-tools": "^2.1.0"
},

@@ -47,3 +47,3 @@ "devDependencies": {

"@types/yargs-parser": "^21.0.0",
"@aomex/core": "^2.0.2"
"@aomex/core": "^2.1.0"
},

@@ -50,0 +50,0 @@ "scripts": {},

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