Comparing version 1.0.1 to 1.0.2
@@ -355,3 +355,3 @@ "use strict"; | ||
if (this.range) offset = this.range.setOrigRange(cr, offset); | ||
this.valueRange.setOrigRange(cr, offset); | ||
if (this.valueRange) this.valueRange.setOrigRange(cr, offset); | ||
this.props.forEach(prop => prop.setOrigRange(cr, offset)); | ||
@@ -358,0 +358,0 @@ return offset; |
@@ -124,2 +124,3 @@ "use strict"; | ||
const pos = item.range.start + 1; | ||
const origPos = item.range.origStart + 1; | ||
valueNode.range = { | ||
@@ -133,2 +134,7 @@ start: pos, | ||
}; | ||
if (typeof item.range.origStart === 'number') { | ||
valueNode.range.origStart = valueNode.range.origEnd = origPos; | ||
valueNode.valueRange.origStart = valueNode.valueRange.origEnd = origPos; | ||
} | ||
} | ||
@@ -135,0 +141,0 @@ |
{ | ||
"name": "yaml", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "dist/index.js", | ||
@@ -70,5 +70,5 @@ "license": "ISC", | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.5", | ||
"@babel/core": "^7.1.6", | ||
"@babel/plugin-proposal-class-properties": "^7.1.0", | ||
"@babel/preset-env": "^7.1.5", | ||
"@babel/preset-env": "^7.1.6", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -79,3 +79,3 @@ "babel-jest": "^23.6.0", | ||
"jest": "^23.6.0", | ||
"prettier": "^1.15.1" | ||
"prettier": "^1.15.2" | ||
}, | ||
@@ -82,0 +82,0 @@ "dependencies": {}, |
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
166186
4446