karma-electron
Advanced tools
Comparing version 4.0.0 to 4.1.0
# karma-electron changelog | ||
4.1.0 - Added loading of `electron` package due to `electron-prebuilt` deprecation via @MLefebvreICO in #10 | ||
4.0.0 - Added submodules support by using local `require` and documenting `useIframe` usage (now supported by `karma@1.1.0` for Electron) | ||
@@ -3,0 +5,0 @@ |
@@ -5,6 +5,13 @@ // Load in our dependencies | ||
try { | ||
electronPrebuilt = require('electron-prebuilt'); | ||
} catch (err) { | ||
console.error('Expected `electron-prebuilt` to be installed but it was not. Please install it.'); | ||
throw err; | ||
electronPrebuilt = require('electron'); | ||
} catch (electronNotFoundErr) { | ||
try { | ||
electronPrebuilt = require('electron-prebuilt'); | ||
// https://github.com/electron-userland/electron-prebuilt/tree/v1.3.3#installation | ||
console.warn('WARN: `electron-prebuilt` has been deprecated as of `electron-prebuilt@1.3.1`. ' + | ||
'Please move to `electron` instead'); | ||
} catch (electronPrebuiltNotFoundErr) { | ||
console.error('Expected `electron` to be installed but it was not. Please install it.'); | ||
throw electronNotFoundErr; | ||
} | ||
} | ||
@@ -11,0 +18,0 @@ |
{ | ||
"name": "karma-electron", | ||
"description": "Karma launcher and preprocessor for Electron", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"homepage": "https://github.com/twolfson/karma-electron", | ||
@@ -49,3 +49,3 @@ "author": { | ||
"cross-env": "~1.0.7", | ||
"electron-prebuilt": "~0.37.4", | ||
"electron": "~1.3.3", | ||
"foundry": "~4.0.3", | ||
@@ -52,0 +52,0 @@ "foundry-release-git": "~2.0.2", |
33936
505