@marko/translator-default 5.23.0 → 5.24.0

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/class.js CHANGED
@@ -29,7 +29,7 @@ function _default(path) {
29
29
  _compiler.types.assignmentExpression(
30
30
  "=",
31
31
  _compiler.types.memberExpression(_compiler.types.thisExpression(), prop.key, prop.computed),
32
- prop.value));
32
+ prop.value || _compiler.types.unaryExpression("void", _compiler.types.numericLiteral(0))));
33
33
 
34
34
 
35
35
 
package/dist/index.js CHANGED
@@ -376,7 +376,8 @@ const translate = {
376
376
  _compiler.types.identifier("out"),
377
377
  file._componentDefIdentifier,
378
378
  file._componentInstanceIdentifier,
379
- _compiler.types.identifier("state")],
379
+ _compiler.types.identifier("state"),
380
+ _compiler.types.identifier("$global")],
380
381
 
381
382
  renderBlock.node),
382
383
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/translator-default",
3
3
  "description": "Translates Marko templates to the default Marko runtime.",
4
- "version": "5.23.0",
4
+ "version": "5.24.0",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
7
7
  "dependencies": {
@@ -12,8 +12,8 @@
12
12
  "self-closing-tags": "^1.0.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@marko/compiler": "^5.25.0",
16
- "marko": "^5.23.0"
15
+ "@marko/compiler": "^5.26.0",
16
+ "marko": "^5.24.0"
17
17
  },
18
18
  "files": [
19
19
  "dist"