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

devtools-modules

Package Overview
Dependencies
Maintainers
12
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devtools-modules - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

2

index.js

@@ -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");

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