tiro-notes 0.27.28 → 0.27.29

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/cli.js CHANGED
@@ -15,6 +15,7 @@ function getCliArgs () {
15
15
  var args = process.argv;
16
16
  var argsObj = {
17
17
  port: 3023,
18
+ https: false,
18
19
  tunnel: {
19
20
  enabled: false,
20
21
  },
@@ -26,6 +27,7 @@ function getCliArgs () {
26
27
  var argVal = args[i+1];
27
28
  argName = argName.replace('--', '').replace('-','')
28
29
  if (argName === 'p' || argName === 'port') argsObj.port = parseInt(argVal);
30
+ if (argName === 's' || argName === 'https') argsObj.https = true
29
31
  if (argName === 't' || argName === 'tunnel') {
30
32
  const argsArr = argVal.split(':')
31
33
  if (argsArr.length > 1) {
@@ -43,7 +45,10 @@ function startTiroServer (argsObj, cb) {
43
45
 
44
46
  // start tiro server, detect success message and get server params
45
47
  tHelpers.execCmd('node', [`${__dirname}/server/server.js`], {
46
- env: { TIRO_PORT: argsObj.port },
48
+ env: {
49
+ TIRO_PORT: argsObj.port,
50
+ TIRO_HTTPS: argsObj.https
51
+ },
47
52
  logName: 'tiroServer',
48
53
  onLog: str => {
49
54
  tHelpers.checkAndGetTiroConfig(str, {platform: 'cli', cb})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiro-notes",
3
- "version": "0.27.28",
3
+ "version": "0.27.29",
4
4
  "description": "Tiro Notes for CLI",
5
5
  "scripts": {
6
6
  "clean-previous-build": "rm -r node-build",