@putout/plugin-nodejs 17.1.1 → 17.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.
@@ -13,9 +13,9 @@ export const report = () => `Use 'CommonJS' instead of 'ESM'`;
13
13
  export const replace = () => ({
14
14
  'export default __a': 'module.exports = __a',
15
15
  [`export ${CLASS}`]: `module.exports.__a = ${CLASS}`,
16
- [`export ${FN}`]: `module.epxorts.__a = ${FN}`,
17
- [`export ${ASYNC_FN}`]: `module.epxorts.__a = ${ASYNC_FN}`,
18
- [`export ${GEN_FN}`]: `module.epxorts.__a = ${GEN_FN}`,
16
+ [`export ${FN}`]: `module.exports.__a = ${FN}`,
17
+ [`export ${ASYNC_FN}`]: `module.exports.__a = ${ASYNC_FN}`,
18
+ [`export ${GEN_FN}`]: `module.exports.__a = ${GEN_FN}`,
19
19
  'export const __a = __b': 'module.exports.__a = __b',
20
20
  'export {__exports}': ({__exports}) => {
21
21
  let result = 'module.exports = {\n';
@@ -3,14 +3,10 @@ export default {
3
3
  MIMEType: `import {MIMEType} from 'node:util'`,
4
4
  TextDecoder: `import {TextDecoder} from 'node:util'`,
5
5
  TextEncoder: `import {TextEncoder} from 'node:util'`,
6
- _errnoException: `import {_errnoException} from 'node:util'`,
7
- _exceptionWithHostPort: `import {_exceptionWithHostPort} from 'node:util'`,
8
- _extend: `import {_extend} from 'node:util'`,
9
6
  aborted: `import {aborted} from 'node:util'`,
10
7
  callbackify: `import {callbackify} from 'node:util'`,
11
8
  debug: `import {debug} from 'node:util'`,
12
9
  debuglog: `import {debuglog} from 'node:util'`,
13
- default: `import {default} from 'node:util'`,
14
10
  deprecate: `import {deprecate} from 'node:util'`,
15
11
  diff: `import {diff} from 'node:util'`,
16
12
  format: `import {format} from 'node:util'`,
@@ -22,7 +18,6 @@ export default {
22
18
  getSystemErrorName: `import {getSystemErrorName} from 'node:util'`,
23
19
  inherits: `import {inherits} from 'node:util'`,
24
20
  inspect: `import {inspect} from 'node:util'`,
25
- isArray: `import {isArray} from 'node:util'`,
26
21
  isDeepStrictEqual: `import {isDeepStrictEqual} from 'node:util'`,
27
22
  parseArgs: `import {parseArgs} from 'node:util'`,
28
23
  parseEnv: `import {parseEnv} from 'node:util'`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-nodejs",
3
- "version": "17.1.1",
3
+ "version": "17.2.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin adds ability to transform code to new API of Node.js",