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.27 to 0.0.28

9

CHANGELOG.md
# @aomex/console
## 0.0.28
### Patch Changes
- [`95fd705`](https://github.com/aomex/aomex/commit/95fd705d2ac24f4a3c14446ccb9de6eb6817d0cd) Thanks [@geekact](https://github.com/geekact)! - refactor(console): 命令行入口直接引入ts-node执行ts文件,废弃子进程模式
- Updated dependencies [[`7b09277`](https://github.com/aomex/aomex/commit/7b09277136910966f500c8132303c7ddee84340c), [`9c78999`](https://github.com/aomex/aomex/commit/9c78999ebcb2962f30344acfbf6de0733d6fdd41), [`f4b012d`](https://github.com/aomex/aomex/commit/f4b012d98cddb2918479ea05df6c266dd914e53a)]:
- @aomex/core@0.0.23
## 0.0.27

@@ -4,0 +13,0 @@

48

dist/bin.js

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

import path, { basename } from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";
import { pathToFileURL } from "node:url";
import { existsSync, readFileSync, statSync, writeFileSync } from "node:fs";
import { hideBin } from "yargs/helpers";
import { spawnSync } from "node:child_process";
import { chalk } from "@aomex/core";
import tsNode from "ts-node/dist/bin";
var configFile = path.resolve("aomex.json");

@@ -23,11 +23,7 @@ {

if (existsSync(configFile)) {
console.warn(
chalk.yellow("Your configuration file had been generated already!")
);
console.warn(chalk.yellow("\u914D\u7F6E\u6587\u4EF6aomex.json\u5DF2\u7ECF\u5B58\u5728\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C"));
process.exit(0);
}
writeFileSync(configFile, JSON.stringify(defaultConfig, null, 2) + "\n");
console.info(
"Configuration file has been generated successfully: " + chalk.blueBright(configFile)
);
console.info("\u914D\u7F6E\u6587\u4EF6\u5DF2\u7ECF\u751F\u6210\uFF1A" + chalk.blueBright(configFile));
process.exit(0);

@@ -38,9 +34,7 @@ }

console.error(
`Unable to find configuration file "${chalk.bold(
`\u627E\u4E0D\u5230\u914D\u7F6E\u6587\u4EF6"${chalk.bold(
basename(configFile)
)}", consider to execute the command below to initialize it.
)}"\u8BF7\u5148\u6267\u884C\u4E0B\u9762\u7684\u547D\u4EE4\uFF1A
${chalk.greenBright(
"npx aomex --init"
)}
${chalk.greenBright("npx aomex --init")}
`

@@ -64,3 +58,3 @@ );

if (!cliEntry || !statSync(cliEntry).isFile()) {
console.error(`Given entry file "${cliEntry}" is empty or not a file.`);
console.error(`\u63A7\u5236\u53F0\u5165\u53E3\u6587\u4EF6"${cliEntry}"\u4E0D\u5B58\u5728`);
process.exit(1);

@@ -71,24 +65,8 @@ }

} else {
let tsNodeEsm = path.join(
path.dirname(fileURLToPath(import.meta.url)),
"../node_modules/.bin/ts-node-esm"
);
if (!existsSync(tsNodeEsm)) {
tsNodeEsm = "ts-node-esm";
}
spawnSync(
tsNodeEsm,
[
"--transpileOnly",
"--experimentalSpecifierResolution",
"node",
cliEntry,
...hideBin(process.argv)
],
{
stdio: "inherit",
env: process.env
}
);
tsNode.main([cliEntry, ...hideBin(process.argv)], {
"--esm": true,
"--transpileOnly": true,
"--experimentalSpecifierResolution": "node"
});
}
//# sourceMappingURL=bin.js.map

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

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

@@ -13,0 +13,0 @@

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

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

"peerDependencies": {
"@aomex/core": "^0.0.22"
"@aomex/core": "^0.0.23"
},

@@ -43,3 +43,3 @@ "dependencies": {

"devDependencies": {
"@aomex/core": "^0.0.22",
"@aomex/core": "^0.0.23",
"@types/yargs-parser": "^21.0.0",

@@ -46,0 +46,0 @@ "read-pkg-up": "^10.0.0"

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