@constela/server 14.0.0 → 14.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -403,6 +403,8 @@ function evaluate(expr, ctx) {
403
403
  return expr.value;
404
404
  case "state":
405
405
  return ctx.state.get(expr.name);
406
+ case "local":
407
+ return ctx.locals[expr.name];
406
408
  case "var": {
407
409
  let varName = expr.name;
408
410
  let pathParts = [];
@@ -1155,6 +1157,8 @@ function evaluate2(expr, ctx) {
1155
1157
  return expr.value;
1156
1158
  case "state":
1157
1159
  return ctx.state.get(expr.name);
1160
+ case "local":
1161
+ return ctx.locals[expr.name];
1158
1162
  case "var": {
1159
1163
  let varName = expr.name;
1160
1164
  let pathParts = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/server",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "Server-side rendering for Constela UI framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,8 +15,8 @@
15
15
  "dist"
16
16
  ],
17
17
  "peerDependencies": {
18
- "@constela/compiler": "^0.15.6",
19
- "@constela/core": "^0.18.0"
18
+ "@constela/compiler": "^0.15.7",
19
+ "@constela/core": "^0.18.1"
20
20
  },
21
21
  "dependencies": {
22
22
  "isomorphic-dompurify": "^2.35.0",
@@ -29,8 +29,8 @@
29
29
  "tsup": "^8.0.0",
30
30
  "typescript": "^5.3.0",
31
31
  "vitest": "^2.0.0",
32
- "@constela/core": "0.18.0",
33
- "@constela/compiler": "0.15.6"
32
+ "@constela/core": "0.18.1",
33
+ "@constela/compiler": "0.15.7"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=20.0.0"