@putout/engine-runner 25.1.0 → 25.2.0

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 CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const debug = require('debug');
3
+ const {createDebug} = require('obug');
4
4
 
5
5
  module.exports.createDebug = (namespace) => {
6
- const log = debug(namespace);
6
+ const log = createDebug(namespace);
7
7
 
8
8
  return new Proxy(log, {
9
9
  apply(target, thisArg, args) {
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const log = require('debug')('putout:runner:include');
3
+ const {createDebug} = require('../debug');
4
+
4
5
  const maybeArray = require('../maybe-array');
5
6
  const {validate} = require('../validate');
6
-
7
+ const log = createDebug('putout:runner:include');
7
8
  const stub = () => [];
8
9
  const good = () => true;
9
10
 
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const {traverse: defaultTraverse} = require('@putout/babel');
4
4
  const once = require('once');
5
- const debug = require('debug')('putout:runner:find');
5
+ const {createDebug} = require('./debug');
6
6
 
7
7
  const runFix = require('./run-fix');
8
8
  const mergeVisitors = require('./merge-visitors');
@@ -17,7 +17,7 @@ const {declare} = require('./declarator/index.js');
17
17
  const {scan} = require('./scanner/index.js');
18
18
 
19
19
  const {getPath, getPosition} = require('./get-position');
20
-
20
+ const debug = createDebug('putout:runner:find');
21
21
  const isRemoved = (a) => a?.removed;
22
22
 
23
23
  module.exports.runPlugins = ({ast, shebang, fix, fixCount = 2, plugins, progress = createProgress(), traverse = defaultTraverse}) => {
@@ -10,10 +10,10 @@ const {
10
10
  start,
11
11
  } = require('@putout/operator-filesystem');
12
12
 
13
- const log = require('debug')('putout:runner:scanner');
14
-
15
13
  const fromSimple = require('@putout/plugin-filesystem/from-simple');
16
14
  const toSimple = require('@putout/plugin-filesystem/to-simple');
15
+ const {createDebug} = require('../debug');
16
+ const log = createDebug('putout:runner:scanner');
17
17
 
18
18
  module.exports.scan = ({rule, plugin, msg, options}, {progress}) => {
19
19
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-runner",
3
- "version": "25.1.0",
3
+ "version": "25.2.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Run 🐊Putout plugins",
@@ -36,10 +36,10 @@
36
36
  "@putout/operator-filesystem": "^9.0.0",
37
37
  "@putout/operator-json": "^2.0.0",
38
38
  "@putout/plugin-filesystem": "^11.0.0",
39
- "debug": "^4.1.1",
40
39
  "fullstore": "^3.0.0",
41
40
  "jessy": "^4.0.0",
42
41
  "nessy": "^5.2.0",
42
+ "obug": "^2.1.1",
43
43
  "once": "^1.4.0",
44
44
  "try-catch": "^3.0.0",
45
45
  "wraptile": "^3.0.0"
@@ -53,7 +53,7 @@
53
53
  "@putout/eslint-flat": "^3.0.0",
54
54
  "@putout/plugin-minify": "*",
55
55
  "c8": "^10.0.0",
56
- "eslint": "^9.0.0",
56
+ "eslint": "v10.0.0-alpha.0",
57
57
  "eslint-plugin-n": "^17.0.0",
58
58
  "eslint-plugin-putout": "^28.0.0",
59
59
  "just-camel-case": "^6.2.0",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "license": "MIT",
70
70
  "engines": {
71
- "node": ">=20"
71
+ "node": ">=20.19"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"