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

inline-source-map-comment

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-source-map-comment - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

16

package.json
{
"name": "inline-source-map-comment",
"version": "1.0.3",
"version": "1.0.4",
"description": "Create an inline source map comment from a source map",

@@ -45,15 +45,15 @@ "repository": "shinnn/inline-source-map-comment",

"dependencies": {
"chalk": "^0.5.1",
"chalk": "^1.0.0",
"get-stdin": "^4.0.1",
"minimist": "^1.1.0",
"sum-up": "^1.0.0",
"sum-up": "^1.0.1",
"xtend": "^4.0.0"
},
"devDependencies": {
"eslint": "^0.12.0",
"istanbul": "^0.3.5",
"eslint": "^0.15.0",
"istanbul": "^0.3.6",
"istanbul-coveralls": "^1.0.1",
"jscs": "^1.10.0",
"tap-spec": "^2.2.0",
"tape": "^3.4.0",
"jscs": "^1.11.3",
"tap-spec": "^2.2.1",
"tape": "^3.5.0",
"testling": "^1.7.1"

@@ -60,0 +60,0 @@ },

# inline-source-map-comment
[![NPM version](https://img.shields.io/npm/v/inline-source-map-comment.svg)](https://www.npmjs.com/package/inline-source-map-comment)
[![Bower version](https://img.shields.io/bower/v/inline-source-map-comment.svg)](https://github.com/shinnn/inline-source-map-comment/releases)
[![Build Status](https://travis-ci.org/shinnn/inline-source-map-comment.svg?branch=master)](https://travis-ci.org/shinnn/inline-source-map-comment)
[![Build status](https://ci.appveyor.com/api/projects/status/57fmdhy41qainu8g?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/inline-source-map-comment)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/inline-source-map-comment.svg?style=flat)](https://coveralls.io/r/shinnn/inline-source-map-comment)
[![Dependency Status](https://david-dm.org/shinnn/inline-source-map-comment.svg)](https://david-dm.org/shinnn/inline-source-map-comment)
[![devDependency Status](https://david-dm.org/shinnn/inline-source-map-comment/dev-status.svg)](https://david-dm.org/shinnn/inline-source-map-comment#info=devDependencies)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/inline-source-map-comment.svg?label=cov)](https://coveralls.io/r/shinnn/inline-source-map-comment)
[![Dependency Status](https://img.shields.io/david/shinnn/inline-source-map-comment.svg?label=deps)](https://david-dm.org/shinnn/inline-source-map-comment)
[![devDependency Status](https://img.shields.io/david/shinnn/inline-source-map-comment.svg?label=devDeps)](https://david-dm.org/shinnn/inline-source-map-comment#info=devDependencies)

@@ -22,3 +24,4 @@ Create an inline source map comment from a source map object or string

inlineSourceMapComment(fixture); //=> "//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0LmpzLm1hcCIsInNvdXJjZXMiOlsiaW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ=="
inlineSourceMapComment(fixture);
//=> "//# sourceMappingURL=data:application/json;base64,eyJ2ZXJza ..."
```

@@ -30,5 +33,2 @@

[![NPM version](https://img.shields.io/npm/v/inline-source-map-comment.svg?style=flat)](https://www.npmjs.com/package/inline-source-map-comment)
[![Bower version](https://img.shields.io/bower/v/inline-source-map-comment.svg?style=flat)](https://github.com/shinnn/inline-source-map-comment/releases)
#### [npm](https://www.npmjs.com/)

@@ -69,7 +69,9 @@

```javascript
var map = '{"version":3,"file":"foo.js.map","sources":["bar.js"],"names":[],"mappings":"AAAA"}';
var map = '{"version":3,"file":"a.js.map","sources":["b.js"],"names":[],"mappings":"AAAA"}';
inlineSourceMapComment(map); //=> "//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzLm1hcCIsInNvdXJjZXMiOlsiYmFyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0="
inlineSourceMapComment(map);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI ... "
inlineSourceMapComment(JSON.parse(map)); //=> (Same as `inlineSourceMapComment.js(map)`)
inlineSourceMapComment(JSON.parse(map));
//=> (Same as `inlineSourceMapComment.js(map)`)
```

@@ -101,3 +103,4 @@

inlineSourceMapComment(map, {block: true}) //=> "/* sourceMappingURL=data:application/json;base64,eyJ2ZXJ ... */"
inlineSourceMapComment(map, {block: true});
//=> "/* sourceMappingURL=data:application/json;base64,eyJ2ZXJ ... */"
```

@@ -110,3 +113,3 @@

Preserves `sourcesContent` property.
Preserves `sourcesConteThe prefix string of basent` property.

@@ -117,6 +120,7 @@ ### inlineSourceMapComment.prefix

The prefix string of base64-encoded source map.
64-encoded source map.
```javascript
inlineSourceMapComment.prefix; //=> "# sourceMappingURL=data:application/json;base64,"
inlineSourceMapComment.prefix;
//=> "# sourceMappingURL=data:application/json;base64,"
```

@@ -149,4 +153,4 @@

Copyright (c) [Shinnosuke Watanabe](https://github.com/shinnn)
Copyright (c) 2014 - 2015 [Shinnosuke Watanabe](https://github.com/shinnn)
Licensed under [the MIT License](./LICENSE).

Sorry, the diff of this file is not supported yet

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