Socket
Book a DemoInstallSign in
Socket

chalk

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chalk - npm Package Compare versions

Comparing version

to
5.3.0

6

package.json
{
"name": "chalk",
"version": "5.2.0",
"version": "5.3.0",
"description": "Terminal string styling done right",

@@ -64,2 +64,3 @@ "license": "MIT",

},
"sideEffects": false,
"xo": {

@@ -70,3 +71,4 @@ "rules": {

"@typescript-eslint/consistent-type-exports": "off",
"@typescript-eslint/consistent-type-definitions": "off"
"@typescript-eslint/consistent-type-definitions": "off",
"unicorn/expiring-todo-comments": "off"
}

@@ -73,0 +75,0 @@ },

@@ -6,2 +6,3 @@ import process from 'node:process';

// From: https://github.com/sindresorhus/has-flag/blob/main/index.js
/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {

@@ -115,3 +116,3 @@ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');

if ('CI' in env) {
if ('GITHUB_ACTIONS' in env) {
if ('GITHUB_ACTIONS' in env || 'GITEA_ACTIONS' in env) {
return 3;

@@ -118,0 +119,0 @@ }