@linthtml/html-parser
Advanced tools
Comparing version 0.9.0-alpha.7 to 0.9.0-beta.1
@@ -31,5 +31,3 @@ "use strict"; | ||
const column = line === -1 ? index - this.lineOffsets[this.lineOffsets.length - 1] : index - this.lineOffsets[line - 1]; | ||
return new dom_utils_1.Position(line === -1 | ||
? this.lineOffsets.length | ||
: line, column + 1); | ||
return new dom_utils_1.Position(line === -1 ? this.lineOffsets.length : line, column + 1); | ||
} | ||
@@ -36,0 +34,0 @@ __createAttributeNode(name, attribute_value) { |
{ | ||
"name": "@linthtml/html-parser", | ||
"version": "0.9.0-alpha.7", | ||
"version": "0.9.0-beta.1", | ||
"description": "LintHTML HTML parser", | ||
@@ -23,3 +23,3 @@ "author": "BenjaminJ <kamikillerto@gmail.com>", | ||
"clean": "rm -rf dist", | ||
"test": "mocha -r ts-node/register '__tests__/*.ts' --bail", | ||
"test": "mocha -r ts-node/register -r tsconfig-paths/register '__tests__/*.ts' --bail", | ||
"build": "tsc --build" | ||
@@ -31,19 +31,10 @@ }, | ||
"dependencies": { | ||
"@linthtml/dom-utils": "^0.9.0-alpha.7", | ||
"@linthtml/dom-utils": "^0.9.0-beta.1", | ||
"domhandler": "^4.2.2", | ||
"htmlparser2": "^7.1.2" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.2.21", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.9.1", | ||
"chai": "^4.3.4", | ||
"mocha": "^9.1.1", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.4.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "c207441c3c94a9ab6d4cf2ceaec003f8bd4b2483" | ||
"gitHead": "e08415701e08836f0fae86ce08eab6834189e989" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
0
10181
191