Fix StartOS 0.4 TypeScript packaging to match SDK API

This commit is contained in:
MacPro
2026-04-09 15:10:44 -05:00
parent 68ec875ee7
commit 8298c083c7
3436 changed files with 867051 additions and 92 deletions
@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setupExportedUrls = void 0;
const setupExportedUrls = (fn) => {
return (async (effects) => {
const urls = [];
await fn({
effects: {
...effects,
plugin: {
...effects.plugin,
url: {
...effects.plugin.url,
exportUrl: (params) => {
urls.push(params.hostnameInfo);
return effects.plugin.url.exportUrl(params);
},
},
},
},
});
await effects.plugin.url.clearUrls({ except: urls });
return null;
});
};
exports.setupExportedUrls = setupExportedUrls;
//# sourceMappingURL=setupExportedUrls.js.map