We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda47a2 commit fe52494Copy full SHA for fe52494
packages/jco/src/cmd/componentize.js
@@ -40,7 +40,19 @@ async function usesOlderWasiHTTP(witPath, worldName) {
40
);
41
});
42
43
- return exportsOldIncomingHandler;
+ const importsOldFetch = worldMetadata.imports.some((iface) => {
44
+ return (
45
+ iface.namespace === "wasi" &&
46
+ iface.package === "http" &&
47
+ iface.interface === "outgoing-handler" &&
48
+ iface.version !== null &&
49
+ iface.version.major === 0n &&
50
+ iface.version.minor < 3n &&
51
+ iface.version.patch < 10n
52
+ );
53
+ });
54
+
55
+ return exportsOldIncomingHandler || importsOldFetch;
56
}
57
export async function componentize(jsSource, opts) {
58
const { disableFeatures, enableFeatures } = calculateFeatureSet(opts);
0 commit comments