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.2.2 to 2.3.1

25

dist/BaseBrowser.js

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

});
var allflags = [
let allflags = [
'--user-data-dir=' + this.userDataDir,

@@ -41,4 +41,10 @@ // https://github.com/GoogleChrome/chrome-launcher/blob/master/docs/chrome-flags-for-tools.md#--enable-automation

_getHeadlessOptions(url) {
var mergedArgs = this._getOptions(url).concat([
'--headless',
let mergedArgs = this._getOptions(url);
// Adding Headless flag
// 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.concat(['--headless']);
// Add other flags to support headless mode
mergedArgs = mergedArgs.concat([
'--no-proxy-server',

@@ -48,12 +54,9 @@ //'--no-sandbox',

]);
var args;
if (mergedArgs.some((f) => f.indexOf('--remote-debugging-port=') !== -1)) {
args = mergedArgs;
}
else {
args = mergedArgs.concat(['--remote-debugging-port=9222']);
}
return args;
// Add remote debugging port
mergedArgs = mergedArgs.some((flag) => flag.indexOf('--remote-debugging-port=') !== -1)
? mergedArgs
: mergedArgs.concat(['--remote-debugging-port=9222']);
return mergedArgs;
}
}
exports.default = BaseBrowser;

@@ -6,3 +6,2 @@ "use strict";

}
exports.WindowsConstants = WindowsConstants;
WindowsConstants.EdgeCanary = 'Edge SxS';

@@ -12,5 +11,5 @@ WindowsConstants.EdgeBeta = 'Edge Beta';

WindowsConstants.Edge = 'Edge';
exports.WindowsConstants = WindowsConstants;
class LinuxConstants {
}
exports.LinuxConstants = LinuxConstants;
LinuxConstants.EdgeCanary = 'microsoft-edge-canary';

@@ -20,5 +19,5 @@ LinuxConstants.EdgeBeta = 'microsoft-edge-beta';

LinuxConstants.Edge = 'microsoft-edge';
exports.LinuxConstants = LinuxConstants;
class DarwinConstants {
}
exports.DarwinConstants = DarwinConstants;
DarwinConstants.EdgeCanary = 'Microsoft Edge Canary';

@@ -28,1 +27,2 @@ DarwinConstants.EdgeBeta = 'Microsoft Edge Beta';

DarwinConstants.Edge = 'Microsoft Edge';
exports.DarwinConstants = DarwinConstants;

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

];
var edgeBIN = '/usr/bin/' + command;
let edgeBIN = '/usr/bin/' + command;
try {

@@ -37,3 +37,3 @@ fs_1.default.accessSync(edgeBIN, fs_1.default.constants.X_OK);

}
var darwinPaths = [
let darwinPaths = [
path_1.default.join(process.env.HOME || '', defaultPath),

@@ -47,3 +47,3 @@ defaultPath,

}
catch (_a) { }
catch { }
}

@@ -58,12 +58,13 @@ return null;

}
var suffix = '\\Microsoft\\' + edgeDirName + '\\Application\\msedge.exe';
var prefixes = [
process.env['PROGRAMFILES(X86)'],
let suffix = '\\Microsoft\\' + edgeDirName + '\\Application\\msedge.exe';
let prefixes = [
process.env["PROGRAMFILES(X86)"],
process.env.PROGRAMFILES,
process.env.LOCALAPPDATA,
process.env.ProgramW6432,
];
var edgePath = null;
let edgePath = null;
for (let i = 0; i < prefixes.length; i++) {
try {
var windowsEdgeDirectory = path_1.default.join(prefixes[i] || '', suffix);
let windowsEdgeDirectory = path_1.default.join(prefixes[i] || '', suffix);
fs_1.default.accessSync(windowsEdgeDirectory);

@@ -81,9 +82,9 @@ edgePath = windowsEdgeDirectory;

static sanitizeJSFlags(flag) {
var test = /--js-flags=(['"])/.exec(flag);
let test = /--js-flags=(['"])/.exec(flag);
if (!test) {
return flag;
}
var escapeChar = test[1];
var endExp = new RegExp(escapeChar + '$');
var startExp = new RegExp('--js-flags=' + escapeChar);
let escapeChar = test[1];
let endExp = new RegExp(escapeChar + '$');
let startExp = new RegExp('--js-flags=' + escapeChar);
return flag.replace(startExp, '--js-flags=').replace(endExp, '');

@@ -90,0 +91,0 @@ }

{
"name": "@chiragrupani/karma-chromium-edge-launcher",
"version": "2.2.2",
"version": "2.3.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.1",
"@types/mocha": "^9.1.1",
"@types/node": "^17.0.34",
"@types/sinon": "^10.0.11",
"chai": "^4.3.6",
"mocha": "^10.0.0",
"mocha-junit-reporter": "^2.0.2",
"@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",
"karma-mocha": "^2.0.1",
"mocha": "^10.2.0",
"mocha-junit-reporter": "^2.2.0",
"nyc": "^15.1.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.4",
"karma": "^6.3.20",
"karma-mocha": "^2.0.1"
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},

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

# Karma-Chromium-Edge-Launcher
[![npm (scoped)](https://img.shields.io/npm/v/@chiragrupani/karma-chromium-edge-launcher.svg?style=flat-square)](https://www.npmjs.com/package/@chiragrupani/karma-chromium-edge-launcher) [![npm](https://img.shields.io/npm/dt/@chiragrupani/karma-chromium-edge-launcher.svg?style=flat-square)](https://www.npmjs.com/package/@chiragrupani/karma-chromium-edge-launcher)
[![npm (scoped)](https://img.shields.io/npm/v/@chiragrupani/karma-chromium-edge-launcher.svg?style=flat-square)](https://www.npmjs.com/package/@chiragrupani/karma-chromium-edge-launcher) [![npm](https://img.shields.io/npm/dt/@chiragrupani/karma-chromium-edge-launcher?color=%23238636&label=Downloads&style=flat-square)](https://www.npmjs.com/package/@chiragrupani/karma-chromium-edge-launcher)

@@ -93,3 +93,3 @@ [![Build Status](https://dev.azure.com/chiragrupani/chromium-edge-launcher/_apis/build/status/ChiragRupani.karma-chromiumedge-launcher?branchName=master)](https://github.com/ChiragRupani/karma-chromiumedge-launcher)

EdgeHeadlessCI: {
base: "EdgeHeadless",
base: "EdgeAnyHeadless",
flags: ["--no-sandbox"],

@@ -96,0 +96,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