@putout/plugin-nodejs 17.6.1 → 17.7.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.
@@ -16,6 +16,10 @@ export const replace = () => ({
16
16
  [`export ${FN}`]: `module.exports.__a = ${FN}`,
17
17
  [`export ${ASYNC_FN}`]: `module.exports.__a = ${ASYNC_FN}`,
18
18
  [`export ${GEN_FN}`]: `module.exports.__a = ${GEN_FN}`,
19
+ 'export const __object = __b': `{
20
+ const __object = __b;
21
+ module.exports = __object;
22
+ }`,
19
23
  'export const __a = __b': 'module.exports.__a = __b',
20
24
  'export {__exports}': ({__exports}) => {
21
25
  let result = 'module.exports = {\n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-nodejs",
3
- "version": "17.6.1",
3
+ "version": "17.7.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",