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 1.5.1 to 1.6.0

5

index.js
'use strict';
var fs = require('fs');
var path = require('path');
var SafeBuffer = require('safe-buffer');

@@ -20,3 +21,3 @@ Object.defineProperty(exports, 'commentRegex', {

function decodeBase64(base64) {
return new Buffer(base64, 'base64').toString();
return SafeBuffer.Buffer.from(base64, 'base64').toString();
}

@@ -61,3 +62,3 @@

var json = this.toJSON();
return new Buffer(json).toString('base64');
return SafeBuffer.Buffer.from(json, 'utf8').toString('base64');
};

@@ -64,0 +65,0 @@

6

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

@@ -14,3 +14,5 @@ "main": "index.js",

"homepage": "https://github.com/thlorenz/convert-source-map",
"dependencies": {},
"dependencies": {
"safe-buffer": "~5.1.1"
},
"devDependencies": {

@@ -17,0 +19,0 @@ "inline-source-map": "~0.6.2",

@@ -1,4 +0,4 @@

# convert-source-map [![build status](https://secure.travis-ci.org/thlorenz/convert-source-map.png)](http://travis-ci.org/thlorenz/convert-source-map)
# convert-source-map [![build status](https://secure.travis-ci.org/thlorenz/convert-source-map.svg?branch=master)](http://travis-ci.org/thlorenz/convert-source-map)
[![NPM](https://nodei.co/npm/convert-source-map.png?downloads=true&stars=true)](https://nodei.co/npm/convert-source-map/)
<a href="https://www.patreon.com/bePatron?u=8663953"><img alt="become a patron" src="https://c5.patreon.com/external/logo/become_a_patron_button.png" height="35px"></a>

@@ -5,0 +5,0 @@ Converts a source-map from/to different formats and allows adding/changing properties.

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