@ztimson/utils 0.28.12 → 0.28.13

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/index.mjs CHANGED
@@ -2322,7 +2322,68 @@ class TemplateError extends BadRequestError {
2322
2322
  function findTemplateVars(html) {
2323
2323
  const variables = /* @__PURE__ */ new Set();
2324
2324
  const arrays = /* @__PURE__ */ new Set();
2325
- const excluded = /* @__PURE__ */ new Set(["true", "false", "null", "undefined"]);
2325
+ const excluded = /* @__PURE__ */ new Set([
2326
+ "let",
2327
+ "const",
2328
+ "var",
2329
+ "function",
2330
+ "if",
2331
+ "while",
2332
+ "do",
2333
+ "this",
2334
+ "typeof",
2335
+ "new",
2336
+ "instanceof",
2337
+ "in",
2338
+ "for",
2339
+ "else",
2340
+ "case",
2341
+ "break",
2342
+ "continue",
2343
+ "switch",
2344
+ "default",
2345
+ "with",
2346
+ "eval",
2347
+ "arguments",
2348
+ "void",
2349
+ "delete",
2350
+ "null",
2351
+ "undefined",
2352
+ "true",
2353
+ "false",
2354
+ "async",
2355
+ "await",
2356
+ "try",
2357
+ "catch",
2358
+ "finally",
2359
+ "throw",
2360
+ "return",
2361
+ "yield",
2362
+ "debugger",
2363
+ "extends",
2364
+ "import",
2365
+ "export",
2366
+ "class",
2367
+ "super",
2368
+ "static",
2369
+ "get",
2370
+ "set",
2371
+ "constructor",
2372
+ "enum",
2373
+ "implements",
2374
+ "interface",
2375
+ "package",
2376
+ "private",
2377
+ "protected",
2378
+ "public",
2379
+ "abstract",
2380
+ "final",
2381
+ "native",
2382
+ "synchronized",
2383
+ "throws",
2384
+ "transient",
2385
+ "volatile"
2386
+ ]);
2326
2387
  for (const loop of matchAll(html, /\{\{\s*?\*\s*?(.+?)\s+in\s+(.+?)\s*?}}/g)) {
2327
2388
  const [element, index = "index"] = loop[1].replaceAll(/[()\s]/g, "").split(",");
2328
2389
  excluded.add(element);