Comparing version 0.4.9 to 0.4.10
{ | ||
"name": "rap-esp32", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"description": "Rap extension for esp32", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -54,21 +54,21 @@ 'use strict'; | ||
let cmd = (() => { | ||
let platform = process.platform; | ||
switch (platform) { | ||
case 'darwin': | ||
arglst = arglst.replaceItem('__PORT__', '/dev/cu.SLAB_USBtoUART'); | ||
break; | ||
case 'linux': | ||
arglst = arglst.replaceItem('__PORT__', '/dev/ttyUSB0'); | ||
break; | ||
case 'win32': | ||
arglst = arglst.replaceItem('__PORT__', 'COM1'); | ||
break; | ||
default: { | ||
console.log(`Unknown platform ${platform}!`); | ||
process.exit(1); | ||
} | ||
} | ||
if (options.port) { | ||
arglst = arglst.replaceItem('__PORT__', options.port); | ||
} else { | ||
let platform = process.platform; | ||
switch (platform) { | ||
case 'darwin': | ||
arglst = arglst.replaceItem('__PORT__', '/dev/cu.SLAB_USBtoUART'); | ||
break; | ||
case 'linux': | ||
arglst = arglst.replaceItem('__PORT__', '/dev/ttyUSB0'); | ||
break; | ||
case 'win32': | ||
arglst = arglst.replaceItem('__PORT__', 'COM1'); | ||
break; | ||
default: { | ||
console.log(`Unknown platform ${platform}!`); | ||
process.exit(1); | ||
} | ||
} | ||
} | ||
@@ -75,0 +75,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28428
778