@camunda8/orchestration-cluster-api 10.0.0-alpha.40 → 10.0.0-alpha.41
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/CHANGELOG.md +7 -0
- package/dist/{CamundaClient-BsoVLG5C.d.ts → CamundaClient-BlKXG8gE.d.ts} +29 -2
- package/dist/{CamundaClient-DsXh8p3U.d.cts → CamundaClient-HroU9acH.d.cts} +29 -2
- package/dist/{chunk-3HNGJ4FZ.js → chunk-267HUCFY.js} +9 -5
- package/dist/chunk-267HUCFY.js.map +1 -0
- package/dist/effect/index.cjs +8 -4
- package/dist/effect/index.cjs.map +1 -1
- package/dist/effect/index.d.cts +1 -1
- package/dist/effect/index.d.ts +1 -1
- package/dist/effect/index.js +1 -1
- package/dist/index.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-3HNGJ4FZ.js.map +0 -1
package/dist/effect/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as effect_Cause from 'effect/Cause';
|
|
2
2
|
import * as effect_Types from 'effect/Types';
|
|
3
3
|
import { Context, Effect, Stream, Duration, Layer, Schedule, Cause, Scope } from 'effect';
|
|
4
|
-
import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-
|
|
4
|
+
import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-HroU9acH.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../logger-D-p21VHo.cjs';
|
|
7
7
|
|
package/dist/effect/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as effect_Cause from 'effect/Cause';
|
|
2
2
|
import * as effect_Types from 'effect/Types';
|
|
3
3
|
import { Context, Effect, Stream, Duration, Layer, Schedule, Cause, Scope } from 'effect';
|
|
4
|
-
import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-
|
|
4
|
+
import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-BlKXG8gE.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../logger-D-p21VHo.js';
|
|
7
7
|
|
package/dist/effect/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -14319,7 +14319,7 @@ function createLogger(opts = {}) {
|
|
|
14319
14319
|
}
|
|
14320
14320
|
|
|
14321
14321
|
// src/runtime/version.ts
|
|
14322
|
-
var packageVersion = "10.0.0-alpha.
|
|
14322
|
+
var packageVersion = "10.0.0-alpha.41";
|
|
14323
14323
|
|
|
14324
14324
|
// src/runtime/supportLogger.ts
|
|
14325
14325
|
var NoopSupportLogger = class {
|
|
@@ -15925,7 +15925,7 @@ var JobWorker = class {
|
|
|
15925
15925
|
};
|
|
15926
15926
|
|
|
15927
15927
|
// src/runtime/jobActions.ts
|
|
15928
|
-
function enrichActivatedJob(raw, client2, log) {
|
|
15928
|
+
function enrichActivatedJob(raw, client2, log, clock = client2.clock) {
|
|
15929
15929
|
let acknowledged = false;
|
|
15930
15930
|
const ack = () => {
|
|
15931
15931
|
if (!acknowledged) {
|
|
@@ -15933,7 +15933,11 @@ function enrichActivatedJob(raw, client2, log) {
|
|
|
15933
15933
|
job.acknowledged = true;
|
|
15934
15934
|
}
|
|
15935
15935
|
};
|
|
15936
|
-
const job = {
|
|
15936
|
+
const job = {
|
|
15937
|
+
...raw,
|
|
15938
|
+
log,
|
|
15939
|
+
clock: { now: () => clock.now(), sleep: (ms, signal) => clock.sleep(ms, signal) }
|
|
15940
|
+
};
|
|
15937
15941
|
job.complete = async (variables = {}, result) => {
|
|
15938
15942
|
try {
|
|
15939
15943
|
await client2.completeJob({
|
|
@@ -16179,7 +16183,7 @@ var ThreadedJobWorker = class {
|
|
|
16179
16183
|
const data = {};
|
|
16180
16184
|
for (const [key, value] of Object.entries(raw)) {
|
|
16181
16185
|
if (typeof value === "function") continue;
|
|
16182
|
-
if (key === "log") continue;
|
|
16186
|
+
if (key === "log" || key === "clock") continue;
|
|
16183
16187
|
data[key] = value;
|
|
16184
16188
|
}
|
|
16185
16189
|
return JSON.parse(JSON.stringify(data));
|