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
1012

0.2.5

Diff

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