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

@aomex/console

Package Overview
Dependencies
Maintainers
1
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 0.0.2 to 0.0.3

11

CHANGELOG.md
# @aomex/console
## 0.0.3
### Patch Changes
- [`ee5f8ca`](https://github.com/aomex/aomex/commit/ee5f8ca34df085ab9b5ef2a3525cf361ac46440a) Thanks [@geekact](https://github.com/geekact)! - request.query 重命名为 request.options
- [`d06c1c1`](https://github.com/aomex/aomex/commit/d06c1c1bdfee8657a74bbcbb06a2880263e85529) Thanks [@geekact](https://github.com/geekact)! - middleware 增加构造函数
- Updated dependencies []:
- @aomex/core@0.0.3
## 0.0.2

@@ -4,0 +15,0 @@

4

dist/index.d.ts

@@ -35,3 +35,3 @@ import { Chain, PureMiddlewareToken, Next, Middleware, Validator, GetValidatorType } from '@aomex/core';

readonly argv: string[];
readonly query: Record<string, unknown>;
readonly options: Record<string, unknown>;
readonly command: string;

@@ -70,5 +70,7 @@ constructor(app: ConsoleApp, argv: string[]);

protected _console_middleware_: 'console-middleware';
constructor(fn: (ctx: NonReadonly<Props> & ConsoleContext, next: Next) => any);
toHelp(yargs: YargsInstance): void;
}
declare class HelpMiddleware<Props extends object = object> extends ConsoleMiddleware<Props> {
constructor(fn: (ctx: NonReadonly<Props> & ShowHelp & ConsoleContext, next: Next) => any);
}

@@ -75,0 +77,0 @@

@@ -5,2 +5,5 @@ // src/override/middleware.ts

var ConsoleMiddleware = class extends Middleware {
constructor(fn) {
super(fn);
}
toHelp(yargs2) {

@@ -11,2 +14,5 @@ assert(yargs2);

var HelpMiddleware = class extends ConsoleMiddleware {
constructor(fn) {
super(fn);
}
};

@@ -44,6 +50,6 @@ Middleware.register("console", ConsoleMiddleware);

const { _: commands, ...query } = parse(argv);
this.query = query;
this.options = query;
this.command = String(commands[0] || "");
}
query;
options;
command;

@@ -65,3 +71,3 @@ };

// src/version.ts
var version = "0.0.2";
var version = "0.0.3";

@@ -74,3 +80,3 @@ // src/middleware/showHelp.ts

const {
request: { query: options2, command },
request: { options: options2, command },
response

@@ -77,0 +83,0 @@ } = ctx;

{
"name": "@aomex/console",
"version": "0.0.2",
"version": "0.0.3",
"description": "",

@@ -36,3 +36,3 @@ "type": "module",

"peerDependencies": {
"@aomex/core": "^0.0.2"
"@aomex/core": "^0.0.3"
},

@@ -46,5 +46,5 @@ "dependencies": {

"devDependencies": {
"@aomex/core": "^0.0.3",
"@types/yargs": "^17.0.22",
"@types/yargs-parser": "^21.0.0",
"@aomex/core": "^0.0.2",
"read-pkg-up": "^9.1.0"

@@ -51,0 +51,0 @@ },

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