Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

source-map-loader

Package Overview
Dependencies
Maintainers
8
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

source-map-loader - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [1.1.3](https://github.com/webpack-contrib/source-map-loader/compare/v1.1.2...v1.1.3) (2020-12-04)
### Bug Fixes
* parse percent-encoding url ([#136](https://github.com/webpack-contrib/source-map-loader/issues/136)) ([80dbf18](https://github.com/webpack-contrib/source-map-loader/commit/80dbf18f240dd40437492414687c04db7825515f))
### [1.1.2](https://github.com/webpack-contrib/source-map-loader/compare/v1.1.1...v1.1.2) (2020-10-27)

@@ -7,0 +14,0 @@

2

dist/cjs.js
"use strict";
const loader = require('./index');
const loader = require("./index");
module.exports = loader.default;
module.exports.raw = loader.raw;

@@ -27,4 +27,4 @@ "use strict";

(0, _schemaUtils.validate)(_options.default, options, {
name: 'Source Map Loader',
baseDataPath: 'options'
name: "Source Map Loader",
baseDataPath: "options"
});

@@ -45,3 +45,3 @@ const {

try {
behaviourSourceMappingUrl = typeof options.filterSourceMappingUrl !== 'undefined' ? options.filterSourceMappingUrl(sourceMappingURL, this.resourcePath) : 'consume';
behaviourSourceMappingUrl = typeof options.filterSourceMappingUrl !== "undefined" ? options.filterSourceMappingUrl(sourceMappingURL, this.resourcePath) : "consume";
} catch (error) {

@@ -54,3 +54,3 @@ callback(error);

switch (behaviourSourceMappingUrl) {
case 'skip':
case "skip":
callback(null, input, inputMap);

@@ -60,4 +60,4 @@ return;

case false:
case 'remove':
callback(null, input.replace(replacementString, ''), inputMap);
case "remove":
callback(null, input.replace(replacementString, ""), inputMap);
return;

@@ -87,3 +87,3 @@ }

try {
map = JSON.parse(sourceContent.replace(/^\)\]\}'/, ''));
map = JSON.parse(sourceContent.replace(/^\)\]\}'/, ""));
} catch (parseError) {

@@ -107,5 +107,5 @@ this.emitWarning(new Error(`Failed to parse source map from '${sourceMappingURL}': ${parseError}`));

let sourceContent;
const originalSourceContent = map.sourcesContent && typeof map.sourcesContent[i] !== 'undefined' ? map.sourcesContent[i] : // eslint-disable-next-line no-undefined
const originalSourceContent = map.sourcesContent && typeof map.sourcesContent[i] !== "undefined" ? map.sourcesContent[i] : // eslint-disable-next-line no-undefined
undefined;
const skipReading = typeof originalSourceContent !== 'undefined';
const skipReading = typeof originalSourceContent !== "undefined";
let errored = false; // We do not skipReading here, because we need absolute paths in sources.

@@ -148,4 +148,4 @@ // This is necessary so that for sourceMaps with the same file structure in sources, name collisions do not occur.

} = source;
newMap.sources.push(sourceURL || '');
newMap.sourcesContent.push(sourceContent || '');
newMap.sources.push(sourceURL || "");
newMap.sourcesContent.push(sourceContent || "");
});

@@ -158,3 +158,3 @@ const sourcesContentIsEmpty = newMap.sourcesContent.filter(entry => Boolean(entry)).length === 0;

callback(null, input.replace(replacementString, ''), newMap);
callback(null, input.replace(replacementString, ""), newMap);
}

@@ -8,209 +8,209 @@ "use strict";

const labelToNames = {
866: 'IBM866',
'unicode-1-1-utf-8': 'UTF-8',
'utf-8': 'UTF-8',
utf8: 'UTF-8',
cp866: 'IBM866',
csibm866: 'IBM866',
ibm866: 'IBM866',
csisolatin2: 'ISO-8859-2',
'iso-8859-2': 'ISO-8859-2',
'iso-ir-101': 'ISO-8859-2',
'iso8859-2': 'ISO-8859-2',
iso88592: 'ISO-8859-2',
'iso_8859-2': 'ISO-8859-2',
'iso_8859-2:1987': 'ISO-8859-2',
l2: 'ISO-8859-2',
latin2: 'ISO-8859-2',
csisolatin3: 'ISO-8859-3',
'iso-8859-3': 'ISO-8859-3',
'iso-ir-109': 'ISO-8859-3',
'iso8859-3': 'ISO-8859-3',
iso88593: 'ISO-8859-3',
'iso_8859-3': 'ISO-8859-3',
'iso_8859-3:1988': 'ISO-8859-3',
l3: 'ISO-8859-3',
latin3: 'ISO-8859-3',
csisolatin4: 'ISO-8859-4',
'iso-8859-4': 'ISO-8859-4',
'iso-ir-110': 'ISO-8859-4',
'iso8859-4': 'ISO-8859-4',
iso88594: 'ISO-8859-4',
'iso_8859-4': 'ISO-8859-4',
'iso_8859-4:1988': 'ISO-8859-4',
l4: 'ISO-8859-4',
latin4: 'ISO-8859-4',
csisolatincyrillic: 'ISO-8859-5',
cyrillic: 'ISO-8859-5',
'iso-8859-5': 'ISO-8859-5',
'iso-ir-144': 'ISO-8859-5',
'iso8859-5': 'ISO-8859-5',
iso88595: 'ISO-8859-5',
'iso_8859-5': 'ISO-8859-5',
'iso_8859-5:1988': 'ISO-8859-5',
arabic: 'ISO-8859-6',
'asmo-708': 'ISO-8859-6',
csiso88596e: 'ISO-8859-6',
csiso88596i: 'ISO-8859-6',
csisolatinarabic: 'ISO-8859-6',
'ecma-114': 'ISO-8859-6',
'iso-8859-6': 'ISO-8859-6',
'iso-8859-6-e': 'ISO-8859-6',
'iso-8859-6-i': 'ISO-8859-6',
'iso-ir-127': 'ISO-8859-6',
'iso8859-6': 'ISO-8859-6',
iso88596: 'ISO-8859-6',
'iso_8859-6': 'ISO-8859-6',
'iso_8859-6:1987': 'ISO-8859-6',
csisolatingreek: 'ISO-8859-7',
'ecma-118': 'ISO-8859-7',
elot_928: 'ISO-8859-7',
greek: 'ISO-8859-7',
greek8: 'ISO-8859-7',
'iso-8859-7': 'ISO-8859-7',
'iso-ir-126': 'ISO-8859-7',
'iso8859-7': 'ISO-8859-7',
iso88597: 'ISO-8859-7',
'iso_8859-7': 'ISO-8859-7',
'iso_8859-7:1987': 'ISO-8859-7',
sun_eu_greek: 'ISO-8859-7',
csiso88598e: 'ISO-8859-8',
csisolatinhebrew: 'ISO-8859-8',
hebrew: 'ISO-8859-8',
'iso-8859-8': 'ISO-8859-8',
'iso-8859-8-e': 'ISO-8859-8',
'iso-ir-138': 'ISO-8859-8',
'iso8859-8': 'ISO-8859-8',
iso88598: 'ISO-8859-8',
'iso_8859-8': 'ISO-8859-8',
'iso_8859-8:1988': 'ISO-8859-8',
visual: 'ISO-8859-8',
csisolatin6: 'ISO-8859-10',
'iso-8859-10': 'ISO-8859-10',
'iso-ir-157': 'ISO-8859-10',
'iso8859-10': 'ISO-8859-10',
iso885910: 'ISO-8859-10',
l6: 'ISO-8859-10',
latin6: 'ISO-8859-10',
'iso-8859-13': 'ISO-8859-13',
'iso8859-13': 'ISO-8859-13',
iso885913: 'ISO-8859-13',
'iso-8859-14': 'ISO-8859-14',
'iso8859-14': 'ISO-8859-14',
iso885914: 'ISO-8859-14',
csisolatin9: 'ISO-8859-15',
'iso-8859-15': 'ISO-8859-15',
'iso8859-15': 'ISO-8859-15',
iso885915: 'ISO-8859-15',
'iso_8859-15': 'ISO-8859-15',
l9: 'ISO-8859-15',
'iso-8859-16': 'ISO-8859-16',
cskoi8r: 'KOI8-R',
koi: 'KOI8-R',
koi8: 'KOI8-R',
'koi8-r': 'KOI8-R',
koi8_r: 'KOI8-R',
'koi8-ru': 'KOI8-U',
'koi8-u': 'KOI8-U',
csmacintosh: 'macintosh',
mac: 'macintosh',
macintosh: 'macintosh',
'x-mac-roman': 'macintosh',
'dos-874': 'windows-874',
'iso-8859-11': 'windows-874',
'iso8859-11': 'windows-874',
iso885911: 'windows-874',
'tis-620': 'windows-874',
'windows-874': 'windows-874',
cp1250: 'windows-1250',
'windows-1250': 'windows-1250',
'x-cp1250': 'windows-1250',
cp1251: 'windows-1251',
'windows-1251': 'windows-1251',
'x-cp1251': 'windows-1251',
'ansi_x3.4-1968': 'windows-1252',
ascii: 'windows-1252',
cp1252: 'windows-1252',
cp819: 'windows-1252',
csisolatin1: 'windows-1252',
ibm819: 'windows-1252',
'iso-8859-1': 'windows-1252',
'iso-ir-100': 'windows-1252',
'iso8859-1': 'windows-1252',
iso88591: 'windows-1252',
'iso_8859-1': 'windows-1252',
'iso_8859-1:1987': 'windows-1252',
l1: 'windows-1252',
latin1: 'windows-1252',
'us-ascii': 'windows-1252',
'windows-1252': 'windows-1252',
'x-cp1252': 'windows-1252',
cp1253: 'windows-1253',
'windows-1253': 'windows-1253',
'x-cp1253': 'windows-1253',
cp1254: 'windows-1254',
csisolatin5: 'windows-1254',
'iso-8859-9': 'windows-1254',
'iso-ir-148': 'windows-1254',
'iso8859-9': 'windows-1254',
iso88599: 'windows-1254',
'iso_8859-9': 'windows-1254',
'iso_8859-9:1989': 'windows-1254',
l5: 'windows-1254',
latin5: 'windows-1254',
'windows-1254': 'windows-1254',
'x-cp1254': 'windows-1254',
cp1255: 'windows-1255',
'windows-1255': 'windows-1255',
'x-cp1255': 'windows-1255',
cp1256: 'windows-1256',
'windows-1256': 'windows-1256',
'x-cp1256': 'windows-1256',
cp1257: 'windows-1257',
'windows-1257': 'windows-1257',
'x-cp1257': 'windows-1257',
cp1258: 'windows-1258',
'windows-1258': 'windows-1258',
'x-cp1258': 'windows-1258',
chinese: 'GBK',
csgb2312: 'GBK',
csiso58gb231280: 'GBK',
gb2312: 'GBK',
gb_2312: 'GBK',
'gb_2312-80': 'GBK',
gbk: 'GBK',
'iso-ir-58': 'GBK',
'x-gbk': 'GBK',
gb18030: 'gb18030',
big5: 'Big5',
'big5-hkscs': 'Big5',
'cn-big5': 'Big5',
csbig5: 'Big5',
'x-x-big5': 'Big5',
cseucpkdfmtjapanese: 'EUC-JP',
'euc-jp': 'EUC-JP',
'x-euc-jp': 'EUC-JP',
csshiftjis: 'Shift_JIS',
ms932: 'Shift_JIS',
ms_kanji: 'Shift_JIS',
'shift-jis': 'Shift_JIS',
shift_jis: 'Shift_JIS',
sjis: 'Shift_JIS',
'windows-31j': 'Shift_JIS',
'x-sjis': 'Shift_JIS',
cseuckr: 'EUC-KR',
csksc56011987: 'EUC-KR',
'euc-kr': 'EUC-KR',
'iso-ir-149': 'EUC-KR',
korean: 'EUC-KR',
'ks_c_5601-1987': 'EUC-KR',
'ks_c_5601-1989': 'EUC-KR',
ksc5601: 'EUC-KR',
ksc_5601: 'EUC-KR',
'windows-949': 'EUC-KR',
'utf-16be': 'UTF-16BE',
'utf-16': 'UTF-16LE',
'utf-16le': 'UTF-16LE'
866: "IBM866",
"unicode-1-1-utf-8": "UTF-8",
"utf-8": "UTF-8",
utf8: "UTF-8",
cp866: "IBM866",
csibm866: "IBM866",
ibm866: "IBM866",
csisolatin2: "ISO-8859-2",
"iso-8859-2": "ISO-8859-2",
"iso-ir-101": "ISO-8859-2",
"iso8859-2": "ISO-8859-2",
iso88592: "ISO-8859-2",
"iso_8859-2": "ISO-8859-2",
"iso_8859-2:1987": "ISO-8859-2",
l2: "ISO-8859-2",
latin2: "ISO-8859-2",
csisolatin3: "ISO-8859-3",
"iso-8859-3": "ISO-8859-3",
"iso-ir-109": "ISO-8859-3",
"iso8859-3": "ISO-8859-3",
iso88593: "ISO-8859-3",
"iso_8859-3": "ISO-8859-3",
"iso_8859-3:1988": "ISO-8859-3",
l3: "ISO-8859-3",
latin3: "ISO-8859-3",
csisolatin4: "ISO-8859-4",
"iso-8859-4": "ISO-8859-4",
"iso-ir-110": "ISO-8859-4",
"iso8859-4": "ISO-8859-4",
iso88594: "ISO-8859-4",
"iso_8859-4": "ISO-8859-4",
"iso_8859-4:1988": "ISO-8859-4",
l4: "ISO-8859-4",
latin4: "ISO-8859-4",
csisolatincyrillic: "ISO-8859-5",
cyrillic: "ISO-8859-5",
"iso-8859-5": "ISO-8859-5",
"iso-ir-144": "ISO-8859-5",
"iso8859-5": "ISO-8859-5",
iso88595: "ISO-8859-5",
"iso_8859-5": "ISO-8859-5",
"iso_8859-5:1988": "ISO-8859-5",
arabic: "ISO-8859-6",
"asmo-708": "ISO-8859-6",
csiso88596e: "ISO-8859-6",
csiso88596i: "ISO-8859-6",
csisolatinarabic: "ISO-8859-6",
"ecma-114": "ISO-8859-6",
"iso-8859-6": "ISO-8859-6",
"iso-8859-6-e": "ISO-8859-6",
"iso-8859-6-i": "ISO-8859-6",
"iso-ir-127": "ISO-8859-6",
"iso8859-6": "ISO-8859-6",
iso88596: "ISO-8859-6",
"iso_8859-6": "ISO-8859-6",
"iso_8859-6:1987": "ISO-8859-6",
csisolatingreek: "ISO-8859-7",
"ecma-118": "ISO-8859-7",
elot_928: "ISO-8859-7",
greek: "ISO-8859-7",
greek8: "ISO-8859-7",
"iso-8859-7": "ISO-8859-7",
"iso-ir-126": "ISO-8859-7",
"iso8859-7": "ISO-8859-7",
iso88597: "ISO-8859-7",
"iso_8859-7": "ISO-8859-7",
"iso_8859-7:1987": "ISO-8859-7",
sun_eu_greek: "ISO-8859-7",
csiso88598e: "ISO-8859-8",
csisolatinhebrew: "ISO-8859-8",
hebrew: "ISO-8859-8",
"iso-8859-8": "ISO-8859-8",
"iso-8859-8-e": "ISO-8859-8",
"iso-ir-138": "ISO-8859-8",
"iso8859-8": "ISO-8859-8",
iso88598: "ISO-8859-8",
"iso_8859-8": "ISO-8859-8",
"iso_8859-8:1988": "ISO-8859-8",
visual: "ISO-8859-8",
csisolatin6: "ISO-8859-10",
"iso-8859-10": "ISO-8859-10",
"iso-ir-157": "ISO-8859-10",
"iso8859-10": "ISO-8859-10",
iso885910: "ISO-8859-10",
l6: "ISO-8859-10",
latin6: "ISO-8859-10",
"iso-8859-13": "ISO-8859-13",
"iso8859-13": "ISO-8859-13",
iso885913: "ISO-8859-13",
"iso-8859-14": "ISO-8859-14",
"iso8859-14": "ISO-8859-14",
iso885914: "ISO-8859-14",
csisolatin9: "ISO-8859-15",
"iso-8859-15": "ISO-8859-15",
"iso8859-15": "ISO-8859-15",
iso885915: "ISO-8859-15",
"iso_8859-15": "ISO-8859-15",
l9: "ISO-8859-15",
"iso-8859-16": "ISO-8859-16",
cskoi8r: "KOI8-R",
koi: "KOI8-R",
koi8: "KOI8-R",
"koi8-r": "KOI8-R",
koi8_r: "KOI8-R",
"koi8-ru": "KOI8-U",
"koi8-u": "KOI8-U",
csmacintosh: "macintosh",
mac: "macintosh",
macintosh: "macintosh",
"x-mac-roman": "macintosh",
"dos-874": "windows-874",
"iso-8859-11": "windows-874",
"iso8859-11": "windows-874",
iso885911: "windows-874",
"tis-620": "windows-874",
"windows-874": "windows-874",
cp1250: "windows-1250",
"windows-1250": "windows-1250",
"x-cp1250": "windows-1250",
cp1251: "windows-1251",
"windows-1251": "windows-1251",
"x-cp1251": "windows-1251",
"ansi_x3.4-1968": "windows-1252",
ascii: "windows-1252",
cp1252: "windows-1252",
cp819: "windows-1252",
csisolatin1: "windows-1252",
ibm819: "windows-1252",
"iso-8859-1": "windows-1252",
"iso-ir-100": "windows-1252",
"iso8859-1": "windows-1252",
iso88591: "windows-1252",
"iso_8859-1": "windows-1252",
"iso_8859-1:1987": "windows-1252",
l1: "windows-1252",
latin1: "windows-1252",
"us-ascii": "windows-1252",
"windows-1252": "windows-1252",
"x-cp1252": "windows-1252",
cp1253: "windows-1253",
"windows-1253": "windows-1253",
"x-cp1253": "windows-1253",
cp1254: "windows-1254",
csisolatin5: "windows-1254",
"iso-8859-9": "windows-1254",
"iso-ir-148": "windows-1254",
"iso8859-9": "windows-1254",
iso88599: "windows-1254",
"iso_8859-9": "windows-1254",
"iso_8859-9:1989": "windows-1254",
l5: "windows-1254",
latin5: "windows-1254",
"windows-1254": "windows-1254",
"x-cp1254": "windows-1254",
cp1255: "windows-1255",
"windows-1255": "windows-1255",
"x-cp1255": "windows-1255",
cp1256: "windows-1256",
"windows-1256": "windows-1256",
"x-cp1256": "windows-1256",
cp1257: "windows-1257",
"windows-1257": "windows-1257",
"x-cp1257": "windows-1257",
cp1258: "windows-1258",
"windows-1258": "windows-1258",
"x-cp1258": "windows-1258",
chinese: "GBK",
csgb2312: "GBK",
csiso58gb231280: "GBK",
gb2312: "GBK",
gb_2312: "GBK",
"gb_2312-80": "GBK",
gbk: "GBK",
"iso-ir-58": "GBK",
"x-gbk": "GBK",
gb18030: "gb18030",
big5: "Big5",
"big5-hkscs": "Big5",
"cn-big5": "Big5",
csbig5: "Big5",
"x-x-big5": "Big5",
cseucpkdfmtjapanese: "EUC-JP",
"euc-jp": "EUC-JP",
"x-euc-jp": "EUC-JP",
csshiftjis: "Shift_JIS",
ms932: "Shift_JIS",
ms_kanji: "Shift_JIS",
"shift-jis": "Shift_JIS",
shift_jis: "Shift_JIS",
sjis: "Shift_JIS",
"windows-31j": "Shift_JIS",
"x-sjis": "Shift_JIS",
cseuckr: "EUC-KR",
csksc56011987: "EUC-KR",
"euc-kr": "EUC-KR",
"iso-ir-149": "EUC-KR",
korean: "EUC-KR",
"ks_c_5601-1987": "EUC-KR",
"ks_c_5601-1989": "EUC-KR",
ksc5601: "EUC-KR",
ksc_5601: "EUC-KR",
"windows-949": "EUC-KR",
"utf-16be": "UTF-16BE",
"utf-16": "UTF-16LE",
"utf-16le": "UTF-16LE"
};
var _default = labelToNames;
exports.default = _default;

@@ -49,13 +49,13 @@ "use strict";

if (parsedUrl.protocol !== 'data:') {
if (parsedUrl.protocol !== "data:") {
return null;
}
parsedUrl.hash = ''; // `5` is value of `'data:'.length`
parsedUrl.hash = ""; // `5` is value of `'data:'.length`
const input = parsedUrl.toString().substring(5);
let position = 0;
let mimeType = '';
let mimeType = "";
while (position < input.length && input[position] !== ',') {
while (position < input.length && input[position] !== ",") {
mimeType += input[position];

@@ -65,3 +65,3 @@ position += 1;

mimeType = mimeType.replace(/^[ \t\n\f\r]+/, '').replace(/[ \t\n\f\r]+$/, '');
mimeType = mimeType.replace(/^[ \t\n\f\r]+/, "").replace(/[ \t\n\f\r]+$/, "");

@@ -74,3 +74,3 @@ if (position === input.length) {

const encodedBody = input.substring(position);
let body = Buffer.from(percentDecodeBytes(Buffer.from(encodedBody, 'utf-8'))); // Can't use /i regexp flag because it isn't restricted to ASCII.
let body = Buffer.from(percentDecodeBytes(Buffer.from(encodedBody, "utf-8"))); // Can't use /i regexp flag because it isn't restricted to ASCII.

@@ -80,3 +80,3 @@ const mimeTypeBase64MatchResult = /(.*); *[Bb][Aa][Ss][Ee]64$/.exec(mimeType);

if (mimeTypeBase64MatchResult) {
const stringBody = body.toString('binary');
const stringBody = body.toString("binary");
const asString = (0, _abab.atob)(stringBody);

@@ -88,7 +88,7 @@

body = Buffer.from(asString, 'binary');
body = Buffer.from(asString, "binary");
[, mimeType] = mimeTypeBase64MatchResult;
}
if (mimeType.startsWith(';')) {
if (mimeType.startsWith(";")) {
mimeType = `text/plain ${mimeType}`;

@@ -102,3 +102,3 @@ }

} catch (e) {
mimeTypeRecord = new _whatwgMimetype.default('text/plain;charset=US-ASCII');
mimeTypeRecord = new _whatwgMimetype.default("text/plain;charset=US-ASCII");
}

@@ -105,0 +105,0 @@

@@ -30,3 +30,3 @@ "use strict";

const sourceMappingURLRegex = RegExp('(?:' + '/\\*' + '(?:\\s*\r?\n(?://)?)?' + '(?:' + innerRegex.source + ')' + '\\s*' + '\\*/' + '|' + '//(?:' + innerRegex.source + ')' + ')' + '\\s*');
const sourceMappingURLRegex = RegExp("(?:" + "/\\*" + "(?:\\s*\r?\n(?://)?)?" + "(?:" + innerRegex.source + ")" + "\\s*" + "\\*/" + "|" + "//(?:" + innerRegex.source + ")" + ")" + "\\s*");
/* eslint-enable prefer-template */

@@ -86,4 +86,5 @@

const sourceMappingURL = match ? match[1] || match[2] || "" : null;
return {
sourceMappingURL: match ? match[1] || match[2] || '' : null,
sourceMappingURL: sourceMappingURL ? decodeURI(sourceMappingURL) : sourceMappingURL,
replacementString: match ? match[0] : null

@@ -111,3 +112,3 @@ };

if (dataURL) {
dataURL.encodingName = labelToName(dataURL.mimeType.parameters.get('charset')) || 'UTF-8';
dataURL.encodingName = labelToName(dataURL.mimeType.parameters.get("charset")) || "UTF-8";
return (0, _iconvLite.decode)(dataURL.body, dataURL.encodingName);

@@ -139,3 +140,3 @@ }

async function fetchPathsFromFilesystem(loaderContext, possibleRequests, errorsAccumulator = '') {
async function fetchPathsFromFilesystem(loaderContext, possibleRequests, errorsAccumulator = "") {
let result;

@@ -168,6 +169,6 @@

if (protocol === 'data:') {
if (protocol === "data:") {
if (skipReading) {
return {
sourceURL: ''
sourceURL: ""
};

@@ -178,3 +179,3 @@ }

return {
sourceURL: '',
sourceURL: "",
sourceContent

@@ -190,3 +191,3 @@ };

if (protocol === 'file:') {
if (protocol === "file:") {
const pathFromURL = _url.default.fileURLToPath(url);

@@ -220,3 +221,3 @@

if (url.startsWith('/')) {
if (url.startsWith("/")) {
possibleRequests.push(getAbsolutePath(context, sourceURL.slice(1), sourceRoot));

@@ -223,0 +224,0 @@ }

{
"name": "source-map-loader",
"version": "1.1.2",
"version": "1.1.3",
"description": "extracts inlined source map and offers it to webpack",

@@ -52,5 +52,5 @@ "license": "MIT",

"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"@babel/cli": "^7.12.8",
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.12.7",
"@commitlint/cli": "^11.0.0",

@@ -60,17 +60,17 @@ "@commitlint/config-conventional": "^11.0.0",

"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^26.6.1",
"cross-env": "^7.0.2",
"babel-jest": "^26.6.3",
"cross-env": "^7.0.3",
"del": "^6.0.0",
"del-cli": "^3.0.1",
"eslint": "^7.12.0",
"eslint-config-prettier": "^6.14.0",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.22.1",
"husky": "^4.3.0",
"jest": "^26.6.1",
"lint-staged": "^10.4.2",
"jest": "^26.6.3",
"lint-staged": "^10.5.2",
"memfs": "^3.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"prettier": "^2.2.1",
"standard-version": "^9.0.0",
"webpack": "^5.2.0"
"webpack": "^5.9.0"
},

@@ -77,0 +77,0 @@ "keywords": [

@@ -32,3 +32,3 @@ <div align="center">

```js
import css from 'file.css';
import css from "file.css";
```

@@ -44,4 +44,4 @@

test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader'],
enforce: "pre",
use: ["source-map-loader"],
},

@@ -92,6 +92,6 @@ ],

test: /\.js$/,
enforce: 'pre',
enforce: "pre",
use: [
{
loader: 'source-map-loader',
loader: "source-map-loader",
options: {

@@ -104,3 +104,3 @@ filterSourceMappingUrl: (url, resourcePath) => {

if (/keep-source-mapping-url\.js$/i.test(resourcePath)) {
return 'skip';
return "skip";
}

@@ -133,4 +133,4 @@

test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader'],
enforce: "pre",
use: ["source-map-loader"],
},

@@ -143,2 +143,4 @@ ],

More information about the `ignoreWarnings` option can be found [here](https://webpack.js.org/configuration/other-options/#ignorewarnings)
## Contributing

@@ -145,0 +147,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc