espolar 0.1.4 → 0.1.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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1415,7 +1415,7 @@ function createPrinterContext(options) {
|
|
|
1415
1415
|
generatedOffset += text.length;
|
|
1416
1416
|
},
|
|
1417
1417
|
writeMapped(text, sourceStart, sourceEnd, data) {
|
|
1418
|
-
if (text.length === 0 || sourceEnd
|
|
1418
|
+
if (text.length === 0 || sourceEnd < sourceStart) return;
|
|
1419
1419
|
const generatedStart = generatedOffset;
|
|
1420
1420
|
context.write(text);
|
|
1421
1421
|
appendMapping({
|
|
@@ -1472,7 +1472,7 @@ function createPrinterContext(options) {
|
|
|
1472
1472
|
}
|
|
1473
1473
|
},
|
|
1474
1474
|
writeSource(start, end, data) {
|
|
1475
|
-
if (end
|
|
1475
|
+
if (end < start) return;
|
|
1476
1476
|
const generatedStart = generatedOffset;
|
|
1477
1477
|
context.write(options.source.slice(start, end));
|
|
1478
1478
|
appendMapping({
|