Socket
Socket
Sign inDemoInstall

inline-source-map

Package Overview
Dependencies
2
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

2

index.js

@@ -104,3 +104,3 @@ 'use strict';

var charset = this.opts.charset || 'utf-8';
return '//# sourceMappingURL=data:application/json;charset:'+charset+';base64,' + this.base64Encode();
return '//# sourceMappingURL=data:application/json;charset:' + charset + ';base64,' + this.base64Encode();
};

@@ -107,0 +107,0 @@

{
"name": "inline-source-map",
"version": "0.4.0",
"version": "0.4.1",
"description": "Adds source mappings and base64 encodes them, so they can be inlined in your generated file.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,3 +8,4 @@ # inline-source-map [![build status](https://secure.travis-ci.org/thlorenz/inline-source-map.png)](http://travis-ci.org/thlorenz/inline-source-map)

var gen = generator({charset: 'utf-8'}) //default charset is utf-8, you can change it for yourself
// default charset 'utf-8' is configurable
var gen = generator({ charset: 'utf-8' })
.addMappings('foo.js', [{ original: { line: 2, column: 3 } , generated: { line: 5, column: 10 } }], { line: 5 })

@@ -11,0 +12,0 @@ .addGeneratedMappings('bar.js', 'var a = 2;\nconsole.log(a)', { line: 23, column: 22 });

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