@develit-io/backend-sdk 5.24.2 → 5.24.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 +2 -2
- package/dist/infrastructure/index.mjs +2 -2
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/shared/{backend-sdk.CoCjd5zr.cjs → backend-sdk.B5evt8s2.cjs} +2 -2
- package/dist/shared/{backend-sdk.CoB3mJ3c.mjs → backend-sdk.CxGZ-mdg.mjs} +2 -2
- 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.B5evt8s2.cjs');
|
|
4
4
|
const cloudflare = require('alchemy/cloudflare');
|
|
5
5
|
const environment_consts = require('../shared/backend-sdk.BdcrYpFD.cjs');
|
|
6
6
|
require('@std/path');
|
|
@@ -162,7 +162,7 @@ class Infrastructure {
|
|
|
162
162
|
crons: crons || worker.extractWorkerCrons({
|
|
163
163
|
workerConfig,
|
|
164
164
|
environment: this.environment
|
|
165
|
-
})
|
|
165
|
+
}),
|
|
166
166
|
bindings,
|
|
167
167
|
eventSources
|
|
168
168
|
})
|
|
@@ -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.CxGZ-mdg.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';
|
|
@@ -160,7 +160,7 @@ class Infrastructure {
|
|
|
160
160
|
crons: crons || extractWorkerCrons({
|
|
161
161
|
workerConfig,
|
|
162
162
|
environment: this.environment
|
|
163
|
-
})
|
|
163
|
+
}),
|
|
164
164
|
bindings,
|
|
165
165
|
eventSources
|
|
166
166
|
})
|
package/dist/node/index.cjs
CHANGED
package/dist/node/index.mjs
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.CxGZ-mdg.mjs';
|
|
2
2
|
import '../shared/backend-sdk.DXRpnctc.mjs';
|
|
3
3
|
import '@std/path';
|
|
@@ -21,9 +21,9 @@ const extractWorkerCrons = ({
|
|
|
21
21
|
environment
|
|
22
22
|
}) => {
|
|
23
23
|
if (!environment_consts.ENVIRONMENT.includes(String(environment))) {
|
|
24
|
-
return workerConfig.triggers
|
|
24
|
+
return workerConfig.triggers?.crons || [];
|
|
25
25
|
}
|
|
26
|
-
return workerConfig.env[environment]
|
|
26
|
+
return workerConfig.env[environment]?.triggers?.crons || [];
|
|
27
27
|
};
|
|
28
28
|
const composeWorkerArguments = ({
|
|
29
29
|
resourceName,
|
|
@@ -19,9 +19,9 @@ const extractWorkerCrons = ({
|
|
|
19
19
|
environment
|
|
20
20
|
}) => {
|
|
21
21
|
if (!ENVIRONMENT.includes(String(environment))) {
|
|
22
|
-
return workerConfig.triggers
|
|
22
|
+
return workerConfig.triggers?.crons || [];
|
|
23
23
|
}
|
|
24
|
-
return workerConfig.env[environment]
|
|
24
|
+
return workerConfig.env[environment]?.triggers?.crons || [];
|
|
25
25
|
};
|
|
26
26
|
const composeWorkerArguments = ({
|
|
27
27
|
resourceName,
|