@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkandswitch/patchwork-pkg-base",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "type": "module",
5
5
  "description": "Base packages for the Patchwork system",
6
6
  "repository": {
@@ -1000,13 +1000,11 @@ function withTimeout(p, ms, what) {
1000
1000
  });
1001
1001
  }
1002
1002
  async function discoverHttpPlugins(url, timeoutMs = 15e3) {
1003
- const importHttp = filesystem.importModuleFromHttpUrl;
1004
- if (typeof importHttp !== "function") {
1005
- throw new Error(
1006
- "This host build can't import http(s) packages — update @inkandswitch/patchwork-filesystem to 0.1.3+."
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
  }
@@ -1120,7 +1120,7 @@ const plugins = [{
1120
1120
  } = await __vitePreload(async () => {
1121
1121
  const {
1122
1122
  mount: mount2
1123
- } = await import("./assets/mount-DiYNUdeB.js");
1123
+ } = await import("./assets/mount-DGvp-6PI.js");
1124
1124
  return {
1125
1125
  mount: mount2
1126
1126
  };
@@ -19,7 +19,7 @@
19
19
  "keywords": [],
20
20
  "author": "Ink & Switch",
21
21
  "dependencies": {
22
- "@inkandswitch/patchwork-filesystem": "^0.1.3",
22
+ "@inkandswitch/patchwork-filesystem": "^0.2.7",
23
23
  "@inkandswitch/patchwork-plugins": "^0.0.5",
24
24
  "solid-js": "^1.9.3"
25
25
  },