@upstash/qstash 2.7.11-canary-3 → 2.7.11

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/svelte.js CHANGED
@@ -206,7 +206,7 @@ var QStashWorkflowAbort = class extends Error {
206
206
  stepName;
207
207
  constructor(stepName, stepInfo) {
208
208
  super(
209
- `This is an QStash Workflow error thrown after a step executes. It is expected to be raised. Make sure that you await for each step. Also, if you are using try/catch blocks, you should not wrap context.run/sleep/sleepUntil/call methods with try/catch. Aborting workflow after executing step '${stepName}'.`
209
+ `This is an Upstash Workflow error thrown after a step executes. It is expected to be raised. Make sure that you await for each step. Also, if you are using try/catch blocks, you should not wrap context.run/sleep/sleepUntil/call methods with try/catch. Aborting workflow after executing step '${stepName}'.`
210
210
  );
211
211
  this.name = "QStashWorkflowAbort";
212
212
  this.stepName = stepName;
@@ -462,7 +462,7 @@ var Chat = class _Chat {
462
462
  */
463
463
  // eslint-disable-next-line @typescript-eslint/require-await
464
464
  createThirdParty = async (request) => {
465
- const { baseUrl, token, owner } = request.provider;
465
+ const { baseUrl, token, owner, organization } = request.provider;
466
466
  if (owner === "upstash")
467
467
  throw new Error("Upstash is not 3rd party provider!");
468
468
  delete request.provider;
@@ -476,6 +476,9 @@ var Chat = class _Chat {
476
476
  const headers = {
477
477
  "Content-Type": "application/json",
478
478
  Authorization: `Bearer ${token}`,
479
+ ...organization ? {
480
+ "OpenAI-Organization": organization
481
+ } : {},
479
482
  ...isStream ? {
480
483
  Connection: "keep-alive",
481
484
  Accept: "text/event-stream",
@@ -691,7 +694,7 @@ function decodeBase64(base64) {
691
694
  return new TextDecoder().decode(intArray);
692
695
  } catch (error) {
693
696
  console.warn(
694
- `Upstash Qstash: Failed while decoding base64 "${base64}". Decoding with atob and returning it instead. Error: ${error}`
697
+ `Upstash Qstash: Failed while decoding base64 "${base64}". Decoding with atob and returning it instead. ${error}`
695
698
  );
696
699
  return atob(base64);
697
700
  }
@@ -999,377 +1002,11 @@ var DEFAULT_CONTENT_TYPE = "application/json";
999
1002
  var NO_CONCURRENCY = 1;
1000
1003
  var DEFAULT_RETRIES = 3;
1001
1004
 
1002
- // node_modules/neverthrow/dist/index.es.js
1003
- var defaultErrorConfig = {
1004
- withStackTrace: false
1005
- };
1006
- var createNeverThrowError = (message, result, config = defaultErrorConfig) => {
1007
- const data = result.isOk() ? { type: "Ok", value: result.value } : { type: "Err", value: result.error };
1008
- const maybeStack = config.withStackTrace ? new Error().stack : void 0;
1009
- return {
1010
- data,
1011
- message,
1012
- stack: maybeStack
1013
- };
1014
- };
1015
- function __awaiter(thisArg, _arguments, P, generator) {
1016
- function adopt(value) {
1017
- return value instanceof P ? value : new P(function(resolve) {
1018
- resolve(value);
1019
- });
1020
- }
1021
- return new (P || (P = Promise))(function(resolve, reject) {
1022
- function fulfilled(value) {
1023
- try {
1024
- step(generator.next(value));
1025
- } catch (e) {
1026
- reject(e);
1027
- }
1028
- }
1029
- function rejected(value) {
1030
- try {
1031
- step(generator["throw"](value));
1032
- } catch (e) {
1033
- reject(e);
1034
- }
1035
- }
1036
- function step(result) {
1037
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
1038
- }
1039
- step((generator = generator.apply(thisArg, [])).next());
1040
- });
1041
- }
1042
- function __values(o) {
1043
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1044
- if (m)
1045
- return m.call(o);
1046
- if (o && typeof o.length === "number")
1047
- return {
1048
- next: function() {
1049
- if (o && i >= o.length)
1050
- o = void 0;
1051
- return { value: o && o[i++], done: !o };
1052
- }
1053
- };
1054
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1055
- }
1056
- function __await(v) {
1057
- return this instanceof __await ? (this.v = v, this) : new __await(v);
1058
- }
1059
- function __asyncGenerator(thisArg, _arguments, generator) {
1060
- if (!Symbol.asyncIterator)
1061
- throw new TypeError("Symbol.asyncIterator is not defined.");
1062
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
1063
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
1064
- return this;
1065
- }, i;
1066
- function verb(n) {
1067
- if (g[n])
1068
- i[n] = function(v) {
1069
- return new Promise(function(a, b) {
1070
- q.push([n, v, a, b]) > 1 || resume(n, v);
1071
- });
1072
- };
1073
- }
1074
- function resume(n, v) {
1075
- try {
1076
- step(g[n](v));
1077
- } catch (e) {
1078
- settle(q[0][3], e);
1079
- }
1080
- }
1081
- function step(r) {
1082
- r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
1083
- }
1084
- function fulfill(value) {
1085
- resume("next", value);
1086
- }
1087
- function reject(value) {
1088
- resume("throw", value);
1089
- }
1090
- function settle(f, v) {
1091
- if (f(v), q.shift(), q.length)
1092
- resume(q[0][0], q[0][1]);
1093
- }
1094
- }
1095
- function __asyncDelegator(o) {
1096
- var i, p;
1097
- return i = {}, verb("next"), verb("throw", function(e) {
1098
- throw e;
1099
- }), verb("return"), i[Symbol.iterator] = function() {
1100
- return this;
1101
- }, i;
1102
- function verb(n, f) {
1103
- i[n] = o[n] ? function(v) {
1104
- return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v;
1105
- } : f;
1106
- }
1107
- }
1108
- function __asyncValues(o) {
1109
- if (!Symbol.asyncIterator)
1110
- throw new TypeError("Symbol.asyncIterator is not defined.");
1111
- var m = o[Symbol.asyncIterator], i;
1112
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
1113
- return this;
1114
- }, i);
1115
- function verb(n) {
1116
- i[n] = o[n] && function(v) {
1117
- return new Promise(function(resolve, reject) {
1118
- v = o[n](v), settle(resolve, reject, v.done, v.value);
1119
- });
1120
- };
1121
- }
1122
- function settle(resolve, reject, d, v) {
1123
- Promise.resolve(v).then(function(v2) {
1124
- resolve({ value: v2, done: d });
1125
- }, reject);
1126
- }
1127
- }
1128
- var ResultAsync = class _ResultAsync {
1129
- constructor(res) {
1130
- this._promise = res;
1131
- }
1132
- static fromSafePromise(promise) {
1133
- const newPromise = promise.then((value) => new Ok(value));
1134
- return new _ResultAsync(newPromise);
1135
- }
1136
- static fromPromise(promise, errorFn) {
1137
- const newPromise = promise.then((value) => new Ok(value)).catch((e) => new Err(errorFn(e)));
1138
- return new _ResultAsync(newPromise);
1139
- }
1140
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1141
- static fromThrowable(fn, errorFn) {
1142
- return (...args) => {
1143
- return new _ResultAsync((() => __awaiter(this, void 0, void 0, function* () {
1144
- try {
1145
- return new Ok(yield fn(...args));
1146
- } catch (error) {
1147
- return new Err(errorFn ? errorFn(error) : error);
1148
- }
1149
- }))());
1150
- };
1151
- }
1152
- static combine(asyncResultList) {
1153
- return combineResultAsyncList(asyncResultList);
1154
- }
1155
- static combineWithAllErrors(asyncResultList) {
1156
- return combineResultAsyncListWithAllErrors(asyncResultList);
1157
- }
1158
- map(f) {
1159
- return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
1160
- if (res.isErr()) {
1161
- return new Err(res.error);
1162
- }
1163
- return new Ok(yield f(res.value));
1164
- })));
1165
- }
1166
- mapErr(f) {
1167
- return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
1168
- if (res.isOk()) {
1169
- return new Ok(res.value);
1170
- }
1171
- return new Err(yield f(res.error));
1172
- })));
1173
- }
1174
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1175
- andThen(f) {
1176
- return new _ResultAsync(this._promise.then((res) => {
1177
- if (res.isErr()) {
1178
- return new Err(res.error);
1179
- }
1180
- const newValue = f(res.value);
1181
- return newValue instanceof _ResultAsync ? newValue._promise : newValue;
1182
- }));
1183
- }
1184
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1185
- orElse(f) {
1186
- return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
1187
- if (res.isErr()) {
1188
- return f(res.error);
1189
- }
1190
- return new Ok(res.value);
1191
- })));
1192
- }
1193
- match(ok2, _err) {
1194
- return this._promise.then((res) => res.match(ok2, _err));
1195
- }
1196
- unwrapOr(t) {
1197
- return this._promise.then((res) => res.unwrapOr(t));
1198
- }
1199
- /**
1200
- * Emulates Rust's `?` operator in `safeTry`'s body. See also `safeTry`.
1201
- */
1202
- safeUnwrap() {
1203
- return __asyncGenerator(this, arguments, function* safeUnwrap_1() {
1204
- return yield __await(yield __await(yield* __asyncDelegator(__asyncValues(yield __await(this._promise.then((res) => res.safeUnwrap()))))));
1205
- });
1206
- }
1207
- // Makes ResultAsync implement PromiseLike<Result>
1208
- then(successCallback, failureCallback) {
1209
- return this._promise.then(successCallback, failureCallback);
1210
- }
1211
- };
1212
- var errAsync = (err2) => new ResultAsync(Promise.resolve(new Err(err2)));
1213
- var fromPromise = ResultAsync.fromPromise;
1214
- var fromSafePromise = ResultAsync.fromSafePromise;
1215
- var fromAsyncThrowable = ResultAsync.fromThrowable;
1216
- var combineResultList = (resultList) => {
1217
- let acc = ok([]);
1218
- for (const result of resultList) {
1219
- if (result.isErr()) {
1220
- acc = err(result.error);
1221
- break;
1222
- } else {
1223
- acc.map((list) => list.push(result.value));
1224
- }
1225
- }
1226
- return acc;
1227
- };
1228
- var combineResultAsyncList = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultList);
1229
- var combineResultListWithAllErrors = (resultList) => {
1230
- let acc = ok([]);
1231
- for (const result of resultList) {
1232
- if (result.isErr() && acc.isErr()) {
1233
- acc.error.push(result.error);
1234
- } else if (result.isErr() && acc.isOk()) {
1235
- acc = err([result.error]);
1236
- } else if (result.isOk() && acc.isOk()) {
1237
- acc.value.push(result.value);
1238
- }
1239
- }
1240
- return acc;
1241
- };
1242
- var combineResultAsyncListWithAllErrors = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultListWithAllErrors);
1243
- var Result;
1244
- (function(Result2) {
1245
- function fromThrowable2(fn, errorFn) {
1246
- return (...args) => {
1247
- try {
1248
- const result = fn(...args);
1249
- return ok(result);
1250
- } catch (e) {
1251
- return err(errorFn ? errorFn(e) : e);
1252
- }
1253
- };
1254
- }
1255
- Result2.fromThrowable = fromThrowable2;
1256
- function combine(resultList) {
1257
- return combineResultList(resultList);
1258
- }
1259
- Result2.combine = combine;
1260
- function combineWithAllErrors(resultList) {
1261
- return combineResultListWithAllErrors(resultList);
1262
- }
1263
- Result2.combineWithAllErrors = combineWithAllErrors;
1264
- })(Result || (Result = {}));
1265
- var ok = (value) => new Ok(value);
1266
- var err = (err2) => new Err(err2);
1267
- var Ok = class {
1268
- constructor(value) {
1269
- this.value = value;
1270
- }
1271
- isOk() {
1272
- return true;
1273
- }
1274
- isErr() {
1275
- return !this.isOk();
1276
- }
1277
- map(f) {
1278
- return ok(f(this.value));
1279
- }
1280
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1281
- mapErr(_f) {
1282
- return ok(this.value);
1283
- }
1284
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1285
- andThen(f) {
1286
- return f(this.value);
1287
- }
1288
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1289
- orElse(_f) {
1290
- return ok(this.value);
1291
- }
1292
- asyncAndThen(f) {
1293
- return f(this.value);
1294
- }
1295
- asyncMap(f) {
1296
- return ResultAsync.fromSafePromise(f(this.value));
1297
- }
1298
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1299
- unwrapOr(_v) {
1300
- return this.value;
1301
- }
1302
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1303
- match(ok2, _err) {
1304
- return ok2(this.value);
1305
- }
1306
- safeUnwrap() {
1307
- const value = this.value;
1308
- return function* () {
1309
- return value;
1310
- }();
1311
- }
1312
- _unsafeUnwrap(_) {
1313
- return this.value;
1314
- }
1315
- _unsafeUnwrapErr(config) {
1316
- throw createNeverThrowError("Called `_unsafeUnwrapErr` on an Ok", this, config);
1317
- }
1318
- };
1319
- var Err = class {
1320
- constructor(error) {
1321
- this.error = error;
1322
- }
1323
- isOk() {
1324
- return false;
1325
- }
1326
- isErr() {
1327
- return !this.isOk();
1328
- }
1329
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1330
- map(_f) {
1331
- return err(this.error);
1332
- }
1333
- mapErr(f) {
1334
- return err(f(this.error));
1335
- }
1336
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1337
- andThen(_f) {
1338
- return err(this.error);
1339
- }
1340
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1341
- orElse(f) {
1342
- return f(this.error);
1343
- }
1344
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1345
- asyncAndThen(_f) {
1346
- return errAsync(this.error);
1347
- }
1348
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1349
- asyncMap(_f) {
1350
- return errAsync(this.error);
1351
- }
1352
- unwrapOr(v) {
1353
- return v;
1354
- }
1355
- match(_ok, err2) {
1356
- return err2(this.error);
1357
- }
1358
- safeUnwrap() {
1359
- const error = this.error;
1360
- return function* () {
1361
- yield err(error);
1362
- throw new Error("Do not use this generator out of `safeTry`");
1363
- }();
1364
- }
1365
- _unsafeUnwrap(config) {
1366
- throw createNeverThrowError("Called `_unsafeUnwrap` on an Err", this, config);
1367
- }
1368
- _unsafeUnwrapErr(_) {
1369
- return this.error;
1370
- }
1371
- };
1372
- var fromThrowable = Result.fromThrowable;
1005
+ // src/client/workflow/context.ts
1006
+ var import_neverthrow2 = require("neverthrow");
1007
+
1008
+ // src/client/workflow/workflow-requests.ts
1009
+ var import_neverthrow = require("neverthrow");
1373
1010
 
1374
1011
  // src/client/workflow/types.ts
1375
1012
  var StepTypes = ["Initial", "Run", "SleepFor", "SleepUntil", "Call"];
@@ -1397,10 +1034,10 @@ var triggerFirstInvocation = async (workflowContext, retries, debug) => {
1397
1034
  body: workflowContext.requestPayload,
1398
1035
  url: workflowContext.url
1399
1036
  });
1400
- return ok("success");
1037
+ return (0, import_neverthrow.ok)("success");
1401
1038
  } catch (error) {
1402
1039
  const error_ = error;
1403
- return err(error_);
1040
+ return (0, import_neverthrow.err)(error_);
1404
1041
  }
1405
1042
  };
1406
1043
  var triggerRouteFunction = async ({
@@ -1410,10 +1047,10 @@ var triggerRouteFunction = async ({
1410
1047
  try {
1411
1048
  await onStep();
1412
1049
  await onCleanup();
1413
- return ok("workflow-finished");
1050
+ return (0, import_neverthrow.ok)("workflow-finished");
1414
1051
  } catch (error) {
1415
1052
  const error_ = error;
1416
- return error_ instanceof QStashWorkflowAbort ? ok("step-finished") : err(error_);
1053
+ return error_ instanceof QStashWorkflowAbort ? (0, import_neverthrow.ok)("step-finished") : (0, import_neverthrow.err)(error_);
1417
1054
  }
1418
1055
  };
1419
1056
  var triggerWorkflowDelete = async (workflowContext, debug, cancel = false) => {
@@ -1445,13 +1082,13 @@ var handleThirdPartyCallResult = async (request, requestPayload, client, workflo
1445
1082
  if (!(callbackMessage.status >= 200 && callbackMessage.status < 300)) {
1446
1083
  await debug?.log("WARN", "SUBMIT_THIRD_PARTY_RESULT", {
1447
1084
  status: callbackMessage.status,
1448
- body: decodeBase64(callbackMessage.body)
1085
+ body: atob(callbackMessage.body)
1449
1086
  });
1450
1087
  console.warn(
1451
1088
  `Workflow Warning: "context.call" failed with status ${callbackMessage.status} and will retry (if there are retries remaining). Error Message:
1452
- ${decodeBase64(callbackMessage.body)}`
1089
+ ${atob(callbackMessage.body)}`
1453
1090
  );
1454
- return ok("call-will-retry");
1091
+ return (0, import_neverthrow.ok)("call-will-retry");
1455
1092
  }
1456
1093
  const workflowRunId = request.headers.get(WORKFLOW_ID_HEADER);
1457
1094
  const stepIdString = request.headers.get("Upstash-Workflow-StepId");
@@ -1485,7 +1122,7 @@ ${decodeBase64(callbackMessage.body)}`
1485
1122
  stepId: Number(stepIdString),
1486
1123
  stepName,
1487
1124
  stepType,
1488
- out: decodeBase64(callbackMessage.body),
1125
+ out: atob(callbackMessage.body),
1489
1126
  concurrent: Number(concurrentString)
1490
1127
  };
1491
1128
  await debug?.log("SUBMIT", "SUBMIT_THIRD_PARTY_RESULT", {
@@ -1502,13 +1139,13 @@ ${decodeBase64(callbackMessage.body)}`
1502
1139
  await debug?.log("SUBMIT", "SUBMIT_THIRD_PARTY_RESULT", {
1503
1140
  messageId: result.messageId
1504
1141
  });
1505
- return ok("is-call-return");
1142
+ return (0, import_neverthrow.ok)("is-call-return");
1506
1143
  } else {
1507
- return ok("continue-workflow");
1144
+ return (0, import_neverthrow.ok)("continue-workflow");
1508
1145
  }
1509
1146
  } catch (error) {
1510
1147
  const isCallReturn = request.headers.get("Upstash-Workflow-Callback");
1511
- return err(
1148
+ return (0, import_neverthrow.err)(
1512
1149
  new QStashWorkflowError(
1513
1150
  `Error when handling call return (isCallReturn=${isCallReturn}): ${error}`
1514
1151
  )
@@ -2364,11 +2001,11 @@ var DisabledWorkflowContext = class _DisabledWorkflowContext extends WorkflowCon
2364
2001
  await routeFunction(disabledContext);
2365
2002
  } catch (error) {
2366
2003
  if (error instanceof QStashWorkflowAbort && error.stepName === this.disabledMessage) {
2367
- return ok("step-found");
2004
+ return (0, import_neverthrow2.ok)("step-found");
2368
2005
  }
2369
- return err(error);
2006
+ return (0, import_neverthrow2.err)(error);
2370
2007
  }
2371
- return ok("run-ended");
2008
+ return (0, import_neverthrow2.ok)("run-ended");
2372
2009
  }
2373
2010
  };
2374
2011
 
@@ -2421,6 +2058,7 @@ var WorkflowLogger = class _WorkflowLogger {
2421
2058
  };
2422
2059
 
2423
2060
  // src/client/workflow/workflow-parser.ts
2061
+ var import_neverthrow3 = require("neverthrow");
2424
2062
  var getPayload = async (request) => {
2425
2063
  try {
2426
2064
  return await request.text();
@@ -2477,7 +2115,7 @@ var checkIfLastOneIsDuplicate = async (steps, debug) => {
2477
2115
  for (let index = 0; index < steps.length - 1; index++) {
2478
2116
  const step = steps[index];
2479
2117
  if (step.stepId === lastStepId && step.targetStep === lastTargetStepId) {
2480
- const message = `QStash Workflow: The step '${step.stepName}' with id '${step.stepId}' has run twice during workflow execution. Rest of the workflow will continue running as usual.`;
2118
+ const message = `Upstash Workflow: The step '${step.stepName}' with id '${step.stepId}' has run twice during workflow execution. Rest of the workflow will continue running as usual.`;
2481
2119
  await debug?.log("WARN", "RESPONSE_DEFAULT", message);
2482
2120
  console.warn(message);
2483
2121
  return true;
@@ -2525,10 +2163,10 @@ var parseRequest = async (requestPayload, isFirstInvocation, debug) => {
2525
2163
  };
2526
2164
  var handleFailure = async (request, requestPayload, qstashClient, initialPayloadParser, failureFunction, debug) => {
2527
2165
  if (request.headers.get(WORKFLOW_FAILURE_HEADER) !== "true") {
2528
- return ok("not-failure-callback");
2166
+ return (0, import_neverthrow3.ok)("not-failure-callback");
2529
2167
  }
2530
2168
  if (!failureFunction) {
2531
- return err(
2169
+ return (0, import_neverthrow3.err)(
2532
2170
  new QStashWorkflowError(
2533
2171
  "Workflow endpoint is called to handle a failure, but a failureFunction is not provided in serve options. Either provide a failureUrl or a failureFunction."
2534
2172
  )
@@ -2558,9 +2196,9 @@ var handleFailure = async (request, requestPayload, qstashClient, initialPayload
2558
2196
  });
2559
2197
  await failureFunction(workflowContext, status, errorPayload.message, header);
2560
2198
  } catch (error) {
2561
- return err(error);
2199
+ return (0, import_neverthrow3.err)(error);
2562
2200
  }
2563
- return ok("is-failure-callback");
2201
+ return (0, import_neverthrow3.ok)("is-failure-callback");
2564
2202
  };
2565
2203
 
2566
2204
  // src/client/workflow/serve.ts
@@ -2622,7 +2260,7 @@ var serve = (routeFunction, options) => {
2622
2260
  }) : initialWorkflowUrl;
2623
2261
  if (workflowUrl !== initialWorkflowUrl) {
2624
2262
  await debug?.log("WARN", "ENDPOINT_START", {
2625
- warning: `QStash Workflow: replacing the base of the url with "${baseUrl}" and using it as workflow endpoint.`,
2263
+ warning: `Upstash Workflow: replacing the base of the url with "${baseUrl}" and using it as workflow endpoint.`,
2626
2264
  originalURL: initialWorkflowUrl,
2627
2265
  updatedURL: workflowUrl
2628
2266
  });
package/svelte.mjs CHANGED
@@ -2,7 +2,7 @@ import "./chunk-CIVGPRQN.mjs";
2
2
  import {
3
3
  Receiver,
4
4
  serve
5
- } from "./chunk-KGI26PDH.mjs";
5
+ } from "./chunk-Q6E5NF42.mjs";
6
6
 
7
7
  // platforms/svelte.ts
8
8
  var verifySignatureSvelte = (handler, config) => {
package/workflow.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export { af as AsyncStepFunction, a8 as DisabledWorkflowContext, F as FailureFunctionPayload, ai as FinishCondition, ak as LogLevel, ah as ParallelCallState, ad as RawStep, aj as RequiredExceptFields, a2 as RouteFunction, S as Step, ag as StepFunction, ac as StepType, ab as StepTypes, ae as SyncStepFunction, a4 as Workflow, a9 as WorkflowClient, a7 as WorkflowContext, am as WorkflowLogger, al as WorkflowLoggerOptions, aa as WorkflowReceiver, a3 as WorkflowServeOptions, a5 as processOptions, a6 as serve } from './client-DkrYCqaq.mjs';
1
+ export { af as AsyncStepFunction, a8 as DisabledWorkflowContext, F as FailureFunctionPayload, ai as FinishCondition, ak as LogLevel, ah as ParallelCallState, ad as RawStep, aj as RequiredExceptFields, a2 as RouteFunction, S as Step, ag as StepFunction, ac as StepType, ab as StepTypes, ae as SyncStepFunction, a4 as Workflow, a9 as WorkflowClient, a7 as WorkflowContext, am as WorkflowLogger, al as WorkflowLoggerOptions, aa as WorkflowReceiver, a3 as WorkflowServeOptions, a5 as processOptions, a6 as serve } from './client-DEZq0-qk.mjs';
2
2
  import 'neverthrow';
package/workflow.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { af as AsyncStepFunction, a8 as DisabledWorkflowContext, F as FailureFunctionPayload, ai as FinishCondition, ak as LogLevel, ah as ParallelCallState, ad as RawStep, aj as RequiredExceptFields, a2 as RouteFunction, S as Step, ag as StepFunction, ac as StepType, ab as StepTypes, ae as SyncStepFunction, a4 as Workflow, a9 as WorkflowClient, a7 as WorkflowContext, am as WorkflowLogger, al as WorkflowLoggerOptions, aa as WorkflowReceiver, a3 as WorkflowServeOptions, a5 as processOptions, a6 as serve } from './client-DkrYCqaq.js';
1
+ export { af as AsyncStepFunction, a8 as DisabledWorkflowContext, F as FailureFunctionPayload, ai as FinishCondition, ak as LogLevel, ah as ParallelCallState, ad as RawStep, aj as RequiredExceptFields, a2 as RouteFunction, S as Step, ag as StepFunction, ac as StepType, ab as StepTypes, ae as SyncStepFunction, a4 as Workflow, a9 as WorkflowClient, a7 as WorkflowContext, am as WorkflowLogger, al as WorkflowLoggerOptions, aa as WorkflowReceiver, a3 as WorkflowServeOptions, a5 as processOptions, a6 as serve } from './client-DEZq0-qk.js';
2
2
  import 'neverthrow';