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

convert-source-map

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-source-map - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

5

index.js

@@ -69,5 +69,6 @@ 'use strict';

Converter.prototype.toComment = function () {
Converter.prototype.toComment = function (options) {
var base64 = this.toBase64();
return '//# sourceMappingURL=data:application/json;base64,' + base64;
var data = 'sourceMappingURL=data:application/json;base64,' + base64;
return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data;
};

@@ -74,0 +75,0 @@

2

package.json
{
"name": "convert-source-map",
"version": "0.6.0",
"version": "0.7.0",
"description": "Converts a source-map from/to different formats and allows adding/changing properties.",

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

@@ -44,2 +44,9 @@ 'use strict';

test('to multi-line map', function (t) {
var c = convert.fromObject(obj);
var s = c.toComment({ multiline: true });
t.similar(s, /^\/\*# sourceMappingURL=.+ \*\/$/);
t.end();
})
test('from source', function (t) {

@@ -46,0 +53,0 @@ var foo = [

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