@develit-io/backend-sdk 5.26.4 → 5.26.5
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/dist/infrastructure/index.cjs +7 -6
- package/dist/infrastructure/index.d.cts +10 -6
- package/dist/infrastructure/index.d.mts +10 -6
- package/dist/infrastructure/index.d.ts +10 -6
- package/dist/infrastructure/index.mjs +8 -7
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/shared/{backend-sdk.D9IsijTC.d.cts → backend-sdk.COZ8j4F5.d.cts} +3 -3
- package/dist/shared/{backend-sdk.CEul1tWr.cjs → backend-sdk.DmI0NREG.cjs} +2 -2
- package/dist/shared/{backend-sdk.yptokdbb.mjs → backend-sdk.UXVziNMz.mjs} +2 -2
- package/dist/shared/{backend-sdk.tAymSGp7.d.ts → backend-sdk.umOsvljz.d.ts} +3 -3
- package/dist/shared/{backend-sdk.CcWnaBCv.d.mts → backend-sdk.zF_pNSIO.d.mts} +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const worker = require('../shared/backend-sdk.
|
|
3
|
+
const worker = require('../shared/backend-sdk.DmI0NREG.cjs');
|
|
4
4
|
const cloudflare = require('alchemy/cloudflare');
|
|
5
5
|
const environment_consts = require('../shared/backend-sdk.BdcrYpFD.cjs');
|
|
6
6
|
require('@std/path');
|
|
@@ -148,7 +148,7 @@ class Infrastructure {
|
|
|
148
148
|
resourceName,
|
|
149
149
|
resource,
|
|
150
150
|
path,
|
|
151
|
-
|
|
151
|
+
domains,
|
|
152
152
|
crons: _crons,
|
|
153
153
|
bindings,
|
|
154
154
|
eventSources
|
|
@@ -167,7 +167,7 @@ class Infrastructure {
|
|
|
167
167
|
}),
|
|
168
168
|
// TODO: Convert to util
|
|
169
169
|
entrypoint: resource === "client" ? `${path}/server/index.mjs` : `${path}/src/index.ts`,
|
|
170
|
-
|
|
170
|
+
domains,
|
|
171
171
|
// crons:
|
|
172
172
|
// crons ||
|
|
173
173
|
// extractWorkerCrons({
|
|
@@ -198,12 +198,13 @@ class Infrastructure {
|
|
|
198
198
|
* Creates an instance of Cloudflare Worker as an orchestrator.
|
|
199
199
|
*/
|
|
200
200
|
async orchestrator(options) {
|
|
201
|
-
const { resourceName, bindings, eventSources } = options;
|
|
201
|
+
const { resourceName, domains, bindings, eventSources } = options;
|
|
202
202
|
return await this.worker({
|
|
203
203
|
resourceName,
|
|
204
204
|
resource: "orchestrator",
|
|
205
205
|
// TODO: Convert to util
|
|
206
206
|
path: `./apps/${resourceName}`,
|
|
207
|
+
domains,
|
|
207
208
|
bindings,
|
|
208
209
|
eventSources
|
|
209
210
|
});
|
|
@@ -212,13 +213,13 @@ class Infrastructure {
|
|
|
212
213
|
* Creates an instance of Cloudflare Worker as a client.
|
|
213
214
|
*/
|
|
214
215
|
async client(options) {
|
|
215
|
-
const { resourceName,
|
|
216
|
+
const { resourceName, domains, bindings } = options;
|
|
216
217
|
return await this.worker({
|
|
217
218
|
resourceName,
|
|
218
219
|
resource: "client",
|
|
219
220
|
// TODO: Convert to util
|
|
220
221
|
path: `./apps/${resourceName}/.output`,
|
|
221
|
-
|
|
222
|
+
domains,
|
|
222
223
|
bindings
|
|
223
224
|
});
|
|
224
225
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as Project } from '../shared/backend-sdk.B5vcbB2_.cjs';
|
|
2
2
|
import { E as Environment } from '../shared/backend-sdk.D5vSybcI.cjs';
|
|
3
3
|
import { KVNamespace, D1Database, Queue, R2Bucket, Bindings, Worker } from 'alchemy/cloudflare';
|
|
4
|
-
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.
|
|
5
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
4
|
+
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.COZ8j4F5.cjs';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.COZ8j4F5.cjs';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -76,9 +76,9 @@ declare class Infrastructure {
|
|
|
76
76
|
*/
|
|
77
77
|
path: string;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Custom domains to bind to the Worker.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
domains?: string[];
|
|
82
82
|
/**
|
|
83
83
|
* Cron expressions for the trigger of the Worker.
|
|
84
84
|
*/
|
|
@@ -117,6 +117,10 @@ declare class Infrastructure {
|
|
|
117
117
|
* Name of the orchestrator. Do not include the 'orchestrator' prefix.
|
|
118
118
|
*/
|
|
119
119
|
resourceName: string;
|
|
120
|
+
/**
|
|
121
|
+
* Custom domains to bind to the Worker.
|
|
122
|
+
*/
|
|
123
|
+
domains?: string[];
|
|
120
124
|
/**
|
|
121
125
|
* Bindings of the Worker.
|
|
122
126
|
*/
|
|
@@ -135,9 +139,9 @@ declare class Infrastructure {
|
|
|
135
139
|
*/
|
|
136
140
|
resourceName: string;
|
|
137
141
|
/**
|
|
138
|
-
*
|
|
142
|
+
* Custom domains to bind to the Worker.
|
|
139
143
|
*/
|
|
140
|
-
|
|
144
|
+
domains?: string[];
|
|
141
145
|
/**
|
|
142
146
|
* Bindings of the Worker.
|
|
143
147
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as Project } from '../shared/backend-sdk.B5vcbB2_.mjs';
|
|
2
2
|
import { E as Environment } from '../shared/backend-sdk.D5vSybcI.mjs';
|
|
3
3
|
import { KVNamespace, D1Database, Queue, R2Bucket, Bindings, Worker } from 'alchemy/cloudflare';
|
|
4
|
-
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.
|
|
5
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
4
|
+
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.zF_pNSIO.mjs';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.zF_pNSIO.mjs';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -76,9 +76,9 @@ declare class Infrastructure {
|
|
|
76
76
|
*/
|
|
77
77
|
path: string;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Custom domains to bind to the Worker.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
domains?: string[];
|
|
82
82
|
/**
|
|
83
83
|
* Cron expressions for the trigger of the Worker.
|
|
84
84
|
*/
|
|
@@ -117,6 +117,10 @@ declare class Infrastructure {
|
|
|
117
117
|
* Name of the orchestrator. Do not include the 'orchestrator' prefix.
|
|
118
118
|
*/
|
|
119
119
|
resourceName: string;
|
|
120
|
+
/**
|
|
121
|
+
* Custom domains to bind to the Worker.
|
|
122
|
+
*/
|
|
123
|
+
domains?: string[];
|
|
120
124
|
/**
|
|
121
125
|
* Bindings of the Worker.
|
|
122
126
|
*/
|
|
@@ -135,9 +139,9 @@ declare class Infrastructure {
|
|
|
135
139
|
*/
|
|
136
140
|
resourceName: string;
|
|
137
141
|
/**
|
|
138
|
-
*
|
|
142
|
+
* Custom domains to bind to the Worker.
|
|
139
143
|
*/
|
|
140
|
-
|
|
144
|
+
domains?: string[];
|
|
141
145
|
/**
|
|
142
146
|
* Bindings of the Worker.
|
|
143
147
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as Project } from '../shared/backend-sdk.B5vcbB2_.js';
|
|
2
2
|
import { E as Environment } from '../shared/backend-sdk.D5vSybcI.js';
|
|
3
3
|
import { KVNamespace, D1Database, Queue, R2Bucket, Bindings, Worker } from 'alchemy/cloudflare';
|
|
4
|
-
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.
|
|
5
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
4
|
+
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.umOsvljz.js';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.umOsvljz.js';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -76,9 +76,9 @@ declare class Infrastructure {
|
|
|
76
76
|
*/
|
|
77
77
|
path: string;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Custom domains to bind to the Worker.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
domains?: string[];
|
|
82
82
|
/**
|
|
83
83
|
* Cron expressions for the trigger of the Worker.
|
|
84
84
|
*/
|
|
@@ -117,6 +117,10 @@ declare class Infrastructure {
|
|
|
117
117
|
* Name of the orchestrator. Do not include the 'orchestrator' prefix.
|
|
118
118
|
*/
|
|
119
119
|
resourceName: string;
|
|
120
|
+
/**
|
|
121
|
+
* Custom domains to bind to the Worker.
|
|
122
|
+
*/
|
|
123
|
+
domains?: string[];
|
|
120
124
|
/**
|
|
121
125
|
* Bindings of the Worker.
|
|
122
126
|
*/
|
|
@@ -135,9 +139,9 @@ declare class Infrastructure {
|
|
|
135
139
|
*/
|
|
136
140
|
resourceName: string;
|
|
137
141
|
/**
|
|
138
|
-
*
|
|
142
|
+
* Custom domains to bind to the Worker.
|
|
139
143
|
*/
|
|
140
|
-
|
|
144
|
+
domains?: string[];
|
|
141
145
|
/**
|
|
142
146
|
* Bindings of the Worker.
|
|
143
147
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as D1_LOCATION_HINT, Q as QUEUE_MESSAGE_RETENTION_PERIOD, a as QUEUE_DELIVERY_DELAY, R as R2_STORAGE_CLASS, b as R2_LOCATION_HINT, d as R2_JURISDICTION, c as composeWorkerArguments } from '../shared/backend-sdk.
|
|
2
|
-
export { e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
1
|
+
import { D as D1_LOCATION_HINT, Q as QUEUE_MESSAGE_RETENTION_PERIOD, a as QUEUE_DELIVERY_DELAY, R as R2_STORAGE_CLASS, b as R2_LOCATION_HINT, d as R2_JURISDICTION, c as composeWorkerArguments } from '../shared/backend-sdk.UXVziNMz.mjs';
|
|
2
|
+
export { e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.UXVziNMz.mjs';
|
|
3
3
|
import { KVNamespace, D1Database, Queue, R2Bucket, Worker } from 'alchemy/cloudflare';
|
|
4
4
|
import { E as ENVIRONMENT } from '../shared/backend-sdk.DXRpnctc.mjs';
|
|
5
5
|
import '@std/path';
|
|
@@ -147,7 +147,7 @@ class Infrastructure {
|
|
|
147
147
|
resourceName,
|
|
148
148
|
resource,
|
|
149
149
|
path,
|
|
150
|
-
|
|
150
|
+
domains,
|
|
151
151
|
crons: _crons,
|
|
152
152
|
bindings,
|
|
153
153
|
eventSources
|
|
@@ -166,7 +166,7 @@ class Infrastructure {
|
|
|
166
166
|
}),
|
|
167
167
|
// TODO: Convert to util
|
|
168
168
|
entrypoint: resource === "client" ? `${path}/server/index.mjs` : `${path}/src/index.ts`,
|
|
169
|
-
|
|
169
|
+
domains,
|
|
170
170
|
// crons:
|
|
171
171
|
// crons ||
|
|
172
172
|
// extractWorkerCrons({
|
|
@@ -197,12 +197,13 @@ class Infrastructure {
|
|
|
197
197
|
* Creates an instance of Cloudflare Worker as an orchestrator.
|
|
198
198
|
*/
|
|
199
199
|
async orchestrator(options) {
|
|
200
|
-
const { resourceName, bindings, eventSources } = options;
|
|
200
|
+
const { resourceName, domains, bindings, eventSources } = options;
|
|
201
201
|
return await this.worker({
|
|
202
202
|
resourceName,
|
|
203
203
|
resource: "orchestrator",
|
|
204
204
|
// TODO: Convert to util
|
|
205
205
|
path: `./apps/${resourceName}`,
|
|
206
|
+
domains,
|
|
206
207
|
bindings,
|
|
207
208
|
eventSources
|
|
208
209
|
});
|
|
@@ -211,13 +212,13 @@ class Infrastructure {
|
|
|
211
212
|
* Creates an instance of Cloudflare Worker as a client.
|
|
212
213
|
*/
|
|
213
214
|
async client(options) {
|
|
214
|
-
const { resourceName,
|
|
215
|
+
const { resourceName, domains, bindings } = options;
|
|
215
216
|
return await this.worker({
|
|
216
217
|
resourceName,
|
|
217
218
|
resource: "client",
|
|
218
219
|
// TODO: Convert to util
|
|
219
220
|
path: `./apps/${resourceName}/.output`,
|
|
220
|
-
|
|
221
|
+
domains,
|
|
221
222
|
bindings
|
|
222
223
|
});
|
|
223
224
|
}
|
package/dist/node/index.cjs
CHANGED
package/dist/node/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
1
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.COZ8j4F5.cjs';
|
|
2
2
|
import 'alchemy/cloudflare';
|
|
3
3
|
import '../shared/backend-sdk.D5vSybcI.cjs';
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
1
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.zF_pNSIO.mjs';
|
|
2
2
|
import 'alchemy/cloudflare';
|
|
3
3
|
import '../shared/backend-sdk.D5vSybcI.mjs';
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
1
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.umOsvljz.js';
|
|
2
2
|
import 'alchemy/cloudflare';
|
|
3
3
|
import '../shared/backend-sdk.D5vSybcI.js';
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
1
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.UXVziNMz.mjs';
|
|
2
2
|
import '../shared/backend-sdk.DXRpnctc.mjs';
|
|
3
3
|
import '@std/path';
|
|
4
4
|
import 'comment-json';
|
|
@@ -23,10 +23,10 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
25
25
|
}) => string[];
|
|
26
|
-
declare const composeWorkerArguments: ({ resourceName, entrypoint,
|
|
26
|
+
declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, crons, bindings, eventSources, }: {
|
|
27
27
|
resourceName: string;
|
|
28
28
|
entrypoint: string;
|
|
29
|
-
|
|
29
|
+
domains?: string[];
|
|
30
30
|
crons?: string[];
|
|
31
31
|
bindings?: Bindings;
|
|
32
32
|
eventSources?: Queue[];
|
|
@@ -39,8 +39,8 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons
|
|
|
39
39
|
enabled: true;
|
|
40
40
|
};
|
|
41
41
|
url: false;
|
|
42
|
+
domains: string[];
|
|
42
43
|
eventSources: Queue[];
|
|
43
|
-
assets: Bindings | undefined;
|
|
44
44
|
crons: string[];
|
|
45
45
|
bindings: Bindings | undefined;
|
|
46
46
|
};
|
|
@@ -38,7 +38,7 @@ const extractWorkerCrons = ({
|
|
|
38
38
|
const composeWorkerArguments = ({
|
|
39
39
|
resourceName,
|
|
40
40
|
entrypoint,
|
|
41
|
-
|
|
41
|
+
domains = [],
|
|
42
42
|
crons = [],
|
|
43
43
|
bindings,
|
|
44
44
|
eventSources = []
|
|
@@ -52,8 +52,8 @@ const composeWorkerArguments = ({
|
|
|
52
52
|
enabled: true
|
|
53
53
|
},
|
|
54
54
|
url: false,
|
|
55
|
+
domains,
|
|
55
56
|
eventSources,
|
|
56
|
-
assets,
|
|
57
57
|
crons,
|
|
58
58
|
bindings
|
|
59
59
|
};
|
|
@@ -36,7 +36,7 @@ const extractWorkerCrons = ({
|
|
|
36
36
|
const composeWorkerArguments = ({
|
|
37
37
|
resourceName,
|
|
38
38
|
entrypoint,
|
|
39
|
-
|
|
39
|
+
domains = [],
|
|
40
40
|
crons = [],
|
|
41
41
|
bindings,
|
|
42
42
|
eventSources = []
|
|
@@ -50,8 +50,8 @@ const composeWorkerArguments = ({
|
|
|
50
50
|
enabled: true
|
|
51
51
|
},
|
|
52
52
|
url: false,
|
|
53
|
+
domains,
|
|
53
54
|
eventSources,
|
|
54
|
-
assets,
|
|
55
55
|
crons,
|
|
56
56
|
bindings
|
|
57
57
|
};
|
|
@@ -23,10 +23,10 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
25
25
|
}) => string[];
|
|
26
|
-
declare const composeWorkerArguments: ({ resourceName, entrypoint,
|
|
26
|
+
declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, crons, bindings, eventSources, }: {
|
|
27
27
|
resourceName: string;
|
|
28
28
|
entrypoint: string;
|
|
29
|
-
|
|
29
|
+
domains?: string[];
|
|
30
30
|
crons?: string[];
|
|
31
31
|
bindings?: Bindings;
|
|
32
32
|
eventSources?: Queue[];
|
|
@@ -39,8 +39,8 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons
|
|
|
39
39
|
enabled: true;
|
|
40
40
|
};
|
|
41
41
|
url: false;
|
|
42
|
+
domains: string[];
|
|
42
43
|
eventSources: Queue[];
|
|
43
|
-
assets: Bindings | undefined;
|
|
44
44
|
crons: string[];
|
|
45
45
|
bindings: Bindings | undefined;
|
|
46
46
|
};
|
|
@@ -23,10 +23,10 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
25
25
|
}) => string[];
|
|
26
|
-
declare const composeWorkerArguments: ({ resourceName, entrypoint,
|
|
26
|
+
declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, crons, bindings, eventSources, }: {
|
|
27
27
|
resourceName: string;
|
|
28
28
|
entrypoint: string;
|
|
29
|
-
|
|
29
|
+
domains?: string[];
|
|
30
30
|
crons?: string[];
|
|
31
31
|
bindings?: Bindings;
|
|
32
32
|
eventSources?: Queue[];
|
|
@@ -39,8 +39,8 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons
|
|
|
39
39
|
enabled: true;
|
|
40
40
|
};
|
|
41
41
|
url: false;
|
|
42
|
+
domains: string[];
|
|
42
43
|
eventSources: Queue[];
|
|
43
|
-
assets: Bindings | undefined;
|
|
44
44
|
crons: string[];
|
|
45
45
|
bindings: Bindings | undefined;
|
|
46
46
|
};
|