ventojs 1.12.13 → 1.12.15

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.
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/src/errors.ts"],"names":[],"mappings":"AAAA,cAAM,cAAe,SAAQ,KAAK;IACvB,IAAI,SAAyB;CACvC;AAED,qBAAa,aAAc,SAAQ,cAAc;IAEtC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;gBAFhB,IAAI,GAAE,MAAoB,EAC1B,MAAM,GAAE,MAAuB,EAC/B,QAAQ,GAAE,MAAU,EAC3B,KAAK,CAAC,EAAE,KAAK;CAYhB;AAED,qBAAa,cAAe,SAAQ,cAAc;IAGvC,QAAQ,EAAE,MAAM;gBADvB,OAAO,EAAE,MAAM,EACR,QAAQ,GAAE,MAAU,EAC3B,KAAK,CAAC,EAAE,KAAK;CAIhB;AAED,sDAAsD;AACtD,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAqBhD"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/src/errors.ts"],"names":[],"mappings":"AAAA,cAAM,cAAe,SAAQ,KAAK;IACvB,IAAI,SAAyB;CACvC;AAED,qBAAa,aAAc,SAAQ,cAAc;IAEtC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;gBAFhB,IAAI,GAAE,MAAoB,EAC1B,MAAM,GAAE,MAAuB,EAC/B,QAAQ,GAAE,MAAU,EAC3B,KAAK,CAAC,EAAE,KAAK;CAQhB;AAED,qBAAa,cAAe,SAAQ,cAAc;IAGvC,QAAQ,EAAE,MAAM;gBADvB,OAAO,EAAE,MAAM,EACR,QAAQ,GAAE,MAAU,EAC3B,KAAK,CAAC,EAAE,KAAK;CAIhB;AAED,sDAAsD;AACtD,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAqBhD"}
package/esm/src/errors.js CHANGED
@@ -11,9 +11,6 @@ export class TemplateError extends VentoBaseError {
11
11
  this.path = path;
12
12
  this.source = source;
13
13
  this.position = position;
14
- if (cause) {
15
- this.message += `(via ${cause.name})\n`;
16
- }
17
14
  }
18
15
  }
19
16
  export class TransformError extends VentoBaseError {
@@ -1 +1 @@
1
- {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../src/src/transformer.ts"],"names":[],"mappings":"AA4HA,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,GACpB,MAAM,CAwJR"}
1
+ {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../src/src/transformer.ts"],"names":[],"mappings":"AA4HA,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,GACpB,MAAM,CA0JR"}
@@ -172,11 +172,13 @@ export function transformTemplateCode(code, templateState) {
172
172
  tracker.pushPatternBindings(node.params);
173
173
  break;
174
174
  case "Property":
175
- if (node.shorthand && node.key.type === "Identifier") {
175
+ // Value is implicitly the same as the key if it's just an
176
+ // identifier, so we only transform the value (not the key)
177
+ if (node.shorthand && node.value.type === "Identifier") {
176
178
  this.replace({
177
179
  type: "Property",
178
180
  key: node.key,
179
- value: transformIdentifier(node.key),
181
+ value: transformIdentifier(node.value),
180
182
  kind: "init",
181
183
  computed: false,
182
184
  method: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ventojs",
3
- "version": "1.12.13",
3
+ "version": "1.12.15",
4
4
  "description": "🌬 A minimal but powerful template engine",
5
5
  "homepage": "https://vento.js.org/",
6
6
  "repository": "github:oscarotero/vento",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "estree-walker": "3.0.3",
32
- "meriyah": "6.0.3",
32
+ "meriyah": "6.0.5",
33
33
  "@deno/shim-deno": "~0.18.0"
34
34
  },
35
35
  "devDependencies": {