vue-hook-optimizer 0.0.50 → 0.0.52
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/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.mjs
CHANGED
@@ -135,12 +135,18 @@ var NodeCollection = class {
|
|
135
135
|
function getComment(node) {
|
136
136
|
let comment = "";
|
137
137
|
node.leadingComments?.forEach((_comment) => {
|
138
|
+
if (_comment.loc.end.line > node.loc.start.line) {
|
139
|
+
return;
|
140
|
+
}
|
138
141
|
if (_comment.value.trim().startsWith("*")) {
|
139
142
|
comment += `${_comment.value.trim().replace(/^[\s]*\*+[\s]*\**/gm, "").trim()}
|
140
143
|
`;
|
141
144
|
}
|
142
145
|
});
|
143
146
|
node.trailingComments?.forEach((_comment) => {
|
147
|
+
if (_comment.loc.end.line > node.loc.start.line) {
|
148
|
+
return;
|
149
|
+
}
|
144
150
|
if (_comment.value.trim().startsWith("*")) {
|
145
151
|
comment += `${_comment.value.trim().replace(/^[\s]*\*+[\s]*\**/gm, "").trim()}
|
146
152
|
`;
|