@astrale-os/adapter-cloudflare 0.5.0-beta.194 → 0.5.0-beta.195
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isDurableEngine } from '@astrale-os/sdk/execution';
|
|
2
2
|
import * as nodeModule from 'node:module';
|
|
3
3
|
import { pathToFileURL } from 'node:url';
|
|
4
4
|
import { compiledWasmLoader, compiledWasmSource } from './compiled-wasm-loader.js';
|
|
@@ -41,7 +41,7 @@ export async function admitWorkerBundle(path) {
|
|
|
41
41
|
export async function admitDurableEngineBundle(path) {
|
|
42
42
|
admitCompiledWasm();
|
|
43
43
|
const engine = (await import(`${pathToFileURL(path).href}?admit=${Date.now()}`));
|
|
44
|
-
if (
|
|
44
|
+
if (!isDurableEngine(engine)) {
|
|
45
45
|
throw new TypeError('Generated durable engine bundle does not export the platform Fetch entrypoint.');
|
|
46
46
|
}
|
|
47
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/adapter-cloudflare",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.195",
|
|
4
4
|
"description": "Deploy an Astrale Domain through Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"registry": "https://registry.npmjs.org/"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@astrale-os/sdk": "0.6.0-beta.
|
|
64
|
+
"@astrale-os/sdk": "0.6.0-beta.40",
|
|
65
65
|
"@noble/hashes": "2.3.0",
|
|
66
66
|
"@restatedev/restate-sdk-cloudflare-workers": "1.17.0",
|
|
67
67
|
"hono": "^4.6.20",
|