@rhinostone/swig-twig 2.8.2 → 2.8.4
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 +1 -1
- package/lib/tags/include.js +3 -3
- package/package.json +2 -2
package/lib/index.js
CHANGED
package/lib/tags/include.js
CHANGED
|
@@ -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
|
|
32
|
-
* Windows paths round-trip through the
|
|
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 || '')
|
|
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.
|
|
3
|
+
"version": "2.8.4",
|
|
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.
|
|
25
|
+
"@rhinostone/swig-core": "2.8.4"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|