@rhinostone/swig-twig 2.8.2 → 2.8.3

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/lib/index.js CHANGED
@@ -27,7 +27,7 @@ exports.name = 'twig';
27
27
  *
28
28
  * @type {String}
29
29
  */
30
- exports.version = "2.8.2";
30
+ exports.version = "2.8.3";
31
31
 
32
32
  /**
33
33
  * Expression-level parser — Pratt-style recursive descent that consumes
@@ -28,8 +28,8 @@
28
28
  * `try { ... } catch {}` wrapper that collapses missing-file errors to
29
29
  * the empty string when `ignoreMissing` is set.
30
30
  *
31
- * `resolveFrom` is the template's own filename (backslash-escaped so
32
- * Windows paths round-trip through the JSON-literal emit). The native
31
+ * `resolveFrom` is the template's own filename; the backend escapes it at emit time
32
+ * (GHSA-q89c), so Windows paths and quotes round-trip through the literal. The native
33
33
  * parser's splitter passes it in as a trailing arg; Twig's
34
34
  * tag-dispatch shape carries it via `opts.filename`.
35
35
  */
@@ -125,7 +125,7 @@ exports.parse = function (str, line, parser, types, stack, opts, swig, token) {
125
125
  ctxExpr = parser.parseExpr(ctxTokens);
126
126
  }
127
127
 
128
- var resolveFrom = (opts.filename || '').replace(/\\/g, '\\\\');
128
+ var resolveFrom = (opts.filename || '');
129
129
 
130
130
  token.irExpr = ir.include(
131
131
  pathExpr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinostone/swig-twig",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "Twig-syntax frontend for the @rhinostone/swig-core template engine. Part of the @rhinostone/swig multi-flavor family.",
5
5
  "keywords": [
6
6
  "template",
@@ -22,7 +22,7 @@
22
22
  "node": ">=12"
23
23
  },
24
24
  "peerDependencies": {
25
- "@rhinostone/swig-core": "2.8.2"
25
+ "@rhinostone/swig-core": "2.8.3"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"