@volar/code-gen
Advanced tools
Comparing version 0.34.6 to 0.34.7
@@ -16,12 +16,5 @@ "use strict"; | ||
} | ||
return this.mappings.map(mapping => ({ | ||
...mapping, | ||
sourceRange: sourceRangeParser(mapping.data, mapping.sourceRange), | ||
additional: mapping.additional | ||
? mapping.additional.map(extraMapping => ({ | ||
...extraMapping, | ||
sourceRange: sourceRangeParser(mapping.data, extraMapping.sourceRange), | ||
})) | ||
: undefined, | ||
})); | ||
return this.mappings.map(mapping => (Object.assign(Object.assign({}, mapping), { sourceRange: sourceRangeParser(mapping.data, mapping.sourceRange), additional: mapping.additional | ||
? mapping.additional.map(extraMapping => (Object.assign(Object.assign({}, extraMapping), { sourceRange: sourceRangeParser(mapping.data, extraMapping.sourceRange) }))) | ||
: undefined }))); | ||
} | ||
@@ -67,16 +60,9 @@ addCode(str, sourceRange, mode, data, extraSourceRanges) { | ||
for (const mapping of b.getMappings()) { | ||
a.addMapping2({ | ||
...mapping, | ||
mappedRange: { | ||
a.addMapping2(Object.assign(Object.assign({}, mapping), { mappedRange: { | ||
start: mapping.mappedRange.start + aLength, | ||
end: mapping.mappedRange.end + aLength, | ||
}, | ||
additional: mapping.additional ? mapping.additional.map(mapping_2 => ({ | ||
...mapping_2, | ||
mappedRange: { | ||
}, additional: mapping.additional ? mapping.additional.map(mapping_2 => (Object.assign(Object.assign({}, mapping_2), { mappedRange: { | ||
start: mapping_2.mappedRange.start + aLength, | ||
end: mapping_2.mappedRange.end + aLength, | ||
}, | ||
})) : undefined, | ||
}); | ||
} }))) : undefined })); | ||
} | ||
@@ -83,0 +69,0 @@ a.addText(b.getText()); |
{ | ||
"name": "@volar/code-gen", | ||
"version": "0.34.6", | ||
"version": "0.34.7", | ||
"main": "out/index.js", | ||
@@ -16,5 +16,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/source-map": "0.34.6" | ||
"@volar/source-map": "0.34.7" | ||
}, | ||
"gitHead": "26c74f112ce48ef1131b58e09cec2dd4b47fba6b" | ||
"gitHead": "308b7dc440031c2f7adf0d4564f8cfd7417523e5" | ||
} |
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
4813
90
+ Added@volar/source-map@0.34.7(transitive)
- Removed@volar/source-map@0.34.6(transitive)
Updated@volar/source-map@0.34.7