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

@chiragrupani/karma-chromium-edge-launcher

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chiragrupani/karma-chromium-edge-launcher - npm Package Compare versions

Comparing version 2.3.1 to 2.4.1

32

dist/BaseBrowser.js

@@ -8,2 +8,4 @@ "use strict";

class BaseBrowser {
flags;
userDataDir;
constructor(flags, userDataDir) {

@@ -23,16 +25,16 @@ this.flags = flags;

let allflags = [
'--user-data-dir=' + this.userDataDir,
"--user-data-dir=" + this.userDataDir,
// https://github.com/GoogleChrome/chrome-launcher/blob/master/docs/chrome-flags-for-tools.md#--enable-automation
'--enable-automation',
'--no-default-browser-check',
'--no-first-run',
'--disable-default-apps',
'--disable-popup-blocking',
'--disable-translate',
'--disable-background-timer-throttling',
"--enable-automation",
"--no-default-browser-check",
"--no-first-run",
"--disable-default-apps",
"--disable-popup-blocking",
"--disable-background-timer-throttling",
// on macOS, disable-background-timer-throttling is not enough
// and we need disable-renderer-backgrounding too
// see https://github.com/karma-runner/karma-chrome-launcher/issues/123
'--disable-renderer-backgrounding',
'--disable-device-discovery-notifications',
"--disable-renderer-backgrounding",
"--disable-device-discovery-notifications",
"--mute-audio",
].concat(this.flags, [url]);

@@ -45,8 +47,8 @@ return allflags;

// If there is arg with --headless=new or --headless=old, don't add --headless flag
mergedArgs = mergedArgs.some((flag) => flag.indexOf('--headless=') !== -1)
mergedArgs = mergedArgs.some((flag) => flag.indexOf("--headless=") !== -1)
? mergedArgs
: mergedArgs.concat(['--headless']);
: mergedArgs.concat(["--headless"]);
// Add other flags to support headless mode
mergedArgs = mergedArgs.concat([
'--no-proxy-server',
"--no-proxy-server",
//'--no-sandbox',

@@ -56,5 +58,5 @@ //'--disable-gpu',

// Add remote debugging port
mergedArgs = mergedArgs.some((flag) => flag.indexOf('--remote-debugging-port=') !== -1)
mergedArgs = mergedArgs.some((flag) => flag.indexOf("--remote-debugging-port=") !== -1)
? mergedArgs
: mergedArgs.concat(['--remote-debugging-port=9222']);
: mergedArgs.concat(["--remote-debugging-port=9222"]);
return mergedArgs;

@@ -61,0 +63,0 @@ }

declare const EdgeAnyBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeAnyBrowser;

@@ -15,5 +15,5 @@ "use strict";

};
EdgeAnyBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeAnyBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeAnyBrowser.prototype = {
name: 'Edge Any',
name: "Edge Any",
DEFAULT_CMD: {

@@ -24,4 +24,4 @@ linux: Utilities_1.default.GetEdgeAnyLinux(),

},
ENV_CMD: 'EDGE_ANY_BIN',
ENV_CMD: "EDGE_ANY_BIN",
};
exports.default = EdgeAnyBrowser;
declare const EdgeBetaBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeBetaBrowser;

@@ -16,5 +16,5 @@ "use strict";

};
EdgeBetaBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeBetaBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeBetaBrowser.prototype = {
name: 'Edge Beta',
name: "Edge Beta",
DEFAULT_CMD: {

@@ -25,4 +25,4 @@ linux: Utilities_1.default.GetLinuxBin(Constants_1.LinuxConstants.EdgeBeta),

},
ENV_CMD: 'EDGE_BETA_BIN',
ENV_CMD: "EDGE_BETA_BIN",
};
exports.default = EdgeBetaBrowser;
declare const EdgeCanaryBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeCanaryBrowser;

@@ -16,5 +16,5 @@ "use strict";

};
EdgeCanaryBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeCanaryBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeCanaryBrowser.prototype = {
name: 'Edge Canary',
name: "Edge Canary",
DEFAULT_CMD: {

@@ -25,4 +25,4 @@ linux: Utilities_1.default.GetLinuxBin(Constants_1.LinuxConstants.EdgeCanary),

},
ENV_CMD: 'EDGE_CANARY_BIN',
ENV_CMD: "EDGE_CANARY_BIN",
};
exports.default = EdgeCanaryBrowser;
declare const EdgeDevBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeDevBrowser;

@@ -16,5 +16,5 @@ "use strict";

};
EdgeDevBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeDevBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeDevBrowser.prototype = {
name: 'Edge Dev',
name: "Edge Dev",
DEFAULT_CMD: {

@@ -25,4 +25,4 @@ linux: Utilities_1.default.GetLinuxBin(Constants_1.LinuxConstants.EdgeDev),

},
ENV_CMD: 'EDGE_DEV_BIN',
ENV_CMD: "EDGE_DEV_BIN",
};
exports.default = EdgeDevBrowser;
declare const EdgeStableBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeStableBrowser;

@@ -16,5 +16,5 @@ "use strict";

};
EdgeStableBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeStableBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeStableBrowser.prototype = {
name: 'Edge',
name: "Edge",
DEFAULT_CMD: {

@@ -25,4 +25,4 @@ linux: Utilities_1.default.GetLinuxBin(Constants_1.LinuxConstants.Edge),

},
ENV_CMD: 'EDGE_BIN',
ENV_CMD: "EDGE_BIN",
};
exports.default = EdgeStableBrowser;

@@ -5,21 +5,21 @@ "use strict";

class WindowsConstants {
static EdgeCanary = 'Edge SxS';
static EdgeBeta = 'Edge Beta';
static EdgeDev = 'Edge Dev';
static Edge = 'Edge';
}
WindowsConstants.EdgeCanary = 'Edge SxS';
WindowsConstants.EdgeBeta = 'Edge Beta';
WindowsConstants.EdgeDev = 'Edge Dev';
WindowsConstants.Edge = 'Edge';
exports.WindowsConstants = WindowsConstants;
class LinuxConstants {
static EdgeCanary = 'microsoft-edge-canary';
static EdgeBeta = 'microsoft-edge-beta';
static EdgeDev = 'microsoft-edge-dev';
static Edge = 'microsoft-edge';
}
LinuxConstants.EdgeCanary = 'microsoft-edge-canary';
LinuxConstants.EdgeBeta = 'microsoft-edge-beta';
LinuxConstants.EdgeDev = 'microsoft-edge-dev';
LinuxConstants.Edge = 'microsoft-edge';
exports.LinuxConstants = LinuxConstants;
class DarwinConstants {
static EdgeCanary = 'Microsoft Edge Canary';
static EdgeBeta = 'Microsoft Edge Beta';
static EdgeDev = 'Microsoft Edge Dev';
static Edge = 'Microsoft Edge';
}
DarwinConstants.EdgeCanary = 'Microsoft Edge Canary';
DarwinConstants.EdgeBeta = 'Microsoft Edge Beta';
DarwinConstants.EdgeDev = 'Microsoft Edge Dev';
DarwinConstants.Edge = 'Microsoft Edge';
exports.DarwinConstants = DarwinConstants;
declare const EdgeAnyHeadlessBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeAnyHeadlessBrowser;

@@ -15,5 +15,5 @@ "use strict";

};
EdgeAnyHeadlessBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeAnyHeadlessBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeAnyHeadlessBrowser.prototype = {
name: 'Edge Any Headless',
name: "Edge Any Headless",
DEFAULT_CMD: {

@@ -24,4 +24,4 @@ linux: Utilities_1.default.GetEdgeAnyLinux(),

},
ENV_CMD: 'EDGE_ANY_BIN',
ENV_CMD: "EDGE_ANY_BIN",
};
exports.default = EdgeAnyHeadlessBrowser;
declare const EdgeBetaHeadlessBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeBetaHeadlessBrowser;

@@ -16,5 +16,5 @@ "use strict";

};
EdgeBetaHeadlessBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeBetaHeadlessBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeBetaHeadlessBrowser.prototype = {
name: 'Edge Beta Headless',
name: "Edge Beta Headless",
DEFAULT_CMD: {

@@ -25,4 +25,4 @@ linux: Utilities_1.default.GetLinuxBin(Constants_1.LinuxConstants.EdgeBeta),

},
ENV_CMD: 'EDGE_BETA_BIN',
ENV_CMD: "EDGE_BETA_BIN",
};
exports.default = EdgeBetaHeadlessBrowser;
declare const EdgeCanaryHeadlessBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeCanaryHeadlessBrowser;

@@ -16,5 +16,5 @@ "use strict";

};
EdgeCanaryHeadlessBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeCanaryHeadlessBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeCanaryHeadlessBrowser.prototype = {
name: 'Edge Canary Headless',
name: "Edge Canary Headless",
DEFAULT_CMD: {

@@ -25,4 +25,4 @@ linux: Utilities_1.default.GetLinuxBin(Constants_1.LinuxConstants.EdgeCanary),

},
ENV_CMD: 'EDGE_CANARY_BIN',
ENV_CMD: "EDGE_CANARY_BIN",
};
exports.default = EdgeCanaryHeadlessBrowser;
declare const EdgeDevHeadlessBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeDevHeadlessBrowser;

@@ -16,5 +16,5 @@ "use strict";

};
EdgeDevHeadlessBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeDevHeadlessBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeDevHeadlessBrowser.prototype = {
name: 'Edge Dev Headless',
name: "Edge Dev Headless",
DEFAULT_CMD: {

@@ -25,4 +25,4 @@ linux: Utilities_1.default.GetLinuxBin(Constants_1.LinuxConstants.EdgeDev),

},
ENV_CMD: 'EDGE_DEV_BIN',
ENV_CMD: "EDGE_DEV_BIN",
};
exports.default = EdgeDevHeadlessBrowser;
declare const EdgeStableHeadlessBrowser: {
(baseBrowserDecorator: any, args: any): void;
(baseBrowserDecorator: (arg0: any) => void, args: {
flags?: string[];
edgeDataDir?: string;
}): void;
$inject: string[];
};
export default EdgeStableHeadlessBrowser;

@@ -16,5 +16,5 @@ "use strict";

};
EdgeStableHeadlessBrowser.$inject = ['baseBrowserDecorator', 'args'];
EdgeStableHeadlessBrowser.$inject = ["baseBrowserDecorator", "args"];
EdgeStableHeadlessBrowser.prototype = {
name: 'Edge Headless',
name: "Edge Headless",
DEFAULT_CMD: {

@@ -25,4 +25,4 @@ linux: Utilities_1.default.GetLinuxBin(Constants_1.LinuxConstants.Edge),

},
ENV_CMD: 'EDGE_BIN',
ENV_CMD: "EDGE_BIN",
};
exports.default = EdgeStableHeadlessBrowser;
{
"name": "@chiragrupani/karma-chromium-edge-launcher",
"version": "2.3.1",
"version": "2.4.1",
"description": "A Karma plugin. Launcher for different Chromium Edge channels - Dev, Canary, Beta and Stable",

@@ -37,14 +37,14 @@ "main": "dist/index.js",

"devDependencies": {
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
"@types/node": "^20.2.3",
"@types/sinon": "^10.0.15",
"chai": "^4.3.7",
"karma": "^6.4.2",
"@types/chai": "^4.3.16",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.12",
"@types/sinon": "^17.0.3",
"chai": "^4.3.10",
"karma": "^6.4.3",
"karma-mocha": "^2.0.1",
"mocha": "^10.2.0",
"mocha-junit-reporter": "^2.2.0",
"mocha": "^10.4.0",
"mocha-junit-reporter": "^2.2.1",
"nyc": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
},

@@ -51,0 +51,0 @@ "nyc": {

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