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.26 to 0.0.27

154

CHANGELOG.md
# @aomex/console
## 0.0.26
## 0.0.27
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.21
## 0.0.25
### Patch Changes
- [`c40d78d`](https://github.com/aomex/aomex/commit/c40d78d50be47862f6816bdb106b8ca721b6aba5) Thanks [@geekact](https://github.com/geekact)! - fix(console): disable parse-numbers to against string starts with 0x"
## 0.0.24
### Patch Changes
- [`d0ac2ba`](https://github.com/aomex/aomex/commit/d0ac2ba078252dcab9140212cf7d5f270a4d5d81) Thanks [@geekact](https://github.com/geekact)! - feat(console)!: app.run returns number code
## 0.0.23
### Patch Changes
- Updated dependencies [[`ddcec91`](https://github.com/aomex/aomex/commit/ddcec91803b00f35f7c55964d1a2d97c40a22c6e)]:
- @aomex/core@0.0.20
## 0.0.22
### Patch Changes
- [`3c4b97a`](https://github.com/aomex/aomex/commit/3c4b97af49b075ced611b19c362b26b831440327) Thanks [@geekact](https://github.com/geekact)! - fix(console): set --experimental-specifier-resolution=node for binary file while loading js project
- [`6cdbdc0`](https://github.com/aomex/aomex/commit/6cdbdc0382daa9417ad27ed4641cc27214cbae31) Thanks [@geekact](https://github.com/geekact)! - feat(console): override app.on('error') to give type annotation
- Updated dependencies [[`6cbc69b`](https://github.com/aomex/aomex/commit/6cbc69bfce9d03b4880b94f9ec0ee20c9ae937a8)]:
- @aomex/utility@0.0.7
- @aomex/core@0.0.19
## 0.0.21
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.18
## 0.0.20
### Patch Changes
- Updated dependencies [[`37946d2`](https://github.com/aomex/aomex/commit/37946d2b91a560c851fa21fa327b5b968b794862)]:
- @aomex/utility@0.0.6
- @aomex/core@0.0.17
## 0.0.19
### Patch Changes
- [`8a7d860`](https://github.com/aomex/aomex/commit/8a7d860872abacbdb19a6dc49d1158bbc46422ad) Thanks [@geekact](https://github.com/geekact)! - fix(console): could not found ts-node
## 0.0.18
### Patch Changes
- [`2e7bda9`](https://github.com/aomex/aomex/commit/2e7bda9af7ef64faba48316e99d15637b85988c7) Thanks [@geekact](https://github.com/geekact)! - fix(console): ts-node may be hoist to root node_modules
## 0.0.17
### Patch Changes
- [`eb6b156`](https://github.com/aomex/aomex/commit/eb6b156f19ee59f94cab8f2e364abc7af84524b2) Thanks [@geekact](https://github.com/geekact)! - feat(console)!: load cli entry from aomex.json
## 0.0.16
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.16
## 0.0.15
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.15
## 0.0.14
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.14
## 0.0.13
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.13
## 0.0.12
### Patch Changes
- [`77039d8`](https://github.com/aomex/aomex/commit/77039d8819944f27662866aab238bde6778d9a6f) Thanks [@geekact](https://github.com/geekact)! - fix(console): @types/yargs is prod deps
- Updated dependencies []:
- @aomex/core@0.0.12
## 0.0.11
### Patch Changes
- Updated dependencies [[`92273f9`](https://github.com/aomex/aomex/commit/92273f913e38543f34f41ec5941ff43b6e1caaa9)]:
- @aomex/core@0.0.11
## 0.0.10
### Patch Changes
- Updated dependencies []:
- @aomex/core@0.0.10
## 0.0.9
### Patch Changes
- Updated dependencies [[`fbb7ab2`](https://github.com/aomex/aomex/commit/fbb7ab2e6ec2a18e7ad8f018788523952049b6fd)]:
- @aomex/utility@0.0.5
- @aomex/core@0.0.9
## 0.0.8
### Patch Changes
- [`01f90ab`](https://github.com/aomex/aomex/commit/01f90abec716427b7ccde3ab566067a4ba3293c8) Thanks [@geekact](https://github.com/geekact)! - fix(console): options.toHelp() use wrong description
- [`6c6cda2`](https://github.com/aomex/aomex/commit/6c6cda26522176c44761a738f2bc106a1889497b) Thanks [@geekact](https://github.com/geekact)! - chore(console): upgrade yargs from 17.6.2 to 17.7.1
- Updated dependencies [[`b7313d5`](https://github.com/aomex/aomex/commit/b7313d56bdb93cabde8dc5b872a94b590f45b655), [`912ed81`](https://github.com/aomex/aomex/commit/912ed81c12a3ff12c13607732107dec66c586a38)]:
- @aomex/file-parser@0.0.5
- @aomex/core@0.0.8
## 0.0.6
### Patch Changes
- [`bbc8dda`](https://github.com/aomex/aomex/commit/bbc8dda9f0876c3402608133085350cc693def6f) Thanks [@geekact](https://github.com/geekact)! - refactor: rename package helper to utility
- [`9866b9e`](https://github.com/aomex/aomex/commit/9866b9e63abb71e1197ff8002c38bac04a36dd62) Thanks [@geekact](https://github.com/geekact)! - feat(console): run command parallel is supported
- Updated dependencies [[`589243d`](https://github.com/aomex/aomex/commit/589243da955f3e4296d30fdfe05eac0c45714281), [`24d45f0`](https://github.com/aomex/aomex/commit/24d45f02966cfd936d493de5844bcae73caa6d10), [`cab01c6`](https://github.com/aomex/aomex/commit/cab01c63d60e73a7e24018e6872080d5656c29e2), [`bbc8dda`](https://github.com/aomex/aomex/commit/bbc8dda9f0876c3402608133085350cc693def6f)]:
- @aomex/file-parser@0.0.3
- @aomex/utility@0.0.4
- @aomex/core@0.0.6
- Updated dependencies [[`6f7d706`](https://github.com/aomex/aomex/commit/6f7d7066c23711abdd149eb1c9a293ab8c4284a4), [`e7bf93c`](https://github.com/aomex/aomex/commit/e7bf93cee6896c61d0bf3eb0921151dc6c1bc107), [`818e840`](https://github.com/aomex/aomex/commit/818e840d36c7456a863fc071968b246c123c17f5)]:
- @aomex/core@0.0.22

8

config.json

@@ -7,15 +7,15 @@ {

"type": "object",
"description": "Entry file while executing `aomex COMMAND`, property key is from NODE_ENV value.",
"description": "执行`aomex COMMAND`的入口文件, key来自process.env.NODE_ENV",
"properties": {
"production": {
"type": "string",
"description": "Entry file for NODE_ENV==production"
"description": "process.env.NODE_ENV==production时的入口文件"
},
"development": {
"type": "string",
"description": "Entry file for NODE_ENV==development"
"description": "process.env.NODE_ENV==development时的入口文件"
},
"default": {
"type": "string",
"description": "Entry file for environment which is not specified"
"description": "没有指定特定环境变量该使用哪个入口文件时,会默认使用default提供入口文件"
}

@@ -22,0 +22,0 @@ }

@@ -8,4 +8,4 @@ #!/usr/bin/env -S node --experimental-specifier-resolution=node --no-warnings

import { hideBin } from "yargs/helpers";
import { chalk } from "@aomex/utility";
import { spawnSync } from "node:child_process";
import { chalk } from "@aomex/core";
var configFile = path.resolve("aomex.json");

@@ -12,0 +12,0 @@ {

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

import { Chain, PureMiddlewareToken, Next, Middleware, Validator } from '@aomex/core';
import { NonReadonly } from '@aomex/utility';
import { Chain, PureMiddlewareToken, Next, NonReadonly, Middleware, Validator } from '@aomex/core';
import { Argv } from 'yargs';

@@ -29,4 +28,7 @@ import EventEmitter from 'node:events';

/**
* Run command. Builtin `process.argv` will be used by default until you input one or more arguments.
* @see process.argv
* 执行指令。如果不传参数,则使用内置的`process.argv`
* ```typescript
* app.run('schedule:a')
* app.run('schedule:a', '-f', '--type', 'all')
* ```
*/

@@ -113,3 +115,3 @@ run(...commands: string[]): Promise<0 | 1>;

/**
* Validate command-line options, and make type safe.
* 接收并验证命令行的选项,并且保证类型安全
*

@@ -120,3 +122,3 @@ * ```typescript

* commander.create('my/schedule', {
* slots: [
* mount: [
* options({

@@ -123,0 +125,0 @@ * id: rule.int(),

@@ -10,3 +10,3 @@ // src/override/middleware.ts

// src/meta.ts
var version = "0.0.26";
var version = "0.0.27";
var scriptName = "aomex";

@@ -115,3 +115,3 @@

import { hideBin } from "yargs/helpers";
import { Chain as Chain2, compose as compose2 } from "@aomex/core";
import { Chain as Chain2, chalk, compose as compose2 } from "@aomex/core";

@@ -145,3 +145,2 @@ // src/app/request.ts

// src/app/app.ts
import { chalk } from "@aomex/utility";
var ConsoleApp = class extends EventEmitter {

@@ -156,4 +155,7 @@ constructor(options2 = {}) {

/**
* Run command. Builtin `process.argv` will be used by default until you input one or more arguments.
* @see process.argv
* 执行指令。如果不传参数,则使用内置的`process.argv`
* ```typescript
* app.run('schedule:a')
* app.run('schedule:a', '-f', '--type', 'all')
* ```
*/

@@ -160,0 +162,0 @@ async run(...commands) {

{
"name": "@aomex/console",
"version": "0.0.26",
"description": "",
"version": "0.0.27",
"description": "控制台应用",
"type": "module",

@@ -33,6 +33,5 @@ "types": "dist/index.d.ts",

"peerDependencies": {
"@aomex/core": "^0.0.21"
"@aomex/core": "^0.0.22"
},
"dependencies": {
"@aomex/utility": "^0.0.7",
"@types/yargs": "^17.0.23",

@@ -44,5 +43,5 @@ "ts-node": "^10.9.1",

"devDependencies": {
"@aomex/core": "^0.0.21",
"@aomex/core": "^0.0.22",
"@types/yargs-parser": "^21.0.0",
"read-pkg-up": "^9.1.0"
"read-pkg-up": "^10.0.0"
},

@@ -49,0 +48,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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