@langwatch/server 3.1.0-beta.22 → 3.1.0-beta.23

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.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>LangWatch</title>
7
7
  <link rel="icon" type="image/x-icon" href="/favicon.ico" />
8
- <script type="module" crossorigin src="/assets/index-TNQ6uyis.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-BEjGS0kI.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/chunk-Bj-mKKzh.js">
10
10
  <link rel="modulepreload" crossorigin href="/assets/preload-helper-rov5CBGT.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/react-C7JcuhbW.js">
@@ -24836,9 +24836,9 @@ ${captureLines}` : capture.stack;
24836
24836
  }
24837
24837
  });
24838
24838
 
24839
- // node_modules/.pnpm/liquidjs@10.25.5/node_modules/liquidjs/dist/liquid.node.js
24839
+ // node_modules/.pnpm/liquidjs@10.25.7/node_modules/liquidjs/dist/liquid.node.js
24840
24840
  var require_liquid_node = __commonJS({
24841
- "node_modules/.pnpm/liquidjs@10.25.5/node_modules/liquidjs/dist/liquid.node.js"(exports2) {
24841
+ "node_modules/.pnpm/liquidjs@10.25.7/node_modules/liquidjs/dist/liquid.node.js"(exports2) {
24842
24842
  "use strict";
24843
24843
  Object.defineProperty(exports2, "__esModule", { value: true });
24844
24844
  var stream = require("stream");
@@ -27637,8 +27637,8 @@ var require_liquid_node = __commonJS({
27637
27637
  this.memoryLimit = memoryLimit ?? new Limiter("memory alloc", renderOptions.memoryLimit ?? opts.memoryLimit);
27638
27638
  this.renderLimit = renderLimit ?? new Limiter("template render", getPerformance().now() + (renderOptions.renderLimit ?? opts.renderLimit));
27639
27639
  }
27640
- getRegister(key) {
27641
- return this.registers[key] = this.registers[key] || {};
27640
+ getRegister(key, defaultValue = void 0) {
27641
+ return this.registers[key] = this.registers[key] || defaultValue;
27642
27642
  }
27643
27643
  setRegister(key, value) {
27644
27644
  return this.registers[key] = value;
@@ -28372,6 +28372,10 @@ var require_liquid_node = __commonJS({
28372
28372
  return Buffer.from(str, "base64").toString("utf8");
28373
28373
  }
28374
28374
  function base64_encode(value) {
28375
+ if (typeof Buffer !== "undefined" && Buffer.isBuffer(value)) {
28376
+ this.context.memoryLimit.use(value.byteLength);
28377
+ return value.toString("base64");
28378
+ }
28375
28379
  const str = stringify(value);
28376
28380
  this.context.memoryLimit.use(str.length);
28377
28381
  return base64Encode(str);
@@ -28452,7 +28456,7 @@ var require_liquid_node = __commonJS({
28452
28456
  return;
28453
28457
  }
28454
28458
  const continueKey = "continue-" + this.variable + "-" + this.collection.getText();
28455
- ctx.push({ continue: ctx.getRegister(continueKey) });
28459
+ ctx.push({ continue: ctx.getRegister(continueKey, {}) });
28456
28460
  const hash = yield this.hash.render(ctx);
28457
28461
  ctx.pop();
28458
28462
  const modifiers = this.liquid.options.orderedFilterParameters ? Object.keys(hash).filter((x) => MODIFIERS.includes(x)) : MODIFIERS.filter((x) => hash[x] !== void 0);
@@ -28866,7 +28870,7 @@ var require_liquid_node = __commonJS({
28866
28870
  *render(ctx, emitter) {
28867
28871
  const group = yield evalToken(this.group, ctx);
28868
28872
  const fingerprint = `cycle:${group}:` + this.candidates.join(",");
28869
- const groups = ctx.getRegister("cycle");
28873
+ const groups = ctx.getRegister("cycle", {});
28870
28874
  let idx = groups[fingerprint];
28871
28875
  if (idx === void 0) {
28872
28876
  idx = groups[fingerprint] = 0;
@@ -28970,7 +28974,7 @@ var require_liquid_node = __commonJS({
28970
28974
  const templates = yield liquid2._parseLayoutFile(filepath, ctx.sync, this["currentFile"]);
28971
28975
  ctx.setRegister("blockMode", BlockMode.STORE);
28972
28976
  const html = yield renderer.renderTemplates(this.templates, ctx);
28973
- const blocks = ctx.getRegister("blocks");
28977
+ const blocks = ctx.getRegister("blocks", {});
28974
28978
  if (blocks[""] === void 0)
28975
28979
  blocks[""] = (parent, emitter2) => emitter2.write(html);
28976
28980
  ctx.setRegister("blockMode", BlockMode.OUTPUT);
@@ -29019,18 +29023,24 @@ var require_liquid_node = __commonJS({
29019
29023
  *render(ctx, emitter) {
29020
29024
  const blockRender = this.getBlockRender(ctx);
29021
29025
  if (ctx.getRegister("blockMode") === BlockMode.STORE) {
29022
- ctx.getRegister("blocks")[this.block] = blockRender;
29026
+ ctx.getRegister("blocks", {})[this.block] = blockRender;
29023
29027
  } else {
29024
29028
  yield blockRender(new BlockDrop(), emitter);
29025
29029
  }
29026
29030
  }
29027
29031
  getBlockRender(ctx) {
29032
+ const self = this;
29028
29033
  const { liquid: liquid2, templates } = this;
29029
- const renderChild = ctx.getRegister("blocks")[this.block];
29034
+ const renderChild = ctx.getRegister("blocks", {})[this.block];
29030
29035
  const renderCurrent = function* (superBlock, emitter) {
29036
+ const stack = ctx.getRegister("blockStack", []);
29037
+ if (stack.includes(self))
29038
+ throw new Error("block tag cannot be nested");
29039
+ stack.push(self);
29031
29040
  ctx.push({ block: superBlock });
29032
29041
  yield liquid2.renderer.renderTemplates(templates, ctx, emitter);
29033
29042
  ctx.pop();
29043
+ stack.pop();
29034
29044
  };
29035
29045
  return renderChild ? (superBlock, emitter) => renderChild(new BlockDrop((emitter2) => renderCurrent(superBlock, emitter2)), emitter) : renderCurrent;
29036
29046
  }
@@ -29446,7 +29456,7 @@ var require_liquid_node = __commonJS({
29446
29456
  return Array.from(strictUniq(Object.values(analysis.globals).flatMap((a) => a.map((v) => v.toArray()))));
29447
29457
  }
29448
29458
  };
29449
- var version2 = "10.25.5";
29459
+ var version2 = "10.25.7";
29450
29460
  exports2.AssertionError = AssertionError;
29451
29461
  exports2.AssignTag = AssignTag;
29452
29462
  exports2.BlockTag = BlockTag;
@@ -168,7 +168,7 @@
168
168
  "jsonwebtoken": "^9.0.3",
169
169
  "langwatch": "0.16.1",
170
170
  "libphonenumber-js": "^1.12.41",
171
- "liquidjs": "^10.25.5",
171
+ "liquidjs": "^10.25.7",
172
172
  "lodash-es": "^4.18.1",
173
173
  "lodash.clonedeep": "^4.5.0",
174
174
  "lodash.debounce": "^4.0.8",
@@ -283,7 +283,7 @@
283
283
  "encoding": "^0.1.13",
284
284
  "esbuild": "^0.27.7",
285
285
  "fishery": "^2.4.0",
286
- "jest-mock-extended": "^4.0.0",
286
+ "jest-mock-extended": "^4.0.1",
287
287
  "jsdom": "^27.4.0",
288
288
  "node-mocks-http": "^1.17.2",
289
289
  "playwright": "1.59.1",