convert-source-map
Advanced tools
Comparing version 1.5.1 to 1.6.0
'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 @@ |
{ | ||
"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. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10530
106
0
1
+ Addedsafe-buffer@~5.1.1
+ Addedsafe-buffer@5.1.2(transitive)