htmljs-parser 3.3.6 → 4.0.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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -89,10 +89,10 @@ function getPos(lines, startLine, index) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
function getLines(src) {
|
|
92
|
-
const lines = [
|
|
92
|
+
const lines = [0];
|
|
93
93
|
for (let i = 0; i < src.length; i++) {
|
|
94
94
|
if (src.charCodeAt(i) === 10 /* NEWLINE */) {
|
|
95
|
-
lines.push(i);
|
|
95
|
+
lines.push(i + 1);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
return lines;
|
package/dist/index.mjs
CHANGED
|
@@ -68,10 +68,10 @@ function getPos(lines, startLine, index) {
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
function getLines(src) {
|
|
71
|
-
const lines = [
|
|
71
|
+
const lines = [0];
|
|
72
72
|
for (let i = 0; i < src.length; i++) {
|
|
73
73
|
if (src.charCodeAt(i) === 10 /* NEWLINE */) {
|
|
74
|
-
lines.push(i);
|
|
74
|
+
lines.push(i + 1);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
return lines;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "htmljs-parser",
|
|
3
3
|
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@changesets/changelog-github": "^0.4.4",
|
|
7
7
|
"@changesets/cli": "^2.22.0",
|