putout 41.2.4 → 41.3.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/ChangeLog CHANGED
@@ -1,3 +1,10 @@
1
+ 2025.12.31, v41.3.0
2
+
3
+ feature:
4
+ - 7e97f2986 putout: @putout/plugin-try-catch v6.1.0
5
+ - 86003826f @putout/plugin-try-catch: drop support of 🐊 < 41
6
+ - c7a5b5810 @putout/plugin-try-catch: apply-destructuring: add
7
+
1
8
  2025.12.31, v41.2.4
2
9
 
3
10
  fix:
@@ -1,7 +1,7 @@
1
1
  import {normalize} from 'node:path';
2
2
  import {lstat as _lstat} from 'node:fs/promises';
3
3
  import _fastGlob from 'fast-glob';
4
- import tryToCatch from 'try-to-catch';
4
+ import {tryToCatch} from 'try-to-catch';
5
5
  import {getSupportedGlob as _getSupportedGlob} from './supported-files.js';
6
6
 
7
7
  const rmDuplicates = (a) => Array.from(new Set(a));
package/lib/cli/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import process from 'node:process';
2
2
  import {createRequire} from 'node:module';
3
- import tryToCatch from 'try-to-catch';
3
+ import {tryToCatch} from 'try-to-catch';
4
4
  import {isCI as _isCI} from 'ci-info';
5
- import tryCatch from 'try-catch';
5
+ import {tryCatch} from 'try-catch';
6
6
  import wraptile from 'wraptile';
7
7
  import fullstore from 'fullstore';
8
8
  import nano from 'nano-memoize';
@@ -1,4 +1,4 @@
1
- import tryToCatch from 'try-to-catch';
1
+ import {tryToCatch} from 'try-to-catch';
2
2
  import {runProcessors as _runProcessors} from '@putout/engine-processor';
3
3
  import {parseError} from '../../parse-error.js';
4
4
  import {simpleImport} from '../simple-import.js';
@@ -1,7 +1,7 @@
1
1
  import {resolve} from 'node:path';
2
2
  import {cwd, env} from 'node:process';
3
3
  import {readFileSync} from 'node:fs';
4
- import tryCatch from 'try-catch';
4
+ import {tryCatch} from 'try-catch';
5
5
  import _getOptions from '../get-options.js';
6
6
  import {INVALID_CONFIG, NO_PROCESSORS} from '../exit-codes.js';
7
7
  import {runReader} from './reader.js';
@@ -4,7 +4,7 @@ import {readdirSync as _readdirSync} from 'node:fs';
4
4
  import {dirname, join} from 'node:path';
5
5
  import {createRequire} from 'node:module';
6
6
  import once from 'once';
7
- import tryCatch from 'try-catch';
7
+ import {tryCatch} from 'try-catch';
8
8
  import _escalade from 'escalade/sync';
9
9
  import {parseMatch} from './parse-match.js';
10
10
  import _defaultOptions from '../../putout.json' with {
@@ -1,5 +1,5 @@
1
1
  import {join} from 'node:path';
2
- import tryCatch from 'try-catch';
2
+ import {tryCatch} from 'try-catch';
3
3
 
4
4
  const isInclude = (a) => {
5
5
  if (a[0] === '.')
package/lib/transform.js CHANGED
@@ -1,4 +1,4 @@
1
- import tryCatch from 'try-catch';
1
+ import {tryCatch} from 'try-catch';
2
2
  import {validateRulesRelations} from '@putout/engine-loader';
3
3
  import {defaultOptions} from './default-options.js';
4
4
  import {cutShebang} from './shebang.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "41.2.4",
3
+ "version": "41.3.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
@@ -167,7 +167,7 @@
167
167
  "@putout/plugin-simplify-ternary": "^8.0.0",
168
168
  "@putout/plugin-spread": "^1.0.0",
169
169
  "@putout/plugin-tape": "^19.0.0",
170
- "@putout/plugin-try-catch": "^6.0.0",
170
+ "@putout/plugin-try-catch": "^6.1.0",
171
171
  "@putout/plugin-types": "^8.0.0",
172
172
  "@putout/plugin-typescript": "^12.0.0",
173
173
  "@putout/plugin-variables": "^1.0.0",