@upstash/workflow 0.1.4 → 0.2.0

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/express.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  __require,
4
4
  __toESM,
5
5
  serve
6
- } from "./chunk-HO2SB246.mjs";
6
+ } from "./chunk-5R2BFC3N.mjs";
7
7
 
8
8
  // node_modules/depd/index.js
9
9
  var require_depd = __commonJS({
@@ -15291,9 +15291,19 @@ var require_object_inspect = __commonJS({
15291
15291
  var utilInspect = require_util_inspect();
15292
15292
  var inspectCustom = utilInspect.custom;
15293
15293
  var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
15294
+ var quotes = {
15295
+ __proto__: null,
15296
+ "double": '"',
15297
+ single: "'"
15298
+ };
15299
+ var quoteREs = {
15300
+ __proto__: null,
15301
+ "double": /(["\\])/g,
15302
+ single: /(['\\])/g
15303
+ };
15294
15304
  module.exports = function inspect_(obj, options, depth, seen) {
15295
15305
  var opts = options || {};
15296
- if (has(opts, "quoteStyle") && (opts.quoteStyle !== "single" && opts.quoteStyle !== "double")) {
15306
+ if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) {
15297
15307
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
15298
15308
  }
15299
15309
  if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
@@ -15474,7 +15484,8 @@ var require_object_inspect = __commonJS({
15474
15484
  return String(obj);
15475
15485
  };
15476
15486
  function wrapQuotes(s, defaultStyle, opts) {
15477
- var quoteChar = (opts.quoteStyle || defaultStyle) === "double" ? '"' : "'";
15487
+ var style = opts.quoteStyle || defaultStyle;
15488
+ var quoteChar = quotes[style];
15478
15489
  return quoteChar + s + quoteChar;
15479
15490
  }
15480
15491
  function quote(s) {
@@ -15649,7 +15660,9 @@ var require_object_inspect = __commonJS({
15649
15660
  var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
15650
15661
  return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
15651
15662
  }
15652
- var s = $replace.call($replace.call(str, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, lowbyte);
15663
+ var quoteRE = quoteREs[opts.quoteStyle || "single"];
15664
+ quoteRE.lastIndex = 0;
15665
+ var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
15653
15666
  return wrapQuotes(s, "single", opts);
15654
15667
  }
15655
15668
  function lowbyte(c) {
package/h3.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as h3 from 'h3';
2
- import { R as RouteFunction, W as WorkflowServeOptions } from './types-CQuc-j8n.mjs';
2
+ import { R as RouteFunction, W as WorkflowServeOptions } from './types-Cki_MHrh.mjs';
3
3
  import '@upstash/qstash';
4
4
 
5
5
  declare const serve: <TInitialPayload = unknown>(routeFunction: RouteFunction<TInitialPayload>, options?: Omit<WorkflowServeOptions<Response, TInitialPayload>, "onStepFinish">) => {
package/h3.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as h3 from 'h3';
2
- import { R as RouteFunction, W as WorkflowServeOptions } from './types-CQuc-j8n.js';
2
+ import { R as RouteFunction, W as WorkflowServeOptions } from './types-Cki_MHrh.js';
3
3
  import '@upstash/qstash';
4
4
 
5
5
  declare const serve: <TInitialPayload = unknown>(routeFunction: RouteFunction<TInitialPayload>, options?: Omit<WorkflowServeOptions<Response, TInitialPayload>, "onStepFinish">) => {