magic-string
Advanced tools
Comparing version 0.10.0 to 0.10.1
# changelog | ||
## 0.10.1 | ||
* Zero-length inserts are not removed on adjacent overwrites | ||
## 0.10.0 | ||
@@ -4,0 +8,0 @@ |
@@ -410,2 +410,4 @@ 'use strict'; | ||
if (start !== end && start <= previous.start && end >= previous.end) { | ||
// unless it's an insert at the start | ||
if (previous.start === previous.end && previous.start === start) break; | ||
this.patches.splice(i, 1); | ||
@@ -412,0 +414,0 @@ } |
@@ -408,2 +408,4 @@ import { encode } from 'vlq'; | ||
if (start !== end && start <= previous.start && end >= previous.end) { | ||
// unless it's an insert at the start | ||
if (previous.start === previous.end && previous.start === start) break; | ||
this.patches.splice(i, 1); | ||
@@ -410,0 +412,0 @@ } |
@@ -458,2 +458,4 @@ (function (global, factory) { | ||
if (start !== end && start <= previous.start && end >= previous.end) { | ||
// unless it's an insert at the start | ||
if (previous.start === previous.end && previous.start === start) break; | ||
this.patches.splice(i, 1); | ||
@@ -460,0 +462,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Rich Harris", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"repository": "https://github.com/rich-harris/magic-string", | ||
@@ -8,0 +8,0 @@ "main": "dist/magic-string.cjs.js", |
@@ -195,2 +195,4 @@ import Patch from './Patch.js'; | ||
if ( start !== end && start <= previous.start && end >= previous.end ) { | ||
// unless it's an insert at the start | ||
if ( previous.start === previous.end && previous.start === start ) break; | ||
this.patches.splice( i, 1 ); | ||
@@ -197,0 +199,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
260222
2663