magic-string
Advanced tools
Comparing version 0.25.2 to 0.25.3
# magic-string changelog | ||
## 0.25.3 | ||
* Fix typing of `SourceMap.version`. | ||
## 0.25.2 | ||
@@ -4,0 +8,0 @@ |
@@ -24,3 +24,3 @@ export interface BundleOptions { | ||
version: string; | ||
version: number; | ||
file: string; | ||
@@ -27,0 +27,0 @@ sources: string[]; |
@@ -5,3 +5,3 @@ { | ||
"author": "Rich Harris", | ||
"version": "0.25.2", | ||
"version": "0.25.3", | ||
"repository": "https://github.com/rich-harris/magic-string", | ||
@@ -17,12 +17,11 @@ "main": "dist/magic-string.cjs.js", | ||
"devDependencies": { | ||
"buble": "^0.19.6", | ||
"eslint": "^5.13.0", | ||
"eslint": "^5.16.0", | ||
"mocha": "^5.2.0", | ||
"prettier": "^1.16.4", | ||
"rollup": "^1.1.2", | ||
"prettier": "^1.18.2", | ||
"rollup": "^1.16.3", | ||
"rollup-plugin-buble": "^0.19.6", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"source-map": "^0.6.1", | ||
"source-map-support": "^0.5.10" | ||
"source-map-support": "^0.5.12" | ||
}, | ||
@@ -29,0 +28,0 @@ "keywords": [ |
# magic-string | ||
<p align="center"> | ||
<a href="https://travis-ci.org/Rich-Harris/magic-string"> | ||
<img src="http://img.shields.io/travis/Rich-Harris/magic-string.svg" | ||
alt="build status"> | ||
</a> | ||
<a href="https://npmjs.org/package/magic-string"> | ||
<img src="https://img.shields.io/npm/v/magic-string.svg" | ||
alt="npm version"> | ||
</a> | ||
<a href="https://github.com/Rich-Harris/magic-string/blob/master/LICENSE.md"> | ||
<img src="https://img.shields.io/npm/l/magic-string.svg" | ||
alt="license"> | ||
</a> | ||
<a href="https://david-dm.org/Rich-Harris/magic-string"> | ||
<img src="https://david-dm.org/Rich-Harris/magic-string.svg" | ||
alt="dependency status"> | ||
</a> | ||
<a href="http://codecov.io/github/Rich-Harris/magic-string?branch=master"> | ||
<img src="http://codecov.io/github/Rich-Harris/magic-string/coverage.svg?branch=master" alt="Coverage via Codecov" /> | ||
</a> | ||
</p> | ||
<a href="https://travis-ci.org/Rich-Harris/magic-string"> | ||
<img src="http://img.shields.io/travis/Rich-Harris/magic-string.svg" | ||
alt="build status"> | ||
</a> | ||
<a href="https://npmjs.org/package/magic-string"> | ||
<img src="https://img.shields.io/npm/v/magic-string.svg" | ||
alt="npm version"> | ||
</a> | ||
<a href="https://github.com/Rich-Harris/magic-string/blob/master/LICENSE.md"> | ||
<img src="https://img.shields.io/npm/l/magic-string.svg" | ||
alt="license"> | ||
</a> | ||
@@ -25,0 +16,0 @@ Suppose you have some source code. You want to make some light modifications to it - replacing a few characters here and there, wrapping it with a header and footer, etc - and ideally you'd like to generate a source map at the end of it. You've thought about using something like [recast](https://github.com/benjamn/recast) (which allows you to generate an AST from some JavaScript, manipulate it, and reprint it with a sourcemap without losing your comments and formatting), but it seems like overkill for your needs (or maybe the source code isn't JavaScript). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
360367
251