update
This commit is contained in:
-5
@@ -1,7 +1,5 @@
|
||||
# convert-source-map [](http://travis-ci.org/thlorenz/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.
|
||||
|
||||
```js
|
||||
@@ -120,6 +118,3 @@ Returns a comment that links to an external source map via `file`.
|
||||
By default, the comment is formatted like: `//# sourceMappingURL=...`, which you would normally see in a JS source file.
|
||||
|
||||
When `options.multiline == true`, the comment is formatted like: `/*# sourceMappingURL=... */`, which you would find in a CSS source file.
|
||||
|
||||
|
||||
[](https://bitdeli.com/free "Bitdeli Badge")
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ Object.defineProperty(exports, 'mapFileCommentRegex', {
|
||||
|
||||
|
||||
function decodeBase64(base64) {
|
||||
return SafeBuffer.Buffer.from(base64, 'base64').toString();
|
||||
return (SafeBuffer.Buffer.from(base64, 'base64') || "").toString();
|
||||
}
|
||||
|
||||
function stripComment(sm) {
|
||||
@@ -58,7 +58,7 @@ Converter.prototype.toJSON = function (space) {
|
||||
|
||||
Converter.prototype.toBase64 = function () {
|
||||
var json = this.toJSON();
|
||||
return SafeBuffer.Buffer.from(json, 'utf8').toString('base64');
|
||||
return (SafeBuffer.Buffer.from(json, 'utf8') || "").toString('base64');
|
||||
};
|
||||
|
||||
Converter.prototype.toComment = function (options) {
|
||||
|
||||
+12
-12
@@ -1,32 +1,32 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"convert-source-map@1.7.0",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"convert-source-map@1.8.0",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "convert-source-map@1.7.0",
|
||||
"_id": "convert-source-map@1.7.0",
|
||||
"_from": "convert-source-map@1.8.0",
|
||||
"_id": "convert-source-map@1.8.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==",
|
||||
"_integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==",
|
||||
"_location": "/convert-source-map",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "convert-source-map@1.7.0",
|
||||
"raw": "convert-source-map@1.8.0",
|
||||
"name": "convert-source-map",
|
||||
"escapedName": "convert-source-map",
|
||||
"rawSpec": "1.7.0",
|
||||
"rawSpec": "1.8.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.7.0"
|
||||
"fetchSpec": "1.8.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@babel/core"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz",
|
||||
"_spec": "1.7.0",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz",
|
||||
"_spec": "1.8.0",
|
||||
"_where": "/home/node/nuxt",
|
||||
"author": {
|
||||
"name": "Thorsten Lorenz",
|
||||
"email": "thlorenz@gmx.de",
|
||||
@@ -71,5 +71,5 @@
|
||||
"scripts": {
|
||||
"test": "tap test/*.js --color"
|
||||
},
|
||||
"version": "1.7.0"
|
||||
"version": "1.8.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user