diff --git a/bower.json b/bower.json index f8c1f31..f78da8c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-bootstrapper", - "version": "2.0.0", + "version": "2.0.1", "description": "Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-bootstrapper.js b/dist/amd/aurelia-bootstrapper.js index 6ddfffa..70a17db 100644 --- a/dist/amd/aurelia-bootstrapper.js +++ b/dist/amd/aurelia-bootstrapper.js @@ -86,9 +86,9 @@ define(['module', 'exports', 'aurelia-pal', 'aurelia-polyfills'], function (modu function initializePal(loader) { var type = void 0; - var isElectronRenderer = isNodeLike && process.type === 'renderer'; + var isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); - if (isNodeLike && !isElectronRenderer) { + if (isNodeLike && !isRenderer) { type = 'nodejs'; } else if (typeof window !== 'undefined') { type = 'browser'; diff --git a/dist/aurelia-bootstrapper.js b/dist/aurelia-bootstrapper.js index d6253b4..3ec28f5 100644 --- a/dist/aurelia-bootstrapper.js +++ b/dist/aurelia-bootstrapper.js @@ -84,9 +84,9 @@ function createLoader() { function initializePal(loader) { let type; - const isElectronRenderer = isNodeLike && process.type === 'renderer'; + const isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); - if (isNodeLike && !isElectronRenderer) { + if (isNodeLike && !isRenderer) { type = 'nodejs'; } else if (typeof window !== 'undefined') { type = 'browser'; diff --git a/dist/commonjs/aurelia-bootstrapper.js b/dist/commonjs/aurelia-bootstrapper.js index 3b082b1..ca86c1e 100644 --- a/dist/commonjs/aurelia-bootstrapper.js +++ b/dist/commonjs/aurelia-bootstrapper.js @@ -88,9 +88,9 @@ function createLoader() { function initializePal(loader) { var type = void 0; - var isElectronRenderer = isNodeLike && process.type === 'renderer'; + var isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); - if (isNodeLike && !isElectronRenderer) { + if (isNodeLike && !isRenderer) { type = 'nodejs'; } else if (typeof window !== 'undefined') { type = 'browser'; diff --git a/dist/es2015/aurelia-bootstrapper.js b/dist/es2015/aurelia-bootstrapper.js index 4ff1160..a8e4b62 100644 --- a/dist/es2015/aurelia-bootstrapper.js +++ b/dist/es2015/aurelia-bootstrapper.js @@ -73,9 +73,9 @@ function createLoader() { function initializePal(loader) { let type; - const isElectronRenderer = isNodeLike && process.type === 'renderer'; + const isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); - if (isNodeLike && !isElectronRenderer) { + if (isNodeLike && !isRenderer) { type = 'nodejs'; } else if (typeof window !== 'undefined') { type = 'browser'; diff --git a/dist/native-modules/aurelia-bootstrapper.js b/dist/native-modules/aurelia-bootstrapper.js index 1a5051a..851d01c 100644 --- a/dist/native-modules/aurelia-bootstrapper.js +++ b/dist/native-modules/aurelia-bootstrapper.js @@ -79,9 +79,9 @@ function createLoader() { function initializePal(loader) { var type = void 0; - var isElectronRenderer = isNodeLike && process.type === 'renderer'; + var isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); - if (isNodeLike && !isElectronRenderer) { + if (isNodeLike && !isRenderer) { type = 'nodejs'; } else if (typeof window !== 'undefined') { type = 'browser'; diff --git a/dist/system/aurelia-bootstrapper.js b/dist/system/aurelia-bootstrapper.js index 2f8e6a0..f0f234b 100644 --- a/dist/system/aurelia-bootstrapper.js +++ b/dist/system/aurelia-bootstrapper.js @@ -78,9 +78,9 @@ System.register(['aurelia-polyfills', 'aurelia-pal'], function (_export, _contex function initializePal(loader) { var type = void 0; - var isElectronRenderer = isNodeLike && process.type === 'renderer'; + var isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); - if (isNodeLike && !isElectronRenderer) { + if (isNodeLike && !isRenderer) { type = 'nodejs'; } else if (typeof window !== 'undefined') { type = 'browser'; diff --git a/package.json b/package.json index 83937f5..b312248 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-bootstrapper", - "version": "2.0.0", + "version": "2.0.1", "description": "Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.", "keywords": [ "aurelia",