@putout/plugin-nodejs 18.14.0 → 18.15.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.
|
@@ -154,6 +154,9 @@ function addExportToBinding(name, path) {
|
|
|
154
154
|
return exportNamedDeclaration(null, [exportSpecifier(imported, imported)]);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
if (binding.references > 1)
|
|
158
|
+
return '';
|
|
159
|
+
|
|
157
160
|
if (isImportDefaultSpecifier(bindingPath)) {
|
|
158
161
|
const {local} = bindingPath.node;
|
|
159
162
|
const {source} = bindingPath.parentPath.node;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-nodejs",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.15.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",
|