ee-bin 4.1.6-beta.1 → 4.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/utils.js CHANGED
@@ -192,7 +192,7 @@ function getPlatform(delimiter = "_", isDiffArch = false) {
192
192
  }
193
193
 
194
194
  // Get cmd parameter by name
195
- function getArgumentByName(args, name) {
195
+ function getArgumentByName(name, args) {
196
196
  if (!args) {
197
197
  args = process.argv;
198
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ee-bin",
3
- "version": "4.1.6-beta.1",
3
+ "version": "4.1.6",
4
4
  "description": "ee bin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tools/serve.js CHANGED
@@ -91,7 +91,7 @@ class ServeProcess {
91
91
  const electronConfig = binCmdConfig.electron;
92
92
 
93
93
  // Debugging source code
94
- const debugging = getArgumentByName(electronConfig.args, 'debuger') == 'true'? true : false;
94
+ const debugging = getArgumentByName('debuger', electronConfig.args) == 'true'? true : false;
95
95
  this._switchPkgMain(debugging);
96
96
 
97
97
  // watche electron main code