From adbaef154743860853b5bc92837c1562cc6bf74d Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 28 Dec 2019 20:29:24 +0100 Subject: [PATCH] Remove trailing spaces --- lib/source-map-resolve-node.js | 9 +++++---- source-map-resolve.js | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/source-map-resolve-node.js b/lib/source-map-resolve-node.js index c53e5d7..31ec3b2 100644 --- a/lib/source-map-resolve-node.js +++ b/lib/source-map-resolve-node.js @@ -1,4 +1,5 @@ var sourceMappingURL = require("source-map-url") + var resolveUrl = require("./resolve-url") var decodeUriComponent = require("./decode-uri-component") var urix = require("urix") @@ -71,9 +72,9 @@ var dataUriRegex = /^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/ /** * The media type for JSON text is application/json. - * + * * {@link https://tools.ietf.org/html/rfc8259#section-11 | IANA Considerations } - * + * * `text/json` is non-standard media type */ var jsonMimeTypeRegex = /^(?:application|text)\/json$/ @@ -81,7 +82,7 @@ var jsonMimeTypeRegex = /^(?:application|text)\/json$/ /** * JSON text exchanged between systems that are not part of a closed ecosystem * MUST be encoded using UTF-8. - * + * * {@link https://tools.ietf.org/html/rfc8259#section-8.1 | Character Encoding} */ var jsonCharacterEncoding = "utf-8" @@ -104,7 +105,7 @@ function decodeBase64String(b64) { // Note: `decoder.decode` method will throw a `DOMException` with the // `"EncodingError"` value when an coding error is found. var decoder = new TextDecoder(jsonCharacterEncoding, {fatal: true}) - return decoder.decode(buf); + return decoder.decode(buf); } function resolveSourceMapHelper(code, codeUrl) { diff --git a/source-map-resolve.js b/source-map-resolve.js index 9d1297c..282b126 100644 --- a/source-map-resolve.js +++ b/source-map-resolve.js @@ -79,9 +79,9 @@ void (function(root, factory) { /** * The media type for JSON text is application/json. - * + * * {@link https://tools.ietf.org/html/rfc8259#section-11 | IANA Considerations } - * + * * `text/json` is non-standard media type */ var jsonMimeTypeRegex = /^(?:application|text)\/json$/ @@ -89,7 +89,7 @@ void (function(root, factory) { /** * JSON text exchanged between systems that are not part of a closed ecosystem * MUST be encoded using UTF-8. - * + * * {@link https://tools.ietf.org/html/rfc8259#section-8.1 | Character Encoding} */ var jsonCharacterEncoding = "utf-8" @@ -112,7 +112,7 @@ void (function(root, factory) { // Note: `decoder.decode` method will throw a `DOMException` with the // `"EncodingError"` value when an coding error is found. var decoder = new TextDecoder(jsonCharacterEncoding, {fatal: true}) - return decoder.decode(buf); + return decoder.decode(buf); } function resolveSourceMapHelper(code, codeUrl) {