@prisma/debug 5.16.0 → 5.17.0-integration-es2021.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112,8 +112,8 @@ var argsHistory = [];
|
|
|
112
112
|
var lastTimestamp = Date.now();
|
|
113
113
|
var lastColor = 0;
|
|
114
114
|
var processEnv = typeof process !== "undefined" ? process.env : {};
|
|
115
|
-
globalThis.DEBUG
|
|
116
|
-
globalThis.DEBUG_COLORS
|
|
115
|
+
globalThis.DEBUG ??= processEnv.DEBUG ?? "";
|
|
116
|
+
globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true;
|
|
117
117
|
var topProps = {
|
|
118
118
|
enable(namespace) {
|
|
119
119
|
if (typeof namespace === "string") {
|