@develit-io/backend-sdk 5.26.1 → 5.26.3
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 +1 -1
- package/dist/infrastructure/index.d.cts +2 -2
- package/dist/infrastructure/index.d.mts +2 -2
- package/dist/infrastructure/index.d.ts +2 -2
- package/dist/infrastructure/index.mjs +1 -1
- 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.DRtTRYdh.cjs → backend-sdk.CEul1tWr.cjs} +6 -1
- package/dist/shared/{backend-sdk.C-MJGcqQ.d.mts → backend-sdk.CcWnaBCv.d.mts} +1 -1
- package/dist/shared/{backend-sdk.DCTuTktG.d.cts → backend-sdk.D9IsijTC.d.cts} +1 -1
- package/dist/shared/{backend-sdk.CNwKOme4.d.ts → backend-sdk.tAymSGp7.d.ts} +1 -1
- package/dist/shared/{backend-sdk.670b7XEP.mjs → backend-sdk.yptokdbb.mjs} +6 -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.CEul1tWr.cjs');
|
|
4
4
|
const cloudflare = require('alchemy/cloudflare');
|
|
5
5
|
const environment_consts = require('../shared/backend-sdk.BdcrYpFD.cjs');
|
|
6
6
|
require('@std/path');
|
|
@@ -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.D9IsijTC.cjs';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.D9IsijTC.cjs';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -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.CcWnaBCv.mjs';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.CcWnaBCv.mjs';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -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.tAymSGp7.js';
|
|
5
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.tAymSGp7.js';
|
|
6
6
|
|
|
7
7
|
declare class Infrastructure {
|
|
8
8
|
private project;
|
|
@@ -1,4 +1,4 @@
|
|
|
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 } 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, l as loadWorkerConfig, c as composeWorkerArguments, e as extractWorkerCrons } from '../shared/backend-sdk.yptokdbb.mjs';
|
|
2
2
|
import { KVNamespace, D1Database, Queue, R2Bucket, Worker } from 'alchemy/cloudflare';
|
|
3
3
|
import { E as ENVIRONMENT } from '../shared/backend-sdk.DXRpnctc.mjs';
|
|
4
4
|
import '@std/path';
|
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.D9IsijTC.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.CcWnaBCv.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.tAymSGp7.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.yptokdbb.mjs';
|
|
2
2
|
import '../shared/backend-sdk.DXRpnctc.mjs';
|
|
3
3
|
import '@std/path';
|
|
4
4
|
import 'comment-json';
|
|
@@ -14,7 +14,12 @@ const R2_JURISDICTION = "eu";
|
|
|
14
14
|
const R2_LOCATION_HINT = "weur";
|
|
15
15
|
|
|
16
16
|
const loadWorkerConfig = async ({ path: path$1 }) => {
|
|
17
|
-
const
|
|
17
|
+
const wranglerConfigFilePath = path.join(path$1, "./wrangler.jsonc");
|
|
18
|
+
const workerConfigFile = Bun.file(wranglerConfigFilePath);
|
|
19
|
+
if (!workerConfigFile.exists()) {
|
|
20
|
+
console.log(`Could not find ${wranglerConfigFilePath}.`);
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
18
23
|
return commentJson.parse(
|
|
19
24
|
await workerConfigFile.text(),
|
|
20
25
|
null,
|
|
@@ -18,7 +18,7 @@ interface WorkerConfig {
|
|
|
18
18
|
|
|
19
19
|
declare const loadWorkerConfig: ({ path }: {
|
|
20
20
|
path: string;
|
|
21
|
-
}) => Promise<
|
|
21
|
+
}) => Promise<{}>;
|
|
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<{}>;
|
|
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<{}>;
|
|
22
22
|
declare const extractWorkerCrons: ({ workerConfig, environment, }: {
|
|
23
23
|
workerConfig: WorkerConfig;
|
|
24
24
|
environment: Environment;
|
|
@@ -12,7 +12,12 @@ const R2_JURISDICTION = "eu";
|
|
|
12
12
|
const R2_LOCATION_HINT = "weur";
|
|
13
13
|
|
|
14
14
|
const loadWorkerConfig = async ({ path }) => {
|
|
15
|
-
const
|
|
15
|
+
const wranglerConfigFilePath = join(path, "./wrangler.jsonc");
|
|
16
|
+
const workerConfigFile = Bun.file(wranglerConfigFilePath);
|
|
17
|
+
if (!workerConfigFile.exists()) {
|
|
18
|
+
console.log(`Could not find ${wranglerConfigFilePath}.`);
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
16
21
|
return parse(
|
|
17
22
|
await workerConfigFile.text(),
|
|
18
23
|
null,
|