@develit-io/backend-sdk 5.26.4 → 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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const worker = require('../shared/backend-sdk.CEul1tWr.cjs');
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');
@@ -148,6 +148,7 @@ class Infrastructure {
148
148
  resourceName,
149
149
  resource,
150
150
  path,
151
+ domains,
151
152
  assets,
152
153
  crons: _crons,
153
154
  bindings,
@@ -167,6 +168,7 @@ class Infrastructure {
167
168
  }),
168
169
  // TODO: Convert to util
169
170
  entrypoint: resource === "client" ? `${path}/server/index.mjs` : `${path}/src/index.ts`,
171
+ domains,
170
172
  assets,
171
173
  // crons:
172
174
  // crons ||
@@ -198,12 +200,13 @@ class Infrastructure {
198
200
  * Creates an instance of Cloudflare Worker as an orchestrator.
199
201
  */
200
202
  async orchestrator(options) {
201
- const { resourceName, bindings, eventSources } = options;
203
+ const { resourceName, domains, bindings, eventSources } = options;
202
204
  return await this.worker({
203
205
  resourceName,
204
206
  resource: "orchestrator",
205
207
  // TODO: Convert to util
206
208
  path: `./apps/${resourceName}`,
209
+ domains,
207
210
  bindings,
208
211
  eventSources
209
212
  });
@@ -212,12 +215,13 @@ class Infrastructure {
212
215
  * Creates an instance of Cloudflare Worker as a client.
213
216
  */
214
217
  async client(options) {
215
- const { resourceName, assets, bindings } = options;
218
+ const { resourceName, domains, assets, bindings } = options;
216
219
  return await this.worker({
217
220
  resourceName,
218
221
  resource: "client",
219
222
  // TODO: Convert to util
220
223
  path: `./apps/${resourceName}/.output`,
224
+ domains,
221
225
  assets,
222
226
  bindings
223
227
  });
@@ -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.D9IsijTC.cjs';
5
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.D9IsijTC.cjs';
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;
@@ -75,6 +75,10 @@ declare class Infrastructure {
75
75
  * Path to the root of the Worker.
76
76
  */
77
77
  path: string;
78
+ /**
79
+ * Custom domains to bind to the Worker.
80
+ */
81
+ domains?: string[];
78
82
  /**
79
83
  * Static assets of the Worker.
80
84
  */
@@ -117,6 +121,10 @@ declare class Infrastructure {
117
121
  * Name of the orchestrator. Do not include the 'orchestrator' prefix.
118
122
  */
119
123
  resourceName: string;
124
+ /**
125
+ * Custom domains to bind to the Worker.
126
+ */
127
+ domains?: string[];
120
128
  /**
121
129
  * Bindings of the Worker.
122
130
  */
@@ -134,6 +142,10 @@ declare class Infrastructure {
134
142
  * Name of the client. Do not include the 'client' prefix.
135
143
  */
136
144
  resourceName: string;
145
+ /**
146
+ * Custom domains to bind to the Worker.
147
+ */
148
+ domains?: string[];
137
149
  /**
138
150
  * Static assets of the Worker.
139
151
  */
@@ -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.CcWnaBCv.mjs';
5
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.CcWnaBCv.mjs';
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;
@@ -75,6 +75,10 @@ declare class Infrastructure {
75
75
  * Path to the root of the Worker.
76
76
  */
77
77
  path: string;
78
+ /**
79
+ * Custom domains to bind to the Worker.
80
+ */
81
+ domains?: string[];
78
82
  /**
79
83
  * Static assets of the Worker.
80
84
  */
@@ -117,6 +121,10 @@ declare class Infrastructure {
117
121
  * Name of the orchestrator. Do not include the 'orchestrator' prefix.
118
122
  */
119
123
  resourceName: string;
124
+ /**
125
+ * Custom domains to bind to the Worker.
126
+ */
127
+ domains?: string[];
120
128
  /**
121
129
  * Bindings of the Worker.
122
130
  */
@@ -134,6 +142,10 @@ declare class Infrastructure {
134
142
  * Name of the client. Do not include the 'client' prefix.
135
143
  */
136
144
  resourceName: string;
145
+ /**
146
+ * Custom domains to bind to the Worker.
147
+ */
148
+ domains?: string[];
137
149
  /**
138
150
  * Static assets of the Worker.
139
151
  */
@@ -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.tAymSGp7.js';
5
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.tAymSGp7.js';
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;
@@ -75,6 +75,10 @@ declare class Infrastructure {
75
75
  * Path to the root of the Worker.
76
76
  */
77
77
  path: string;
78
+ /**
79
+ * Custom domains to bind to the Worker.
80
+ */
81
+ domains?: string[];
78
82
  /**
79
83
  * Static assets of the Worker.
80
84
  */
@@ -117,6 +121,10 @@ declare class Infrastructure {
117
121
  * Name of the orchestrator. Do not include the 'orchestrator' prefix.
118
122
  */
119
123
  resourceName: string;
124
+ /**
125
+ * Custom domains to bind to the Worker.
126
+ */
127
+ domains?: string[];
120
128
  /**
121
129
  * Bindings of the Worker.
122
130
  */
@@ -134,6 +142,10 @@ declare class Infrastructure {
134
142
  * Name of the client. Do not include the 'client' prefix.
135
143
  */
136
144
  resourceName: string;
145
+ /**
146
+ * Custom domains to bind to the Worker.
147
+ */
148
+ domains?: string[];
137
149
  /**
138
150
  * Static assets of the Worker.
139
151
  */
@@ -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.yptokdbb.mjs';
2
- export { e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.yptokdbb.mjs';
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';
@@ -147,6 +147,7 @@ class Infrastructure {
147
147
  resourceName,
148
148
  resource,
149
149
  path,
150
+ domains,
150
151
  assets,
151
152
  crons: _crons,
152
153
  bindings,
@@ -166,6 +167,7 @@ class Infrastructure {
166
167
  }),
167
168
  // TODO: Convert to util
168
169
  entrypoint: resource === "client" ? `${path}/server/index.mjs` : `${path}/src/index.ts`,
170
+ domains,
169
171
  assets,
170
172
  // crons:
171
173
  // crons ||
@@ -197,12 +199,13 @@ class Infrastructure {
197
199
  * Creates an instance of Cloudflare Worker as an orchestrator.
198
200
  */
199
201
  async orchestrator(options) {
200
- const { resourceName, bindings, eventSources } = options;
202
+ const { resourceName, domains, bindings, eventSources } = options;
201
203
  return await this.worker({
202
204
  resourceName,
203
205
  resource: "orchestrator",
204
206
  // TODO: Convert to util
205
207
  path: `./apps/${resourceName}`,
208
+ domains,
206
209
  bindings,
207
210
  eventSources
208
211
  });
@@ -211,12 +214,13 @@ class Infrastructure {
211
214
  * Creates an instance of Cloudflare Worker as a client.
212
215
  */
213
216
  async client(options) {
214
- const { resourceName, assets, bindings } = options;
217
+ const { resourceName, domains, assets, bindings } = options;
215
218
  return await this.worker({
216
219
  resourceName,
217
220
  resource: "client",
218
221
  // TODO: Convert to util
219
222
  path: `./apps/${resourceName}/.output`,
223
+ domains,
220
224
  assets,
221
225
  bindings
222
226
  });
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const worker = require('../shared/backend-sdk.CEul1tWr.cjs');
3
+ const worker = require('../shared/backend-sdk.Bx_rk73k.cjs');
4
4
  require('../shared/backend-sdk.BdcrYpFD.cjs');
5
5
  require('@std/path');
6
6
  require('comment-json');
@@ -1,3 +1,3 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.D9IsijTC.cjs';
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';
@@ -1,3 +1,3 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.CcWnaBCv.mjs';
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';
@@ -1,3 +1,3 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.tAymSGp7.js';
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';
@@ -1,4 +1,4 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.yptokdbb.mjs';
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';
@@ -39,6 +39,7 @@ const composeWorkerArguments = ({
39
39
  resourceName,
40
40
  entrypoint,
41
41
  assets,
42
+ domains = [],
42
43
  crons = [],
43
44
  bindings,
44
45
  eventSources = []
@@ -52,8 +53,9 @@ const composeWorkerArguments = ({
52
53
  enabled: true
53
54
  },
54
55
  url: false,
55
- eventSources,
56
56
  assets,
57
+ domains,
58
+ eventSources,
57
59
  crons,
58
60
  bindings
59
61
  };
@@ -23,10 +23,11 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
23
23
  workerConfig: WorkerConfig;
24
24
  environment: Environment;
25
25
  }) => string[];
26
- declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons, bindings, eventSources, }: {
26
+ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, domains, crons, bindings, eventSources, }: {
27
27
  resourceName: string;
28
28
  entrypoint: string;
29
29
  assets?: Bindings;
30
+ domains?: string[];
30
31
  crons?: string[];
31
32
  bindings?: Bindings;
32
33
  eventSources?: Queue[];
@@ -39,8 +40,9 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons
39
40
  enabled: true;
40
41
  };
41
42
  url: false;
42
- eventSources: Queue[];
43
43
  assets: Bindings | undefined;
44
+ domains: string[];
45
+ eventSources: Queue[];
44
46
  crons: string[];
45
47
  bindings: Bindings | undefined;
46
48
  };
@@ -23,10 +23,11 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
23
23
  workerConfig: WorkerConfig;
24
24
  environment: Environment;
25
25
  }) => string[];
26
- declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons, bindings, eventSources, }: {
26
+ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, domains, crons, bindings, eventSources, }: {
27
27
  resourceName: string;
28
28
  entrypoint: string;
29
29
  assets?: Bindings;
30
+ domains?: string[];
30
31
  crons?: string[];
31
32
  bindings?: Bindings;
32
33
  eventSources?: Queue[];
@@ -39,8 +40,9 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons
39
40
  enabled: true;
40
41
  };
41
42
  url: false;
42
- eventSources: Queue[];
43
43
  assets: Bindings | undefined;
44
+ domains: string[];
45
+ eventSources: Queue[];
44
46
  crons: string[];
45
47
  bindings: Bindings | undefined;
46
48
  };
@@ -37,6 +37,7 @@ const composeWorkerArguments = ({
37
37
  resourceName,
38
38
  entrypoint,
39
39
  assets,
40
+ domains = [],
40
41
  crons = [],
41
42
  bindings,
42
43
  eventSources = []
@@ -50,8 +51,9 @@ const composeWorkerArguments = ({
50
51
  enabled: true
51
52
  },
52
53
  url: false,
53
- eventSources,
54
54
  assets,
55
+ domains,
56
+ eventSources,
55
57
  crons,
56
58
  bindings
57
59
  };
@@ -23,10 +23,11 @@ declare const extractWorkerCrons: ({ workerConfig, environment, }: {
23
23
  workerConfig: WorkerConfig;
24
24
  environment: Environment;
25
25
  }) => string[];
26
- declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons, bindings, eventSources, }: {
26
+ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, domains, crons, bindings, eventSources, }: {
27
27
  resourceName: string;
28
28
  entrypoint: string;
29
29
  assets?: Bindings;
30
+ domains?: string[];
30
31
  crons?: string[];
31
32
  bindings?: Bindings;
32
33
  eventSources?: Queue[];
@@ -39,8 +40,9 @@ declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, crons
39
40
  enabled: true;
40
41
  };
41
42
  url: false;
42
- eventSources: Queue[];
43
43
  assets: Bindings | undefined;
44
+ domains: string[];
45
+ eventSources: Queue[];
44
46
  crons: string[];
45
47
  bindings: Bindings | undefined;
46
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "5.26.4",
3
+ "version": "5.26.6",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",