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

magic-string

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-string - npm Package Versions

1
12

0.10.1

Diff

Changelog

Source

0.10.1

  • Zero-length inserts are not removed on adjacent overwrites
rich_harris
published 0.10.0 •

Changelog

Source

0.10.0

  • Complete rewrite, resulting in ~40x speed increase (#30)
  • Breaking – magicString.locate and locateOrigin are deprecated
  • More forgiving rules about contiguous patches, and which ranges are valid with magicString.slice(...)
rich_harris
published 0.9.1 •

Changelog

Source

0.9.1

  • Update deps
rich_harris
published 0.9.0 •

Changelog

Source

0.9.0

  • Update build process
rich_harris
published 0.8.0 •

Changelog

Source

0.8.0

  • Add an ES6 build, change default UMD build to CommonJS (but keeping existing UMD build with bundled dependencies)
  • Make properties non-enumerable, for cleaner logging
  • Update dependencies
rich_harris
published 0.7.0 •

Changelog

Source

0.7.0

  • The names array is populated when generating sourcemaps, and mappings include name indices where appropriate (#16)
  • Replaced content is mapped correctly in sourcemaps (#15)
rich_harris
published 0.6.6 •

Changelog

Source

0.6.6

  • Adjust mappings correctly when removing replaced content
  • Error correctly when removed characters are used as slice anchors
rich_harris
published 0.6.5 •

Changelog

Source

0.6.5

  • Fix jsnext:main in package.json
rich_harris
published 0.6.4 •

Changelog

Source

0.6.4

  • Fix bug with positive integer coercion
rich_harris
published 0.6.3 •

Changelog

Source

0.6.3

  • Intro content is correctly indented
  • Content following an intro with trailing newline is correctly indented
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