@lantharos/pult 0.0.0-stage → 0.9.0
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/LICENSE +21 -0
- package/README.md +85 -2
- package/cli.mjs +1143 -0
- package/index.d.mts +989 -0
- package/index.mjs +1044 -0
- package/package.json +42 -4
- package/schema-DuTVNptF.mjs +661 -0
- package/stub.mjs +26 -0
package/stub.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/build/stub.ts
|
|
2
|
+
const building = (what) => /* @__PURE__ */ new Error(`${what} isn't available while pult builds your definitions. Use it inside a function instead.`);
|
|
3
|
+
function unavailable(path) {
|
|
4
|
+
return new Proxy(class {}, {
|
|
5
|
+
get: (_, name) => typeof name === "symbol" || name === "then" ? void 0 : unavailable(`${path}.${name}`),
|
|
6
|
+
apply: () => {
|
|
7
|
+
throw building(path);
|
|
8
|
+
},
|
|
9
|
+
construct: () => {
|
|
10
|
+
throw building(path);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
const env = unavailable("env");
|
|
15
|
+
const exports = unavailable("exports");
|
|
16
|
+
var WorkerEntrypoint = class {};
|
|
17
|
+
var DurableObject = class {};
|
|
18
|
+
var WorkflowEntrypoint = class {};
|
|
19
|
+
var RpcTarget = class {};
|
|
20
|
+
var EmailMessage = class {};
|
|
21
|
+
function waitUntil() {}
|
|
22
|
+
function connect() {
|
|
23
|
+
throw building("A socket");
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { DurableObject, EmailMessage, RpcTarget, WorkerEntrypoint, WorkflowEntrypoint, connect, env, exports, waitUntil };
|