Socket
Socket
Sign inDemoInstall

magic-string

Package Overview
Dependencies
1
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
810
12Next

0.6.0

Diff

Changelog

Source

0.6.0

  • Use rollup for bundling, instead of esperanto
rich_harris
published 0.5.3 •

Changelog

Source

0.5.3

  • Correct sourcemap generation with bundles containing varied separators
  • s.clone() clones indent exclusion ranges and sourcemap locations
rich_harris
published 0.5.1 •

Changelog

Source

0.5.1

  • Allow bundle separator to be the empty string
  • Indenting is handled correctly with empty string separator
rich_harris
published 0.5.0 •

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
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc