@develit-io/backend-sdk 5.27.0 → 5.28.0
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 +34 -22
- package/dist/infrastructure/index.d.cts +7 -8
- package/dist/infrastructure/index.d.mts +7 -8
- package/dist/infrastructure/index.d.ts +7 -8
- package/dist/infrastructure/index.mjs +36 -25
- 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.Cd67M26h.d.cts → backend-sdk.8rfqUsXi.d.cts} +1 -1
- package/dist/shared/{backend-sdk.DhyrRk3x.d.mts → backend-sdk.BvaLhEr7.d.mts} +1 -1
- package/dist/shared/{backend-sdk.DGKSH7tj.d.ts → backend-sdk.CPfRBPRs.d.ts} +1 -1
- package/dist/shared/{backend-sdk.DbpLyXGp.mjs → backend-sdk.D5AX-MGe.mjs} +1 -5
- package/dist/shared/{backend-sdk.Bx_rk73k.cjs → backend-sdk.vIHx9plD.cjs} +2 -4
- 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.vIHx9plD.cjs');
|
|
4
4
|
const text = require('@std/text');
|
|
5
5
|
const cloudflare = require('alchemy/cloudflare');
|
|
6
6
|
const environment_consts = require('../shared/backend-sdk.BdcrYpFD.cjs');
|
|
@@ -54,14 +54,14 @@ const composeIdentifierName = ({
|
|
|
54
54
|
resource,
|
|
55
55
|
resourceName
|
|
56
56
|
}) => {
|
|
57
|
-
return text.toKebabCase(
|
|
57
|
+
return `${text.toKebabCase(resourceName).toLowerCase()}-${resource}`;
|
|
58
58
|
};
|
|
59
59
|
const composeResourceName = ({
|
|
60
60
|
project,
|
|
61
61
|
environment,
|
|
62
62
|
resourceName
|
|
63
63
|
}) => {
|
|
64
|
-
return
|
|
64
|
+
return `${project}-${text.toKebabCase(resourceName).toLowerCase()}-${environment}`;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
class Infrastructure {
|
|
@@ -168,7 +168,7 @@ class Infrastructure {
|
|
|
168
168
|
path,
|
|
169
169
|
domains,
|
|
170
170
|
assets,
|
|
171
|
-
crons
|
|
171
|
+
crons,
|
|
172
172
|
bindings,
|
|
173
173
|
eventSources
|
|
174
174
|
} = options;
|
|
@@ -176,6 +176,7 @@ class Infrastructure {
|
|
|
176
176
|
resourceName,
|
|
177
177
|
resource: resource || "worker"
|
|
178
178
|
});
|
|
179
|
+
const workerConfig = await worker.loadWorkerConfig({ path });
|
|
179
180
|
return await cloudflare.Worker(
|
|
180
181
|
identifierName,
|
|
181
182
|
worker.composeWorkerArguments({
|
|
@@ -185,16 +186,13 @@ class Infrastructure {
|
|
|
185
186
|
resourceName: identifierName
|
|
186
187
|
}),
|
|
187
188
|
// TODO: Convert to util
|
|
188
|
-
entrypoint:
|
|
189
|
+
entrypoint: `${path}/src/index.ts`,
|
|
189
190
|
domains,
|
|
190
191
|
assets,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
// environment: this.environment,
|
|
196
|
-
// }),
|
|
197
|
-
crons: [],
|
|
192
|
+
crons: crons || worker.extractWorkerCrons({
|
|
193
|
+
workerConfig,
|
|
194
|
+
environment: this.environment
|
|
195
|
+
}),
|
|
198
196
|
bindings,
|
|
199
197
|
eventSources
|
|
200
198
|
})
|
|
@@ -233,16 +231,30 @@ class Infrastructure {
|
|
|
233
231
|
* Creates an instance of Cloudflare Worker as a client.
|
|
234
232
|
*/
|
|
235
233
|
async client(options) {
|
|
236
|
-
const { resourceName, domains,
|
|
237
|
-
return await
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
234
|
+
const { resourceName, domains, bindings } = options;
|
|
235
|
+
return await cloudflare.Nuxt(
|
|
236
|
+
composeIdentifierName({
|
|
237
|
+
resourceName,
|
|
238
|
+
resource: "client"
|
|
239
|
+
}),
|
|
240
|
+
{
|
|
241
|
+
name: composeResourceName({
|
|
242
|
+
project: this.project,
|
|
243
|
+
environment: this.environment,
|
|
244
|
+
resourceName
|
|
245
|
+
}),
|
|
246
|
+
compatibilityDate: worker.COMPATIBILITY_DATE,
|
|
247
|
+
compatibilityFlags: worker.COMPATIBILITY_FLAGS,
|
|
248
|
+
observability: {
|
|
249
|
+
enabled: true
|
|
250
|
+
},
|
|
251
|
+
url: false,
|
|
252
|
+
domains,
|
|
253
|
+
bindings,
|
|
254
|
+
// TODO: Convert to util
|
|
255
|
+
cwd: `./apps/${resourceName}`
|
|
256
|
+
}
|
|
257
|
+
);
|
|
246
258
|
}
|
|
247
259
|
}
|
|
248
260
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as alchemy_cloudflare from 'alchemy/cloudflare';
|
|
2
|
+
import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Bindings, Worker } from 'alchemy/cloudflare';
|
|
1
3
|
import { P as Project } from '../shared/backend-sdk.B5vcbB2_.cjs';
|
|
2
4
|
import { E as Environment } from '../shared/backend-sdk.D5vSybcI.cjs';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.Cd67M26h.cjs';
|
|
5
|
+
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.8rfqUsXi.cjs';
|
|
6
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.8rfqUsXi.cjs';
|
|
6
7
|
|
|
7
8
|
declare class Infrastructure {
|
|
8
9
|
private project;
|
|
@@ -155,15 +156,13 @@ declare class Infrastructure {
|
|
|
155
156
|
* Custom domains to bind to the Worker.
|
|
156
157
|
*/
|
|
157
158
|
domains?: string[];
|
|
158
|
-
/**
|
|
159
|
-
* Static assets of the Worker.
|
|
160
|
-
*/
|
|
161
|
-
assets?: Bindings;
|
|
162
159
|
/**
|
|
163
160
|
* Bindings of the Worker.
|
|
164
161
|
*/
|
|
165
162
|
bindings?: Bindings;
|
|
166
|
-
}): Promise<Worker<Bindings
|
|
163
|
+
}): Promise<Worker<Bindings & {
|
|
164
|
+
ASSETS: alchemy_cloudflare.Assets;
|
|
165
|
+
}>>;
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
declare const composeD1Arguments: ({ resourceName, }: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as alchemy_cloudflare from 'alchemy/cloudflare';
|
|
2
|
+
import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Bindings, Worker } from 'alchemy/cloudflare';
|
|
1
3
|
import { P as Project } from '../shared/backend-sdk.B5vcbB2_.mjs';
|
|
2
4
|
import { E as Environment } from '../shared/backend-sdk.D5vSybcI.mjs';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.DhyrRk3x.mjs';
|
|
5
|
+
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.BvaLhEr7.mjs';
|
|
6
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.BvaLhEr7.mjs';
|
|
6
7
|
|
|
7
8
|
declare class Infrastructure {
|
|
8
9
|
private project;
|
|
@@ -155,15 +156,13 @@ declare class Infrastructure {
|
|
|
155
156
|
* Custom domains to bind to the Worker.
|
|
156
157
|
*/
|
|
157
158
|
domains?: string[];
|
|
158
|
-
/**
|
|
159
|
-
* Static assets of the Worker.
|
|
160
|
-
*/
|
|
161
|
-
assets?: Bindings;
|
|
162
159
|
/**
|
|
163
160
|
* Bindings of the Worker.
|
|
164
161
|
*/
|
|
165
162
|
bindings?: Bindings;
|
|
166
|
-
}): Promise<Worker<Bindings
|
|
163
|
+
}): Promise<Worker<Bindings & {
|
|
164
|
+
ASSETS: alchemy_cloudflare.Assets;
|
|
165
|
+
}>>;
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
declare const composeD1Arguments: ({ resourceName, }: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as alchemy_cloudflare from 'alchemy/cloudflare';
|
|
2
|
+
import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Bindings, Worker } from 'alchemy/cloudflare';
|
|
1
3
|
import { P as Project } from '../shared/backend-sdk.B5vcbB2_.js';
|
|
2
4
|
import { E as Environment } from '../shared/backend-sdk.D5vSybcI.js';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.DGKSH7tj.js';
|
|
5
|
+
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.CPfRBPRs.js';
|
|
6
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.CPfRBPRs.js';
|
|
6
7
|
|
|
7
8
|
declare class Infrastructure {
|
|
8
9
|
private project;
|
|
@@ -155,15 +156,13 @@ declare class Infrastructure {
|
|
|
155
156
|
* Custom domains to bind to the Worker.
|
|
156
157
|
*/
|
|
157
158
|
domains?: string[];
|
|
158
|
-
/**
|
|
159
|
-
* Static assets of the Worker.
|
|
160
|
-
*/
|
|
161
|
-
assets?: Bindings;
|
|
162
159
|
/**
|
|
163
160
|
* Bindings of the Worker.
|
|
164
161
|
*/
|
|
165
162
|
bindings?: Bindings;
|
|
166
|
-
}): Promise<Worker<Bindings
|
|
163
|
+
}): Promise<Worker<Bindings & {
|
|
164
|
+
ASSETS: alchemy_cloudflare.Assets;
|
|
165
|
+
}>>;
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
declare const composeD1Arguments: ({ resourceName, }: {
|
|
@@ -1,7 +1,6 @@
|
|
|
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.DbpLyXGp.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, l as loadWorkerConfig, c as composeWorkerArguments, e as extractWorkerCrons, C as COMPATIBILITY_FLAGS, f as COMPATIBILITY_DATE } from '../shared/backend-sdk.D5AX-MGe.mjs';
|
|
3
2
|
import { toKebabCase } from '@std/text';
|
|
4
|
-
import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Worker } from 'alchemy/cloudflare';
|
|
3
|
+
import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Worker, Nuxt } from 'alchemy/cloudflare';
|
|
5
4
|
import { E as ENVIRONMENT } from '../shared/backend-sdk.DXRpnctc.mjs';
|
|
6
5
|
import '@std/path';
|
|
7
6
|
import 'comment-json';
|
|
@@ -53,14 +52,14 @@ const composeIdentifierName = ({
|
|
|
53
52
|
resource,
|
|
54
53
|
resourceName
|
|
55
54
|
}) => {
|
|
56
|
-
return toKebabCase(
|
|
55
|
+
return `${toKebabCase(resourceName).toLowerCase()}-${resource}`;
|
|
57
56
|
};
|
|
58
57
|
const composeResourceName = ({
|
|
59
58
|
project,
|
|
60
59
|
environment,
|
|
61
60
|
resourceName
|
|
62
61
|
}) => {
|
|
63
|
-
return
|
|
62
|
+
return `${project}-${toKebabCase(resourceName).toLowerCase()}-${environment}`;
|
|
64
63
|
};
|
|
65
64
|
|
|
66
65
|
class Infrastructure {
|
|
@@ -167,7 +166,7 @@ class Infrastructure {
|
|
|
167
166
|
path,
|
|
168
167
|
domains,
|
|
169
168
|
assets,
|
|
170
|
-
crons
|
|
169
|
+
crons,
|
|
171
170
|
bindings,
|
|
172
171
|
eventSources
|
|
173
172
|
} = options;
|
|
@@ -175,6 +174,7 @@ class Infrastructure {
|
|
|
175
174
|
resourceName,
|
|
176
175
|
resource: resource || "worker"
|
|
177
176
|
});
|
|
177
|
+
const workerConfig = await loadWorkerConfig({ path });
|
|
178
178
|
return await Worker(
|
|
179
179
|
identifierName,
|
|
180
180
|
composeWorkerArguments({
|
|
@@ -184,16 +184,13 @@ class Infrastructure {
|
|
|
184
184
|
resourceName: identifierName
|
|
185
185
|
}),
|
|
186
186
|
// TODO: Convert to util
|
|
187
|
-
entrypoint:
|
|
187
|
+
entrypoint: `${path}/src/index.ts`,
|
|
188
188
|
domains,
|
|
189
189
|
assets,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
// environment: this.environment,
|
|
195
|
-
// }),
|
|
196
|
-
crons: [],
|
|
190
|
+
crons: crons || extractWorkerCrons({
|
|
191
|
+
workerConfig,
|
|
192
|
+
environment: this.environment
|
|
193
|
+
}),
|
|
197
194
|
bindings,
|
|
198
195
|
eventSources
|
|
199
196
|
})
|
|
@@ -232,16 +229,30 @@ class Infrastructure {
|
|
|
232
229
|
* Creates an instance of Cloudflare Worker as a client.
|
|
233
230
|
*/
|
|
234
231
|
async client(options) {
|
|
235
|
-
const { resourceName, domains,
|
|
236
|
-
return await
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
232
|
+
const { resourceName, domains, bindings } = options;
|
|
233
|
+
return await Nuxt(
|
|
234
|
+
composeIdentifierName({
|
|
235
|
+
resourceName,
|
|
236
|
+
resource: "client"
|
|
237
|
+
}),
|
|
238
|
+
{
|
|
239
|
+
name: composeResourceName({
|
|
240
|
+
project: this.project,
|
|
241
|
+
environment: this.environment,
|
|
242
|
+
resourceName
|
|
243
|
+
}),
|
|
244
|
+
compatibilityDate: COMPATIBILITY_DATE,
|
|
245
|
+
compatibilityFlags: COMPATIBILITY_FLAGS,
|
|
246
|
+
observability: {
|
|
247
|
+
enabled: true
|
|
248
|
+
},
|
|
249
|
+
url: false,
|
|
250
|
+
domains,
|
|
251
|
+
bindings,
|
|
252
|
+
// TODO: Convert to util
|
|
253
|
+
cwd: `./apps/${resourceName}`
|
|
254
|
+
}
|
|
255
|
+
);
|
|
245
256
|
}
|
|
246
257
|
}
|
|
247
258
|
|
|
@@ -252,4 +263,4 @@ const validateEnvironment = (environment) => {
|
|
|
252
263
|
return Number(environment);
|
|
253
264
|
};
|
|
254
265
|
|
|
255
|
-
export { Infrastructure, composeD1Arguments, composeIdentifierName, composeKvArguments, composeQueueArguments, composeR2Arguments, composeResourceName, composeWorkerArguments, validateEnvironment };
|
|
266
|
+
export { Infrastructure, composeD1Arguments, composeIdentifierName, composeKvArguments, composeQueueArguments, composeR2Arguments, composeResourceName, composeWorkerArguments, extractWorkerCrons, loadWorkerConfig, validateEnvironment };
|
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.8rfqUsXi.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.BvaLhEr7.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.CPfRBPRs.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.D5AX-MGe.mjs';
|
|
2
2
|
import '../shared/backend-sdk.DXRpnctc.mjs';
|
|
3
3
|
import '@std/path';
|
|
4
4
|
import 'comment-json';
|
|
@@ -18,7 +18,7 @@ interface WorkerConfig {
|
|
|
18
18
|
|
|
19
19
|
declare const loadWorkerConfig: ({ path }: {
|
|
20
20
|
path: string;
|
|
21
|
-
}) => Promise<
|
|
21
|
+
}) => Promise<WorkerConfig>;
|
|
22
22
|
declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
@@ -18,7 +18,7 @@ interface WorkerConfig {
|
|
|
18
18
|
|
|
19
19
|
declare const loadWorkerConfig: ({ path }: {
|
|
20
20
|
path: string;
|
|
21
|
-
}) => Promise<
|
|
21
|
+
}) => Promise<WorkerConfig>;
|
|
22
22
|
declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
@@ -18,7 +18,7 @@ interface WorkerConfig {
|
|
|
18
18
|
|
|
19
19
|
declare const loadWorkerConfig: ({ path }: {
|
|
20
20
|
path: string;
|
|
21
|
-
}) => Promise<
|
|
21
|
+
}) => Promise<WorkerConfig>;
|
|
22
22
|
declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
@@ -14,10 +14,6 @@ const R2_LOCATION_HINT = "weur";
|
|
|
14
14
|
const loadWorkerConfig = async ({ path }) => {
|
|
15
15
|
const wranglerConfigFilePath = join(path, "./wrangler.jsonc");
|
|
16
16
|
const workerConfigFile = Bun.file(wranglerConfigFilePath);
|
|
17
|
-
if (!workerConfigFile.exists()) {
|
|
18
|
-
console.log(`Could not find ${wranglerConfigFilePath}.`);
|
|
19
|
-
return {};
|
|
20
|
-
}
|
|
21
17
|
return parse(
|
|
22
18
|
await workerConfigFile.text(),
|
|
23
19
|
null,
|
|
@@ -59,4 +55,4 @@ const composeWorkerArguments = ({
|
|
|
59
55
|
};
|
|
60
56
|
};
|
|
61
57
|
|
|
62
|
-
export { D1_LOCATION_HINT as D, QUEUE_MESSAGE_RETENTION_PERIOD as Q, R2_STORAGE_CLASS as R, QUEUE_DELIVERY_DELAY as a, R2_LOCATION_HINT as b, composeWorkerArguments as c, R2_JURISDICTION as d, extractWorkerCrons as e, loadWorkerConfig as l };
|
|
58
|
+
export { COMPATIBILITY_FLAGS as C, D1_LOCATION_HINT as D, QUEUE_MESSAGE_RETENTION_PERIOD as Q, R2_STORAGE_CLASS as R, QUEUE_DELIVERY_DELAY as a, R2_LOCATION_HINT as b, composeWorkerArguments as c, R2_JURISDICTION as d, extractWorkerCrons as e, COMPATIBILITY_DATE as f, loadWorkerConfig as l };
|
|
@@ -16,10 +16,6 @@ const R2_LOCATION_HINT = "weur";
|
|
|
16
16
|
const loadWorkerConfig = async ({ path: path$1 }) => {
|
|
17
17
|
const wranglerConfigFilePath = path.join(path$1, "./wrangler.jsonc");
|
|
18
18
|
const workerConfigFile = Bun.file(wranglerConfigFilePath);
|
|
19
|
-
if (!workerConfigFile.exists()) {
|
|
20
|
-
console.log(`Could not find ${wranglerConfigFilePath}.`);
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
19
|
return commentJson.parse(
|
|
24
20
|
await workerConfigFile.text(),
|
|
25
21
|
null,
|
|
@@ -61,6 +57,8 @@ const composeWorkerArguments = ({
|
|
|
61
57
|
};
|
|
62
58
|
};
|
|
63
59
|
|
|
60
|
+
exports.COMPATIBILITY_DATE = COMPATIBILITY_DATE;
|
|
61
|
+
exports.COMPATIBILITY_FLAGS = COMPATIBILITY_FLAGS;
|
|
64
62
|
exports.D1_LOCATION_HINT = D1_LOCATION_HINT;
|
|
65
63
|
exports.QUEUE_DELIVERY_DELAY = QUEUE_DELIVERY_DELAY;
|
|
66
64
|
exports.QUEUE_MESSAGE_RETENTION_PERIOD = QUEUE_MESSAGE_RETENTION_PERIOD;
|