@starbeam/debug
Advanced tools
Comparing version 0.8.1 to 0.8.2
# @starbeam/debug | ||
## 0.8.2 | ||
### Patch Changes | ||
- dd8ff3f: Remove chalk from @starbeam/debug | ||
## 0.8.1 | ||
@@ -4,0 +10,0 @@ |
@@ -5,3 +5,3 @@ import { isPresentString, getFirst, getLastIndex } from '@starbeam/core-utils'; | ||
import StackTracey from 'stacktracey'; | ||
import chalk from 'chalk'; | ||
import { createRequire } from 'module'; | ||
@@ -329,2 +329,5 @@ if (globalThis.Buffer === undefined && typeof require === "function") { | ||
const require$1 = createRequire(import.meta.url); | ||
const chalk = require$1("chalk"); | ||
/** | ||
@@ -331,0 +334,0 @@ * This symbol is used in APIs that accept an ID to indicate that an existing ID should be reused. |
{ | ||
"name": "@starbeam/debug", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"type": "module", | ||
@@ -32,2 +32,3 @@ "main": "dist/index.cjs", | ||
"@starbeam/verify": "^0.8.0", | ||
"ansicolor": "^1.1.100", | ||
"buffer": "^6.0.3", | ||
@@ -38,4 +39,3 @@ "stacktracey": "^2.1.8" | ||
"@starbeam-dev/build-support": "1.0.0", | ||
"@types/node": "^18.7.23", | ||
"chalk": "^5.0.1" | ||
"@types/node": "^18.7.23" | ||
}, | ||
@@ -42,0 +42,0 @@ "scripts": { |
import type * as interfaces from "@starbeam/interfaces"; | ||
import { getID } from "@starbeam/shared"; | ||
import { exhaustive, expected, isEqual, verify } from "@starbeam/verify"; | ||
import chalk from "chalk"; | ||
import ansicolor from "ansicolor"; | ||
@@ -151,7 +151,7 @@ import { DisplayStruct } from "../inspect/display-struct.js"; | ||
case "detail": { | ||
const detail = chalk.dim(`->${this.#details.name}`); | ||
const detail = ansicolor.dim(`->${this.#details.name}`); | ||
if (this.#details.args) { | ||
return `${detail}(${this.#details.args | ||
.map((a) => chalk.magenta(a)) | ||
.map((a) => ansicolor.magenta(a)) | ||
.join(", ")})`; | ||
@@ -277,4 +277,4 @@ } else { | ||
const desc = this.#internal.reason | ||
? chalk.dim(`[${this.#internal.reason}]`) | ||
: chalk.dim("[internals]"); | ||
? ansicolor.dim(`[${this.#internal.reason}]`) | ||
: ansicolor.dim("[internals]"); | ||
return `${name} ${desc}`; | ||
@@ -281,0 +281,0 @@ } else { |
@@ -15,6 +15,2 @@ if ( | ||
if (typeof process === "undefined") { | ||
(globalThis as { process: object }).process = {}; | ||
} | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
515397
2
8
4
+ Addedansicolor@^1.1.100
+ Addedansicolor@1.1.100(transitive)