unplugin-zed-gpui 0.0.7 → 0.0.8
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.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -380,6 +380,7 @@ function getPropertyName(node) {
|
|
|
380
380
|
if (_babel_types.isStringLiteral(node)) return node.value;
|
|
381
381
|
}
|
|
382
382
|
function isMethodUsed(prototypeName, methodName, usedMethods, prototypeMethods) {
|
|
383
|
+
if (keepHTMLElementMethods.has(methodName)) return true;
|
|
383
384
|
if ((prototypeName === "HTMLElement" || prototypeName === "SVGElement" || prototypeName === "MathMLElement") && prototypeMethods.get("HTMLElement")?.has(methodName) && prototypeMethods.get("SVGElement")?.has(methodName) && prototypeMethods.get("MathMLElement")?.has(methodName)) {
|
|
384
385
|
if (usedMethods.unknown.has(methodName)) return true;
|
|
385
386
|
for (const methods of usedMethods.byPrototype.values()) if (methods.has(methodName)) return true;
|
|
@@ -387,7 +388,6 @@ function isMethodUsed(prototypeName, methodName, usedMethods, prototypeMethods)
|
|
|
387
388
|
}
|
|
388
389
|
if (usedMethods.unknown.has(methodName) || usedMethods.byPrototype.get(prototypeName)?.has(methodName)) return true;
|
|
389
390
|
if (prototypeName !== "HTMLElement") return false;
|
|
390
|
-
if (keepHTMLElementMethods.has(methodName)) return true;
|
|
391
391
|
for (const [usedPrototype, methods] of usedMethods.byPrototype) if (usedPrototype !== "HTMLElement" && methods.has(methodName) && !prototypeMethods.get(usedPrototype)?.has(methodName)) return true;
|
|
392
392
|
return false;
|
|
393
393
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -352,6 +352,7 @@ function getPropertyName(node) {
|
|
|
352
352
|
if (t.isStringLiteral(node)) return node.value;
|
|
353
353
|
}
|
|
354
354
|
function isMethodUsed(prototypeName, methodName, usedMethods, prototypeMethods) {
|
|
355
|
+
if (keepHTMLElementMethods.has(methodName)) return true;
|
|
355
356
|
if ((prototypeName === "HTMLElement" || prototypeName === "SVGElement" || prototypeName === "MathMLElement") && prototypeMethods.get("HTMLElement")?.has(methodName) && prototypeMethods.get("SVGElement")?.has(methodName) && prototypeMethods.get("MathMLElement")?.has(methodName)) {
|
|
356
357
|
if (usedMethods.unknown.has(methodName)) return true;
|
|
357
358
|
for (const methods of usedMethods.byPrototype.values()) if (methods.has(methodName)) return true;
|
|
@@ -359,7 +360,6 @@ function isMethodUsed(prototypeName, methodName, usedMethods, prototypeMethods)
|
|
|
359
360
|
}
|
|
360
361
|
if (usedMethods.unknown.has(methodName) || usedMethods.byPrototype.get(prototypeName)?.has(methodName)) return true;
|
|
361
362
|
if (prototypeName !== "HTMLElement") return false;
|
|
362
|
-
if (keepHTMLElementMethods.has(methodName)) return true;
|
|
363
363
|
for (const [usedPrototype, methods] of usedMethods.byPrototype) if (usedPrototype !== "HTMLElement" && methods.has(methodName) && !prototypeMethods.get(usedPrototype)?.has(methodName)) return true;
|
|
364
364
|
return false;
|
|
365
365
|
}
|