@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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const worker = require('../shared/backend-sdk.DRtTRYdh.cjs');
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.DCTuTktG.cjs';
5
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.DCTuTktG.cjs';
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.C-MJGcqQ.mjs';
5
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.C-MJGcqQ.mjs';
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.CNwKOme4.js';
5
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.CNwKOme4.js';
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.670b7XEP.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 } 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';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const worker = require('../shared/backend-sdk.DRtTRYdh.cjs');
3
+ const worker = require('../shared/backend-sdk.CEul1tWr.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.DCTuTktG.cjs';
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';
@@ -1,3 +1,3 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.C-MJGcqQ.mjs';
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';
@@ -1,3 +1,3 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.CNwKOme4.js';
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';
@@ -1,4 +1,4 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.670b7XEP.mjs';
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 workerConfigFile = Bun.file(path.join(path$1, "./wrangler.jsonc"));
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<WorkerConfig>;
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<WorkerConfig>;
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<WorkerConfig>;
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 workerConfigFile = Bun.file(join(path, "./wrangler.jsonc"));
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "5.26.1",
3
+ "version": "5.26.3",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",