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

magic-string

Package Overview
Dependencies
Maintainers
0
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-string - npm Package Versions

1
13

0.5.0

Diff

Changelog

Source

0.5.0

  • s.replace() is deprecated in favour of s.overwrite() (identical signature)
  • bundle.addSource() can take a MagicString instance as its sole argument, for convenience
  • The options in new MagicString(str, options) can include filename and indentExclusionRanges options, which will be used when bundling
  • New method: s.snip( start, end )
rich_harris
published 0.4.9 •

Changelog

Source

0.4.9

  • file option is optional when generating a bundle sourcemap
rich_harris
published 0.4.8 •

rich_harris
published 0.4.7 •

Changelog

Source

0.4.7

  • Repeated insertions at position 0 behave the same as other positions (#10)
rich_harris
published 0.4.6 •

Changelog

Source

0.4.6

  • Overlapping ranges can be removed
  • Non-string content is rejected (#9)
rich_harris
published 0.4.5 •

Changelog

Source

0.4.5

  • Implement source.addSourcemapLocation()
rich_harris
published 0.4.4 •

Changelog

Source

0.4.4

  • Another Windows fix, this time for file paths when bundling
rich_harris
published 0.4.3 •

Changelog

Source

0.4.3

  • Handle Windows-style CRLF newlines when determining whether a line is empty
rich_harris
published 0.4.2 •

Changelog

Source

0.4.2

  • Fix typo in package.json (d'oh again)
  • Use only relative paths for internal modules - makes bundling with dependents (i.e. esperanto) possible
rich_harris
published 0.4.1 •

Changelog

Source

0.4.1

  • Includes correct files in npm package (d'oh)
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