@putout/plugin-nodejs 19.0.1 → 19.1.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.
|
@@ -163,12 +163,13 @@ function addExportToBinding(name, path) {
|
|
|
163
163
|
return exportNamedDeclaration(null, [exportSpecifier(imported, imported)]);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
if (binding.references > 1)
|
|
167
|
-
return '';
|
|
168
|
-
|
|
169
166
|
if (isImportDefaultSpecifier(bindingPath)) {
|
|
167
|
+
if (binding.references > 1)
|
|
168
|
+
return '';
|
|
169
|
+
|
|
170
170
|
const {local} = bindingPath.node;
|
|
171
171
|
const {source} = bindingPath.parentPath.node;
|
|
172
|
+
|
|
172
173
|
const specifiers = [
|
|
173
174
|
exportNamespaceSpecifier(local),
|
|
174
175
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-nodejs",
|
|
3
|
-
"version": "19.0
|
|
3
|
+
"version": "19.1.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",
|