Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

magic-string

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-string - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

4

CHANGELOG.md
# 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 @@ }

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc