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 3.7.0 to 3.7.1

8

CHANGELOG.md

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

## [3.7.1](https://github.com/aomex/aomex/compare/v3.7.0...v3.7.1) (2024-10-22)
**Note:** Version bump only for package @aomex/console
# [3.7.0](https://github.com/aomex/aomex/compare/v3.6.0...v3.7.0) (2024-10-19)

@@ -8,0 +16,0 @@

18

dist/index.d.ts

@@ -239,9 +239,9 @@ import { Middleware, Next, MixinMiddleware, Validator } from '@aomex/core';

* 文字可包含一些内置的占位符:
* - `:loading:` 加载动画
* - `:prepare:` 灰色准备小图标 ◼
* - `:success:` 绿色成功小图标 ✔
* - `:info:` 蓝色信息小图标 ℹ
* - `:warning:` 黄色警告小图标 ⚠
* - `:error:` 红色错误小图标 ✖️
* - `:skip:` 灰色跳过小图标 ↓
* - `%loading%` 加载动画
* - `%prepare%` 灰色准备小图标 ◼
* - `%success%` 绿色成功小图标 ✔
* - `%info%` 蓝色信息小图标 ℹ
* - `%warning%` 黄色警告小图标 ⚠
* - `%error%` 红色错误小图标 ✖️
* - `%skip%` 灰色跳过小图标 ↓
*

@@ -251,5 +251,5 @@ * ```typescript

*
* session.update(':loading: 加载中\n 猜猜我是谁');
* session.update('%loading% 加载中\n 猜猜我是谁');
* await sleep(1000);
* session.update(':success: 成功\n 猜中了');
* session.update('%success% 成功\n 猜中了');
* session.commit();

@@ -256,0 +256,0 @@ * ```

// src/utils/meta.ts
var version = "3.7.0";
var version = "3.7.1";
var scriptName = "aomex";

@@ -194,9 +194,9 @@

* 文字可包含一些内置的占位符:
* - `:loading:` 加载动画
* - `:prepare:` 灰色准备小图标 ◼
* - `:success:` 绿色成功小图标 ✔
* - `:info:` 蓝色信息小图标 ℹ
* - `:warning:` 黄色警告小图标 ⚠
* - `:error:` 红色错误小图标 ✖️
* - `:skip:` 灰色跳过小图标 ↓
* - `%loading%` 加载动画
* - `%prepare%` 灰色准备小图标 ◼
* - `%success%` 绿色成功小图标 ✔
* - `%info%` 蓝色信息小图标 ℹ
* - `%warning%` 黄色警告小图标 ⚠
* - `%error%` 红色错误小图标 ✖️
* - `%skip%` 灰色跳过小图标 ↓
*

@@ -206,5 +206,5 @@ * ```typescript

*
* session.update(':loading: 加载中\n 猜猜我是谁');
* session.update('%loading% 加载中\n 猜猜我是谁');
* await sleep(1000);
* session.update(':success: 成功\n 猜中了');
* session.update('%success% 成功\n 猜中了');
* session.commit();

@@ -223,3 +223,3 @@ * ```

const replaceText = () => {
return cacheText.replaceAll(":loading:", loadingFrames[loadingFrameIndex]);
return cacheText.replaceAll("%loading%", loadingFrames[loadingFrameIndex]);
};

@@ -239,5 +239,5 @@ const reset = () => {

prevText = text;
cacheText = text.replaceAll(":success:", symbols.success).replaceAll(":error:", symbols.error).replaceAll(":warning:", symbols.warning).replaceAll(":info:", symbols.info).replaceAll(":skip:", skipSymbol).replaceAll(":prepare:", prepareSymbol);
cacheText = text.replaceAll("%success%", symbols.success).replaceAll("%error%", symbols.error).replaceAll("%warning%", symbols.warning).replaceAll("%info%", symbols.info).replaceAll("%skip%", skipSymbol).replaceAll("%prepare%", prepareSymbol);
logSession(replaceText());
if (text.includes(":loading:")) {
if (text.includes("%loading%")) {
timer ||= setInterval(() => {

@@ -273,3 +273,3 @@ loadingFrameIndex += 1;

const suffix = task.status === "skip" ? this.style("gray", `[skipped]`) : task.suffix;
return `:${task.status}: ${task.title}${suffix ? " " + suffix : ""}`;
return `%${task.status}% ${task.title}${suffix ? " " + suffix : ""}`;
}).join("\n")

@@ -276,0 +276,0 @@ );

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

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

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

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

"@types/yargs-parser": "^21.0.0",
"@aomex/core": "^3.7.0"
"@aomex/core": "^3.7.1"
},

@@ -56,0 +56,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