@putout/engine-runner 26.0.1 → 26.0.3
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/lib/debug.js +5 -3
- package/package.json +5 -4
package/lib/debug.js
CHANGED
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
const {createDebug} = require('obug');
|
|
4
4
|
|
|
5
5
|
module.exports.createDebug = (namespace) => {
|
|
6
|
-
const log = createDebug(namespace
|
|
6
|
+
const log = createDebug(namespace, {
|
|
7
|
+
useColors: true,
|
|
8
|
+
});
|
|
7
9
|
|
|
8
10
|
return new Proxy(log, {
|
|
9
11
|
apply(target, thisArg, args) {
|
|
10
|
-
|
|
12
|
+
globalThis.__putout_debug?.(namespace, ...args);
|
|
11
13
|
return target(...args);
|
|
12
14
|
},
|
|
13
15
|
get(target, prop) {
|
|
14
|
-
if (
|
|
16
|
+
if (globalThis.__putout_debug?.[prop])
|
|
15
17
|
return true;
|
|
16
18
|
|
|
17
19
|
return target[prop];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/engine-runner",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Run 🐊Putout plugins",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@putout/compare": "^19.0.0",
|
|
33
33
|
"@putout/engine-parser": "^15.0.1",
|
|
34
34
|
"@putout/operate": "^15.0.0",
|
|
35
|
-
"@putout/operator-declare": "^
|
|
35
|
+
"@putout/operator-declare": "^15.0.0",
|
|
36
36
|
"@putout/operator-filesystem": "^10.0.0",
|
|
37
37
|
"@putout/operator-json": "^2.0.0",
|
|
38
38
|
"@putout/plugin-filesystem": "^12.0.0",
|
|
@@ -52,10 +52,11 @@
|
|
|
52
52
|
"@putout/engine-loader": "*",
|
|
53
53
|
"@putout/eslint-flat": "^3.0.0",
|
|
54
54
|
"@putout/plugin-minify": "*",
|
|
55
|
+
"@putout/plugin-variables": "*",
|
|
55
56
|
"c8": "^10.0.0",
|
|
56
|
-
"eslint": "
|
|
57
|
+
"eslint": "^10.0.0-alpha.0",
|
|
57
58
|
"eslint-plugin-n": "^17.0.0",
|
|
58
|
-
"eslint-plugin-putout": "^
|
|
59
|
+
"eslint-plugin-putout": "^29.0.0",
|
|
59
60
|
"just-camel-case": "^6.2.0",
|
|
60
61
|
"madrun": "^11.0.0",
|
|
61
62
|
"montag": "^1.0.0",
|