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.4.0

Diff

Changelog

Source

0.4.0

  • Using experimental Esperanto feature (esperantojs/esperanto#68) to generate version with vlq dependency included
rich_harris
published 0.3.1 •

Changelog

Source

0.3.1

  • Fixes a bug whereby multiple insertions at the same location would cause text to repeat (#5)
rich_harris
published 0.3.0 •

Changelog

Source

0.3.0

  • Breaking change - source.indentStr is null if no lines are indented. Use source.getIndentString() for the old behaviour (guess, and if no lines are indented, return \t)
  • bundle.getIndentString() ignores sources with no indented lines when guessing indentation (#3)
rich_harris
published 0.2.7 •

Changelog

Source

0.2.7

  • source.trimLines() removes empty lines from start/end of source, leaving other whitespace untouched
  • Indentation is not added to an empty source
rich_harris
published 0.2.6 •

Changelog

Source

0.2.6

  • Performance improvement - adjustments are only made when necessary
rich_harris
published 0.2.5 •

Changelog

Source

0.2.5

  • Single spaces are ignored when guessing indentation - experience shows these are more likely to be e.g. JSDoc comments than actual indentation
  • bundle.addSource() can take an indentExclusionRanges option
rich_harris
published 0.2.4 •

Changelog

Source

0.2.4

  • Empty lines are not indented
rich_harris
published 0.2.3 •

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