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

magic-string

Package Overview
Dependencies
Maintainers
4
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.6.2

Diff

Changelog

Source

0.6.2

  • Noop indents are still chainable (fixes bug introduced in 0.6.1)
rich_harris
published 0.6.1 •

Changelog

Source

0.6.1

  • Indenting with an empty string is a noop
rich_harris
published 0.6.0 •

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