@marko/compiler 5.21.4 → 5.21.5
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.
|
@@ -10,8 +10,9 @@ const noop = () => {};
|
|
|
10
10
|
const emptyRange = (part) => part.start === part.end;
|
|
11
11
|
const isAttrTag = (tag) => {var _tag$name$value;return ((_tag$name$value = tag.name.value) == null ? void 0 : _tag$name$value[0]) === "@";};
|
|
12
12
|
const toBabelPosition = ({ line, character }) => ({
|
|
13
|
+
// Babel lines start at 1 and use "column" instead of "character".
|
|
13
14
|
line: line + 1,
|
|
14
|
-
column: character
|
|
15
|
+
column: character });
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
function parseMarko(file) {
|
|
@@ -28,8 +29,6 @@ function parseMarko(file) {
|
|
|
28
29
|
let onNext = noop;
|
|
29
30
|
const positionAt = (index) => toBabelPosition(parser.positionAt(index));
|
|
30
31
|
const locationAt = (range) => {
|
|
31
|
-
// Babel columns start at 0, but that is silly.
|
|
32
|
-
// Here we normalize the parsers 1 based columns.
|
|
33
32
|
const { start, end } = parser.locationAt(range);
|
|
34
33
|
return {
|
|
35
34
|
start: toBabelPosition(start),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
3
|
"description": "Marko template to JS compiler.",
|
|
4
|
-
"version": "5.21.
|
|
4
|
+
"version": "5.21.5",
|
|
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": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@marko/babel-utils": "^5.21.1",
|
|
17
17
|
"complain": "^1.6.0",
|
|
18
18
|
"he": "^1.2.0",
|
|
19
|
-
"htmljs-parser": "^
|
|
19
|
+
"htmljs-parser": "^4.0.0",
|
|
20
20
|
"jsesc": "^3.0.2",
|
|
21
21
|
"lasso-package-root": "^1.0.1",
|
|
22
22
|
"property-handlers": "^1.1.1",
|