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
891012Next

0.2.3

Diff

Changelog

Source

0.2.3

  • Fixes edge case with bundle sourcemaps
rich_harris
published 0.2.2 •

Changelog

Source

0.2.2

  • Make sources paths in sourcemaps relative to options.file
rich_harris
published 0.2.1 •

Changelog

Source

0.2.1

  • Minor fix for bundle.indent()
rich_harris
published 0.2.0 •

Changelog

Source

0.2.0

  • Implement MagicString.Bundle for concatenating magic strings
rich_harris
published 0.1.10 •

Changelog

Source

0.1.10

  • Fix sourcemap encoding
rich_harris
published 0.1.9 •

Changelog

Source

0.1.9

  • Better performance when indenting large chunks of code
rich_harris
published 0.1.8 •

Changelog

Source

0.1.8

  • Sourcemaps generated with s.generateMap() have a toUrl() method that generates a DataURI
rich_harris
published 0.1.7 •

Changelog

Source

0.1.7

  • Implement s.insert( index, content ) - roughly equivalent to s.replace( index, index, content )
rich_harris
published 0.1.6 •

Changelog

Source

0.1.6

  • Version bump for npm's benefit
rich_harris
published 0.1.5 •

Changelog

Source

0.1.5

  • s.indent({ exclude: [ x, y ] }) prevents lines between (original) characters x and y from being indented. Multiple exclusion ranges are also supported (e.g. exclude: [[a, b], [c, d]])
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