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

karma-electron

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-electron - npm Package Compare versions

Comparing version 6.0.0 to 6.1.0

2

CHANGELOG.md
# karma-electron changelog
6.1.0 - Added `--default-user-agent` via @makarandp0 in #39
6.0.0 - Updated source map support to pass through original source map fully

@@ -3,0 +5,0 @@

10

lib/electron-launcher.js

@@ -18,2 +18,3 @@ // When we run into an uncaught exception, fail hard

program.option('--show', 'Boolean to make the window visible', false);
program.option('--default-user-agent', 'Boolean when spefified uses default user agent');
program.option('--url [url]', 'URL to load page at');

@@ -50,3 +51,5 @@ program.option('--require [filepath]', 'Path to main process file to require');

});
browserWindow.loadURL(program.url, {
var loadUrlParams = {};
if (program.defaultUserAgent !== true) {
// Set a custom User-Agent for better logging

@@ -59,4 +62,5 @@ // https://github.com/atom/electron/blob/v0.36.9/docs/api/browser-window.md#winloadurlurl-options

// Example: Electron 0.36.9 (Node.js 5.1.1)
userAgent: 'Electron ' + process.versions.electron + ' (Node ' + process.versions.node + ')'
});
loadUrlParams.userAgent = 'Electron ' + process.versions.electron + ' (Node ' + process.versions.node + ')';
}
browserWindow.loadURL(program.url, loadUrlParams);
});
{
"name": "karma-electron",
"description": "Karma launcher and preprocessor for Electron",
"version": "6.0.0",
"version": "6.1.0",
"homepage": "https://github.com/twolfson/karma-electron",

@@ -6,0 +6,0 @@ "author": {

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