@inkandswitch/patchwork-pkg-base 0.0.57 → 0.0.58
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/package.json
CHANGED
|
@@ -1000,13 +1000,11 @@ function withTimeout(p, ms, what) {
|
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
1002
|
async function discoverHttpPlugins(url, timeoutMs = 15e3) {
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
}
|
|
1009
|
-
const mod = await withTimeout(importHttp(url), timeoutMs, "importing the package");
|
|
1003
|
+
const mod = await withTimeout(
|
|
1004
|
+
filesystem.importPackageFromHttpUrl(url),
|
|
1005
|
+
timeoutMs,
|
|
1006
|
+
"importing the package"
|
|
1007
|
+
);
|
|
1010
1008
|
const plugins = Array.isArray(mod?.plugins) ? mod.plugins : [];
|
|
1011
1009
|
return plugins.map(toDescriptor);
|
|
1012
1010
|
}
|