@sanoma-ai/connector-cloudflare 0.6.5 → 0.11.21
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/README.md +112 -21
- package/dist/connector.d.ts +5 -5
- package/dist/connector.js +2 -2
- package/dist/connector.js.map +1 -1
- package/dist/deploy.d.ts +11 -22
- package/dist/deploy.js +18 -10
- package/dist/deploy.js.map +1 -1
- package/dist/driver.d.ts +1 -1
- package/dist/driver.js +1 -1
- package/dist/driver.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/fake.d.ts +12 -6
- package/dist/fake.js +38 -11
- package/dist/fake.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ops.d.ts +26 -23
- package/dist/ops.js +73 -67
- package/dist/ops.js.map +1 -1
- package/dist/records.d.ts +1 -1
- package/dist/records.js +1 -1
- package/dist/records.js.map +1 -1
- package/dist/registry.js +1 -1
- package/dist/registry.js.map +1 -1
- package/dist/resources.d.ts +4 -4
- package/dist/steps.d.ts +1 -1
- package/dist/steps.js +1 -1
- package/dist/steps.js.map +1 -1
- package/package.json +3 -5
- package/worker/instance.d.ts +1 -1
- package/worker/instance.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanoma-ai/connector-cloudflare",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.21",
|
|
4
4
|
"description": "Cloudflare for Sanoma: a Container host that stops when quiet, a Durable Object alarm that wakes it, from one Worker, and a zone's DNS records",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -62,14 +62,12 @@
|
|
|
62
62
|
"srvx": "^0.11.22"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@sanoma-ai/app": "0.10.15",
|
|
66
|
-
"@sanoma-ai/testing": "0.1.1",
|
|
67
|
-
"@sanoma-ai/workflows": "0.11.18",
|
|
68
65
|
"msw": "^3.0.3",
|
|
66
|
+
"sanoma": "0.11.21",
|
|
69
67
|
"zod": "^4.6.5"
|
|
70
68
|
},
|
|
71
69
|
"peerDependencies": {
|
|
72
|
-
"
|
|
70
|
+
"sanoma": "0.11.21",
|
|
73
71
|
"zod": "^4"
|
|
74
72
|
},
|
|
75
73
|
"engines": {
|
package/worker/instance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The types of `instance.js`, for the package's TypeScript: the fake runs it, and `src/` names its routes.
|
|
2
|
-
import type { AppBundleModule } from "
|
|
2
|
+
import type { AppBundleModule } from "sanoma/app";
|
|
3
3
|
|
|
4
4
|
/** The object's route that holds the company's wake, with the instance token. */
|
|
5
5
|
export declare const WAKE_PATH: "/__sanoma/wake";
|
package/worker/instance.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
export const WAKE_PATH = "/__sanoma/wake";
|
|
17
17
|
/** The object's route that answers what the Worker runs; with `?start=1` and the instance token, it starts the container at it. */
|
|
18
18
|
export const HEALTH_PATH = "/__sanoma/health";
|
|
19
|
-
/** The worker port's route of the app bundle at `?revision=`, which the object passes on with the instance token (`APP_BUNDLE_PATH` in
|
|
19
|
+
/** The worker port's route of the app bundle at `?revision=`, which the object passes on with the instance token (`APP_BUNDLE_PATH` in `sanoma/workflows/shared`). */
|
|
20
20
|
export const APP_BUNDLE_PATH = "/__sanoma/app-bundle";
|
|
21
21
|
/** The Host contract's wake: the Worker has the worker started now (a wakeup's `GET {url}/wake`). */
|
|
22
22
|
const HOST_WAKE_PATH = "/wake";
|
|
@@ -26,7 +26,7 @@ const HOST_WAKE_PATH = "/wake";
|
|
|
26
26
|
* the object's answers from anyone else's.
|
|
27
27
|
*/
|
|
28
28
|
export const DEPLOYMENT_HEADER = "x-sanoma-deployment";
|
|
29
|
-
/** The header the app reads the visitor's address from (`CLIENT_IP_HEADER` in
|
|
29
|
+
/** The header the app reads the visitor's address from (`CLIENT_IP_HEADER` in `sanoma/workflows`). */
|
|
30
30
|
export const CLIENT_IP_HEADER = "x-sanoma-client-ip";
|
|
31
31
|
/** How long the container keeps running after the object's last request: Cloudflare stops it then. */
|
|
32
32
|
export const INACTIVITY_MS = 10 * 60 * 1000;
|