Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Dec 28, 2019
1 parent a44979e commit adbaef1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions lib/source-map-resolve-node.js
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -71,17 +72,17 @@ 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$/

/**
* 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"
Expand All @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions source-map-resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ 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$/

/**
* 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"
Expand All @@ -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) {
Expand Down

0 comments on commit adbaef1

Please sign in to comment.