@develit-io/backend-sdk 5.26.1 → 5.26.2
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 +2 -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 +2 -1
- package/dist/node/index.cjs +2 -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 +2 -1
- package/dist/shared/{backend-sdk.C-MJGcqQ.d.mts → backend-sdk.CcWnaBCv.d.mts} +1 -1
- package/dist/shared/{backend-sdk.DRtTRYdh.cjs → backend-sdk.CeeriD8t.cjs} +8 -1
- package/dist/shared/{backend-sdk.DCTuTktG.d.cts → backend-sdk.D9IsijTC.d.cts} +1 -1
- package/dist/shared/{backend-sdk.670b7XEP.mjs → backend-sdk.DNTOq4pj.mjs} +8 -1
- package/dist/shared/{backend-sdk.CNwKOme4.d.ts → backend-sdk.tAymSGp7.d.ts} +1 -1
- package/package.json +2 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const worker = require('../shared/backend-sdk.
|
|
3
|
+
const worker = require('../shared/backend-sdk.CeeriD8t.cjs');
|
|
4
4
|
const cloudflare = require('alchemy/cloudflare');
|
|
5
5
|
const environment_consts = require('../shared/backend-sdk.BdcrYpFD.cjs');
|
|
6
6
|
require('@std/path');
|
|
7
7
|
require('comment-json');
|
|
8
|
+
require('@std/fs');
|
|
8
9
|
|
|
9
10
|
const composeD1Arguments = ({
|
|
10
11
|
resourceName
|
|
@@ -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,8 +1,9 @@
|
|
|
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.DNTOq4pj.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';
|
|
5
5
|
import 'comment-json';
|
|
6
|
+
import '@std/fs';
|
|
6
7
|
|
|
7
8
|
const composeD1Arguments = ({
|
|
8
9
|
resourceName
|
package/dist/node/index.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const worker = require('../shared/backend-sdk.
|
|
3
|
+
const worker = require('../shared/backend-sdk.CeeriD8t.cjs');
|
|
4
4
|
require('../shared/backend-sdk.BdcrYpFD.cjs');
|
|
5
5
|
require('@std/path');
|
|
6
6
|
require('comment-json');
|
|
7
|
+
require('@std/fs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
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,5 @@
|
|
|
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.DNTOq4pj.mjs';
|
|
2
2
|
import '../shared/backend-sdk.DXRpnctc.mjs';
|
|
3
3
|
import '@std/path';
|
|
4
4
|
import 'comment-json';
|
|
5
|
+
import '@std/fs';
|
|
@@ -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;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const environment_consts = require('./backend-sdk.BdcrYpFD.cjs');
|
|
4
4
|
const path = require('@std/path');
|
|
5
5
|
const commentJson = require('comment-json');
|
|
6
|
+
const fs = require('@std/fs');
|
|
6
7
|
|
|
7
8
|
const COMPATIBILITY_DATE = "2025-06-04";
|
|
8
9
|
const COMPATIBILITY_FLAGS = ["nodejs_compat"];
|
|
@@ -14,7 +15,13 @@ const R2_JURISDICTION = "eu";
|
|
|
14
15
|
const R2_LOCATION_HINT = "weur";
|
|
15
16
|
|
|
16
17
|
const loadWorkerConfig = async ({ path: path$1 }) => {
|
|
17
|
-
const
|
|
18
|
+
const wranglerConfigFilePath = path.join(path$1, "./wrangler.jsonc");
|
|
19
|
+
const wranglerConfigFileExists = fs.exists(wranglerConfigFilePath);
|
|
20
|
+
if (!wranglerConfigFileExists) {
|
|
21
|
+
console.log(`Could not find ${wranglerConfigFilePath}.`);
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
const workerConfigFile = Bun.file(wranglerConfigFilePath);
|
|
18
25
|
return commentJson.parse(
|
|
19
26
|
await workerConfigFile.text(),
|
|
20
27
|
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;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { E as ENVIRONMENT } from './backend-sdk.DXRpnctc.mjs';
|
|
2
2
|
import { join } from '@std/path';
|
|
3
3
|
import { parse } from 'comment-json';
|
|
4
|
+
import { exists } from '@std/fs';
|
|
4
5
|
|
|
5
6
|
const COMPATIBILITY_DATE = "2025-06-04";
|
|
6
7
|
const COMPATIBILITY_FLAGS = ["nodejs_compat"];
|
|
@@ -12,7 +13,13 @@ const R2_JURISDICTION = "eu";
|
|
|
12
13
|
const R2_LOCATION_HINT = "weur";
|
|
13
14
|
|
|
14
15
|
const loadWorkerConfig = async ({ path }) => {
|
|
15
|
-
const
|
|
16
|
+
const wranglerConfigFilePath = join(path, "./wrangler.jsonc");
|
|
17
|
+
const wranglerConfigFileExists = exists(wranglerConfigFilePath);
|
|
18
|
+
if (!wranglerConfigFileExists) {
|
|
19
|
+
console.log(`Could not find ${wranglerConfigFilePath}.`);
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
const workerConfigFile = Bun.file(wranglerConfigFilePath);
|
|
16
23
|
return parse(
|
|
17
24
|
await workerConfigFile.text(),
|
|
18
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-io/backend-sdk",
|
|
3
|
-
"version": "5.26.
|
|
3
|
+
"version": "5.26.2",
|
|
4
4
|
"description": "Develit Backend SDK",
|
|
5
5
|
"author": "Develit.io",
|
|
6
6
|
"license": "ISC",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@cloudflare/workers-types": "4.20250923.0",
|
|
42
|
+
"@std/fs": "npm:@jsr/std__fs",
|
|
42
43
|
"@std/path": "npm:@jsr/std__path",
|
|
43
44
|
"@std/text": "npm:@jsr/std__text",
|
|
44
45
|
"comment-json": "^4.2.5",
|