diff options
Diffstat (limited to 'node_modules/convert-source-map')
-rw-r--r-- | node_modules/convert-source-map/README.md | 4 | ||||
-rw-r--r-- | node_modules/convert-source-map/index.js | 5 | ||||
-rw-r--r-- | node_modules/convert-source-map/package.json | 6 |
3 files changed, 9 insertions, 6 deletions
diff --git a/node_modules/convert-source-map/README.md b/node_modules/convert-source-map/README.md index 2a2b6e7a3..86b218e05 100644 --- a/node_modules/convert-source-map/README.md +++ b/node_modules/convert-source-map/README.md @@ -1,6 +1,6 @@ -# 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> Converts a source-map from/to different formats and allows adding/changing properties. diff --git a/node_modules/convert-source-map/index.js b/node_modules/convert-source-map/index.js index 2d08f1e2b..3aeae1048 100644 --- a/node_modules/convert-source-map/index.js +++ b/node_modules/convert-source-map/index.js @@ -1,6 +1,7 @@ 'use strict'; var fs = require('fs'); var path = require('path'); +var SafeBuffer = require('safe-buffer'); Object.defineProperty(exports, 'commentRegex', { get: function getCommentRegex () { @@ -17,7 +18,7 @@ Object.defineProperty(exports, 'mapFileCommentRegex', { function decodeBase64(base64) { - return new Buffer(base64, 'base64').toString(); + return SafeBuffer.Buffer.from(base64, 'base64').toString(); } function stripComment(sm) { @@ -57,7 +58,7 @@ Converter.prototype.toJSON = function (space) { Converter.prototype.toBase64 = function () { var json = this.toJSON(); - return new Buffer(json).toString('base64'); + return SafeBuffer.Buffer.from(json, 'utf8').toString('base64'); }; Converter.prototype.toComment = function (options) { diff --git a/node_modules/convert-source-map/package.json b/node_modules/convert-source-map/package.json index 744043fb1..d3de3bc7c 100644 --- a/node_modules/convert-source-map/package.json +++ b/node_modules/convert-source-map/package.json @@ -1,6 +1,6 @@ { "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.", "main": "index.js", "scripts": { @@ -11,7 +11,9 @@ "url": "git://github.com/thlorenz/convert-source-map.git" }, "homepage": "https://github.com/thlorenz/convert-source-map", - "dependencies": {}, + "dependencies": { + "safe-buffer": "~5.1.1" + }, "devDependencies": { "inline-source-map": "~0.6.2", "tap": "~9.0.0" |