devtools-modules
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -30,4 +30,4 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
getUnicodeUrl, | ||
PluralForm, | ||
PluralForm | ||
saveAs | ||
}; |
{ | ||
"name": "devtools-modules", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "DevTools Modules from M-C", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -137,10 +137,2 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
// If Scratchpad URI, like "Scratchpad/1"; no modifications, | ||
// and short/long are the same. | ||
if (isScratchpadScheme(sourceStr)) { | ||
let result = { short: sourceStr, long: sourceStr }; | ||
gSourceNamesStore.set(source, result); | ||
return result; | ||
} | ||
const parsedUrl = parseURL(sourceStr); | ||
@@ -196,19 +188,2 @@ | ||
/** | ||
* Checks for a Scratchpad URI, like "Scratchpad/1" | ||
*/ | ||
function isScratchpadScheme(location, i = 0) { | ||
return location.charCodeAt(i) === CHAR_CODE_CAP_S && | ||
location.charCodeAt(++i) === CHAR_CODE_C && | ||
location.charCodeAt(++i) === CHAR_CODE_R && | ||
location.charCodeAt(++i) === CHAR_CODE_A && | ||
location.charCodeAt(++i) === CHAR_CODE_T && | ||
location.charCodeAt(++i) === CHAR_CODE_C && | ||
location.charCodeAt(++i) === CHAR_CODE_H && | ||
location.charCodeAt(++i) === CHAR_CODE_P && | ||
location.charCodeAt(++i) === CHAR_CODE_A && | ||
location.charCodeAt(++i) === CHAR_CODE_D && | ||
location.charCodeAt(++i) === CHAR_CODE_SLASH; | ||
} | ||
function isDataScheme(location, i = 0) { | ||
@@ -361,3 +336,2 @@ return location.charCodeAt(i) === CHAR_CODE_D && | ||
getSourceNames, | ||
isScratchpadScheme, | ||
isChromeScheme, | ||
@@ -364,0 +338,0 @@ isContentScheme, |
@@ -11,3 +11,2 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
isDataScheme, | ||
isScratchpadScheme, | ||
isWASM, | ||
@@ -83,8 +82,2 @@ parseURL, | ||
it("isScratchpadTheme", () => { | ||
expect(isScratchpadScheme("Scratchpad/1")).toBe(true); | ||
expect(isScratchpadScheme("Scratchpad/20")).toBe(true); | ||
expect(isScratchpadScheme("http://www.mozilla.org")).toBe(false); | ||
}); | ||
it("getSourceMappedFile", () => { | ||
@@ -91,0 +84,0 @@ expect(getSourceMappedFile("baz.js")).toBe("baz.js"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127845
3192