@marko/compiler 5.33.0 → 5.33.2

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.
@@ -11,9 +11,9 @@ class CompileError extends Error {
11
11
  const prettyFileName = buildFileName(filename, loc);
12
12
  this.stack = loc ?
13
13
  `CompileError\n${indent}at ${prettyFileName}\n${prettyMessage.replace(
14
- /^/gm,
15
- indent)
16
- }` :
14
+ /^/gm,
15
+ indent
16
+ )}` :
17
17
  `CompileError: ${prettyMessage}\n${indent}at ${prettyFileName}`;
18
18
 
19
19
  Object.defineProperties(this, {
@@ -57,22 +57,22 @@ function buildCodeFrameError(filename, code, loc, message) {
57
57
  function buildMessage(code, loc, message) {
58
58
  return loc ?
59
59
  (0, _codeFrame.codeFrameColumns)(
60
- code,
61
- {
62
- start: {
63
- line: loc.start.line,
64
- column: loc.start.column + 1
65
- },
66
- end:
67
- loc.end && loc.start.line === loc.end.line ?
60
+ code,
68
61
  {
69
- line: loc.end.line,
70
- column: loc.end.column + 1
71
- } :
72
- undefined
73
- },
74
- { highlightCode: true, message }) :
75
-
62
+ start: {
63
+ line: loc.start.line,
64
+ column: loc.start.column + 1
65
+ },
66
+ end:
67
+ loc.end && loc.start.line === loc.end.line ?
68
+ {
69
+ line: loc.end.line,
70
+ column: loc.end.column + 1
71
+ } :
72
+ undefined
73
+ },
74
+ { highlightCode: true, message }
75
+ ) :
76
76
  message;
77
77
  }
78
78
 
@@ -6,8 +6,8 @@ function throwAggregateError(errors) {
6
6
  case 0:
7
7
  return;
8
8
  case 1:
9
- throw errors[0];}
10
-
9
+ throw errors[0];
10
+ }
11
11
 
12
12
  throw new CompileErrors(errors);
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/compiler",
3
- "version": "5.33.0",
3
+ "version": "5.33.2",
4
4
  "description": "Marko template to JS compiler.",
5
5
  "keywords": [
6
6
  "babel",
@@ -61,7 +61,7 @@
61
61
  "strip-json-comments": "^3.1.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@marko/translator-default": "^5.31.0"
64
+ "@marko/translator-default": "^5.31.3"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"