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

@poppinss/cliui

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poppinss/cliui - npm Package Compare versions

Comparing version 6.3.0 to 6.4.0

8

build/index.js

@@ -53,2 +53,4 @@ import {

}
flushLogs() {
}
log(message) {

@@ -546,2 +548,5 @@ console.log(message);

}
flushLogs() {
this.getRenderer().flushLogs();
}
constructor(options = {}) {

@@ -1788,2 +1793,5 @@ const dimOutput = options.dim === void 0 ? false : options.dim;

}
flushLogs() {
this.#logs = [];
}
/**

@@ -1790,0 +1798,0 @@ * Log message

1

build/src/logger/main.d.ts

@@ -15,2 +15,3 @@ import type { Colors } from '@poppinss/colors/types';

}[];
flushLogs(): void;
constructor(options?: Partial<LoggerOptions>);

@@ -17,0 +18,0 @@ /**

@@ -7,2 +7,3 @@ import type { RendererContract } from '../types.js';

getLogs(): never[];
flushLogs(): void;
log(message: string): void;

@@ -9,0 +10,0 @@ /**

@@ -11,2 +11,3 @@ import type { RendererContract } from '../types.js';

}[];
flushLogs(): void;
/**

@@ -13,0 +14,0 @@ * Log message

@@ -13,2 +13,3 @@ import { CharName } from 'cli-table3';

}[];
flushLogs(): void;
/**

@@ -15,0 +16,0 @@ * Log a message

18

package.json
{
"name": "@poppinss/cliui",
"version": "6.3.0",
"version": "6.4.0",
"description": "Opinionated UI KIT for Command Line apps",

@@ -48,8 +48,8 @@ "main": "build/index.js",

"@adonisjs/tsconfig": "^1.2.0",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@japa/assert": "^2.0.1",
"@japa/runner": "^3.1.0",
"@swc/core": "^1.3.100",
"@types/node": "^20.10.4",
"@swc/core": "^1.4.1",
"@types/node": "^20.11.19",
"@types/pretty-hrtime": "^1.0.3",

@@ -61,7 +61,7 @@ "@types/wordwrap": "^1.0.3",

"github-label-sync": "^2.3.1",
"husky": "^8.0.3",
"husky": "^9.0.11",
"np": "^9.2.0",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"tsup": "^8.0.1",
"tsup": "^8.0.2",
"typescript": "^5.3.3"

@@ -76,3 +76,3 @@ },

"pretty-hrtime": "^1.0.3",
"string-width": "^7.0.0",
"string-width": "^7.1.0",
"supports-color": "^9.4.0",

@@ -79,0 +79,0 @@ "terminal-size": "^4.0.0",

@@ -158,2 +158,13 @@ # @poppinss/cliui

You can also flush all logs by calling `flushLogs`.
```ts
ui.logger.info('Hello world')
const logs = ui.logger.getRenderer().getLogs()
console.log(logs.length); // 1
ui.logger.getRenderer().flushLogs();
console.log(logs.length); // 0
```
## Logger actions

@@ -160,0 +171,0 @@ Logger actions are pre-styled logs to display the outcome of an action. For example, the action can be to create/update or delete a file.

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