@develit-io/backend-sdk 5.26.5 → 5.26.6
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 +5 -2
- package/dist/infrastructure/index.d.cts +10 -2
- package/dist/infrastructure/index.d.mts +10 -2
- package/dist/infrastructure/index.d.ts +10 -2
- package/dist/infrastructure/index.mjs +6 -3
- 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.DmI0NREG.cjs → backend-sdk.Bx_rk73k.cjs} +2 -0
- package/dist/shared/{backend-sdk.zF_pNSIO.d.mts → backend-sdk.C0fAVNAY.d.mts} +3 -1
- package/dist/shared/{backend-sdk.umOsvljz.d.ts → backend-sdk.DVO4Doqi.d.ts} +3 -1
- package/dist/shared/{backend-sdk.UXVziNMz.mjs → backend-sdk.DbpLyXGp.mjs} +2 -0
- package/dist/shared/{backend-sdk.COZ8j4F5.d.cts → backend-sdk.r2NtByz6.d.cts} +3 -1
- 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.Bx_rk73k.cjs');
|
|
4
4
|
const cloudflare = require('alchemy/cloudflare');
|
|
5
5
|
const environment_consts = require('../shared/backend-sdk.BdcrYpFD.cjs');
|
|
6
6
|
require('@std/path');
|
|
@@ -149,6 +149,7 @@ class Infrastructure {
|
|
|
149
149
|
resource,
|
|
150
150
|
path,
|
|
151
151
|
domains,
|
|
152
|
+
assets,
|
|
152
153
|
crons: _crons,
|
|
153
154
|
bindings,
|
|
154
155
|
eventSources
|
|
@@ -168,6 +169,7 @@ class Infrastructure {
|
|
|
168
169
|
// TODO: Convert to util
|
|
169
170
|
entrypoint: resource === "client" ? `${path}/server/index.mjs` : `${path}/src/index.ts`,
|
|
170
171
|
domains,
|
|
172
|
+
assets,
|
|
171
173
|
// crons:
|
|
172
174
|
// crons ||
|
|
173
175
|
// extractWorkerCrons({
|
|
@@ -213,13 +215,14 @@ class Infrastructure {
|
|
|
213
215
|
* Creates an instance of Cloudflare Worker as a client.
|
|
214
216
|
*/
|
|
215
217
|
async client(options) {
|
|
216
|
-
const { resourceName, domains, bindings } = options;
|
|
218
|
+
const { resourceName, domains, assets, bindings } = options;
|
|
217
219
|
return await this.worker({
|
|
218
220
|
resourceName,
|
|
219
221
|
resource: "client",
|
|
220
222
|
// TODO: Convert to util
|
|
221
223
|
path: `./apps/${resourceName}/.output`,
|
|
222
224
|
domains,
|
|
225
|
+
assets,
|
|
223
226
|
bindings
|
|
224
227
|
});
|
|
225
228
|
}
|
|
@@ -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.r2NtByz6.cjs';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.r2NtByz6.cjs';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -79,6 +79,10 @@ declare class Infrastructure {
|
|
|
79
79
|
* Custom domains to bind to the Worker.
|
|
80
80
|
*/
|
|
81
81
|
domains?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* Static assets of the Worker.
|
|
84
|
+
*/
|
|
85
|
+
assets?: Bindings;
|
|
82
86
|
/**
|
|
83
87
|
* Cron expressions for the trigger of the Worker.
|
|
84
88
|
*/
|
|
@@ -142,6 +146,10 @@ declare class Infrastructure {
|
|
|
142
146
|
* Custom domains to bind to the Worker.
|
|
143
147
|
*/
|
|
144
148
|
domains?: string[];
|
|
149
|
+
/**
|
|
150
|
+
* Static assets of the Worker.
|
|
151
|
+
*/
|
|
152
|
+
assets?: Bindings;
|
|
145
153
|
/**
|
|
146
154
|
* Bindings of the Worker.
|
|
147
155
|
*/
|
|
@@ -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.C0fAVNAY.mjs';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.C0fAVNAY.mjs';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -79,6 +79,10 @@ declare class Infrastructure {
|
|
|
79
79
|
* Custom domains to bind to the Worker.
|
|
80
80
|
*/
|
|
81
81
|
domains?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* Static assets of the Worker.
|
|
84
|
+
*/
|
|
85
|
+
assets?: Bindings;
|
|
82
86
|
/**
|
|
83
87
|
* Cron expressions for the trigger of the Worker.
|
|
84
88
|
*/
|
|
@@ -142,6 +146,10 @@ declare class Infrastructure {
|
|
|
142
146
|
* Custom domains to bind to the Worker.
|
|
143
147
|
*/
|
|
144
148
|
domains?: string[];
|
|
149
|
+
/**
|
|
150
|
+
* Static assets of the Worker.
|
|
151
|
+
*/
|
|
152
|
+
assets?: Bindings;
|
|
145
153
|
/**
|
|
146
154
|
* Bindings of the Worker.
|
|
147
155
|
*/
|
|
@@ -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.DVO4Doqi.js';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.DVO4Doqi.js';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -79,6 +79,10 @@ declare class Infrastructure {
|
|
|
79
79
|
* Custom domains to bind to the Worker.
|
|
80
80
|
*/
|
|
81
81
|
domains?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* Static assets of the Worker.
|
|
84
|
+
*/
|
|
85
|
+
assets?: Bindings;
|
|
82
86
|
/**
|
|
83
87
|
* Cron expressions for the trigger of the Worker.
|
|
84
88
|
*/
|
|
@@ -142,6 +146,10 @@ declare class Infrastructure {
|
|
|
142
146
|
* Custom domains to bind to the Worker.
|
|
143
147
|
*/
|
|
144
148
|
domains?: string[];
|
|
149
|
+
/**
|
|
150
|
+
* Static assets of the Worker.
|
|
151
|
+
*/
|
|
152
|
+
assets?: Bindings;
|
|
145
153
|
/**
|
|
146
154
|
* Bindings of the Worker.
|
|
147
155
|
*/
|
|
@@ -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.DbpLyXGp.mjs';
|
|
2
|
+
export { e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.DbpLyXGp.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';
|
|
@@ -148,6 +148,7 @@ class Infrastructure {
|
|
|
148
148
|
resource,
|
|
149
149
|
path,
|
|
150
150
|
domains,
|
|
151
|
+
assets,
|
|
151
152
|
crons: _crons,
|
|
152
153
|
bindings,
|
|
153
154
|
eventSources
|
|
@@ -167,6 +168,7 @@ class Infrastructure {
|
|
|
167
168
|
// TODO: Convert to util
|
|
168
169
|
entrypoint: resource === "client" ? `${path}/server/index.mjs` : `${path}/src/index.ts`,
|
|
169
170
|
domains,
|
|
171
|
+
assets,
|
|
170
172
|
// crons:
|
|
171
173
|
// crons ||
|
|
172
174
|
// extractWorkerCrons({
|
|
@@ -212,13 +214,14 @@ class Infrastructure {
|
|
|
212
214
|
* Creates an instance of Cloudflare Worker as a client.
|
|
213
215
|
*/
|
|
214
216
|
async client(options) {
|
|
215
|
-
const { resourceName, domains, bindings } = options;
|
|
217
|
+
const { resourceName, domains, assets, bindings } = options;
|
|
216
218
|
return await this.worker({
|
|
217
219
|
resourceName,
|
|
218
220
|
resource: "client",
|
|
219
221
|
// TODO: Convert to util
|
|
220
222
|
path: `./apps/${resourceName}/.output`,
|
|
221
223
|
domains,
|
|
224
|
+
assets,
|
|
222
225
|
bindings
|
|
223
226
|
});
|
|
224
227
|
}
|
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.r2NtByz6.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.C0fAVNAY.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.DVO4Doqi.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.DbpLyXGp.mjs';
|
|
2
2
|
import '../shared/backend-sdk.DXRpnctc.mjs';
|
|
3
3
|
import '@std/path';
|
|
4
4
|
import 'comment-json';
|
|
@@ -38,6 +38,7 @@ const extractWorkerCrons = ({
|
|
|
38
38
|
const composeWorkerArguments = ({
|
|
39
39
|
resourceName,
|
|
40
40
|
entrypoint,
|
|
41
|
+
assets,
|
|
41
42
|
domains = [],
|
|
42
43
|
crons = [],
|
|
43
44
|
bindings,
|
|
@@ -52,6 +53,7 @@ const composeWorkerArguments = ({
|
|
|
52
53
|
enabled: true
|
|
53
54
|
},
|
|
54
55
|
url: false,
|
|
56
|
+
assets,
|
|
55
57
|
domains,
|
|
56
58
|
eventSources,
|
|
57
59
|
crons,
|
|
@@ -23,9 +23,10 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
25
25
|
}) => string[];
|
|
26
|
-
declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, crons, bindings, eventSources, }: {
|
|
26
|
+
declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, domains, crons, bindings, eventSources, }: {
|
|
27
27
|
resourceName: string;
|
|
28
28
|
entrypoint: string;
|
|
29
|
+
assets?: Bindings;
|
|
29
30
|
domains?: string[];
|
|
30
31
|
crons?: string[];
|
|
31
32
|
bindings?: Bindings;
|
|
@@ -39,6 +40,7 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, cron
|
|
|
39
40
|
enabled: true;
|
|
40
41
|
};
|
|
41
42
|
url: false;
|
|
43
|
+
assets: Bindings | undefined;
|
|
42
44
|
domains: string[];
|
|
43
45
|
eventSources: Queue[];
|
|
44
46
|
crons: string[];
|
|
@@ -23,9 +23,10 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
25
25
|
}) => string[];
|
|
26
|
-
declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, crons, bindings, eventSources, }: {
|
|
26
|
+
declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, domains, crons, bindings, eventSources, }: {
|
|
27
27
|
resourceName: string;
|
|
28
28
|
entrypoint: string;
|
|
29
|
+
assets?: Bindings;
|
|
29
30
|
domains?: string[];
|
|
30
31
|
crons?: string[];
|
|
31
32
|
bindings?: Bindings;
|
|
@@ -39,6 +40,7 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, cron
|
|
|
39
40
|
enabled: true;
|
|
40
41
|
};
|
|
41
42
|
url: false;
|
|
43
|
+
assets: Bindings | undefined;
|
|
42
44
|
domains: string[];
|
|
43
45
|
eventSources: Queue[];
|
|
44
46
|
crons: string[];
|
|
@@ -36,6 +36,7 @@ const extractWorkerCrons = ({
|
|
|
36
36
|
const composeWorkerArguments = ({
|
|
37
37
|
resourceName,
|
|
38
38
|
entrypoint,
|
|
39
|
+
assets,
|
|
39
40
|
domains = [],
|
|
40
41
|
crons = [],
|
|
41
42
|
bindings,
|
|
@@ -50,6 +51,7 @@ const composeWorkerArguments = ({
|
|
|
50
51
|
enabled: true
|
|
51
52
|
},
|
|
52
53
|
url: false,
|
|
54
|
+
assets,
|
|
53
55
|
domains,
|
|
54
56
|
eventSources,
|
|
55
57
|
crons,
|
|
@@ -23,9 +23,10 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
25
25
|
}) => string[];
|
|
26
|
-
declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, crons, bindings, eventSources, }: {
|
|
26
|
+
declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, domains, crons, bindings, eventSources, }: {
|
|
27
27
|
resourceName: string;
|
|
28
28
|
entrypoint: string;
|
|
29
|
+
assets?: Bindings;
|
|
29
30
|
domains?: string[];
|
|
30
31
|
crons?: string[];
|
|
31
32
|
bindings?: Bindings;
|
|
@@ -39,6 +40,7 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, domains, cron
|
|
|
39
40
|
enabled: true;
|
|
40
41
|
};
|
|
41
42
|
url: false;
|
|
43
|
+
assets: Bindings | undefined;
|
|
42
44
|
domains: string[];
|
|
43
45
|
eventSources: Queue[];
|
|
44
46
|
crons: string[];
|