@marko/translator-default 5.25.0 → 5.25.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/class.js CHANGED
@@ -25,13 +25,15 @@ function _default(path) {
25
25
  delete prop.loc;
26
26
  return prop;
27
27
  } else if (_compiler.types.isClassProperty(prop) && !prop.static) {
28
- classProperties.push(
29
- _compiler.types.assignmentExpression(
30
- "=",
31
- _compiler.types.memberExpression(_compiler.types.thisExpression(), prop.key, prop.computed),
32
- prop.value || _compiler.types.unaryExpression("void", _compiler.types.numericLiteral(0))));
28
+ if (!prop.declare) {
29
+ classProperties.push(
30
+ _compiler.types.assignmentExpression(
31
+ "=",
32
+ _compiler.types.memberExpression(_compiler.types.thisExpression(), prop.key, prop.computed),
33
+ prop.value || _compiler.types.unaryExpression("void", _compiler.types.numericLiteral(0))));
33
34
 
34
35
 
36
+ }
35
37
 
36
38
  return undefined;
37
39
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = _default;var _path = _interopRequireDefault(require("path"));
2
2
  var _getComponentFiles = _interopRequireDefault(require("../../util/get-component-files"));
3
3
 
4
- const STYLE_REG = /^style((?:\.[^\s\\/:*?"<>|({]+)+)?\s*\{/;
4
+ const STYLE_REG = /^style((?:\.[^.\s\\/:*?"<>|({]+)+)?\s*\{/;
5
5
 
6
6
  function _default(tag) {
7
7
  const { hub, node } = tag;
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.25.0",
4
+ "version": "5.25.2",
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.27.0",
16
- "marko": "^5.25.0"
15
+ "@marko/compiler": "^5.27.2",
16
+ "marko": "^5.25.2"
17
17
  },
18
18
  "files": [
19
19
  "dist"