@cyklang/cli 0.14.8 → 0.14.10

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.
@@ -351,7 +351,7 @@ function buildUploadList(dirName, dest, localList, remoteList) {
351
351
  const localDesc = localList[ind];
352
352
  const route = dest + localDesc.path.substring(dirName.length);
353
353
  const remoteDesc = remoteMap.get(route);
354
- if (remoteDesc === undefined || remoteDesc.mtime.getTime() + 1000 < localDesc.mtime.getTime()) {
354
+ if (!remoteDesc || !remoteDesc.mtime || remoteDesc.mtime.getTime() + 1000 < localDesc.mtime.getTime()) {
355
355
  // if (remoteDesc === undefined) logger.debug('remoteDesc undefined')
356
356
  // else logger.debug('remoteDesc.mtime ' + remoteDesc.mtime.getTime(), 'localDesc.mtime ' + localDesc.mtime.getTime())
357
357
  // logger.info(localDesc.path)
package/build/index.js CHANGED
@@ -182,7 +182,7 @@ class StopCommand extends commander_1.Command {
182
182
  */
183
183
  const program = new commander_1.Command();
184
184
  program.name('cyk').description('cyklang CLI')
185
- .version('0.14.8');
185
+ .version('0.14.10');
186
186
  program.addCommand(new StartCommand('start'));
187
187
  program.addCommand(new StopCommand('stop'));
188
188
  program.addCommand(new InstallCommand_1.InstallCommand('install'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyklang/cli",
3
- "version": "0.14.8",
3
+ "version": "0.14.10",
4
4
  "description": "cyklang CLI",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "author": "",
20
20
  "license": "ISC",
21
21
  "dependencies": {
22
- "@cyklang/core": "^0.12.1",
22
+ "@cyklang/core": "^0.12.3",
23
23
  "commander": "^9.4.0",
24
24
  "dotenv": "^16.0.1",
25
25
  "form-data": "^4.0.0",
@@ -363,7 +363,7 @@ function buildUploadList(dirName: string, dest: string, localList: FileDescripto
363
363
  const route = dest + localDesc.path.substring(dirName.length)
364
364
  const remoteDesc = remoteMap.get(route)
365
365
 
366
- if (remoteDesc === undefined || remoteDesc.mtime.getTime() + 1000 < localDesc.mtime.getTime()) {
366
+ if (!remoteDesc || !remoteDesc.mtime || remoteDesc.mtime.getTime() + 1000 < localDesc.mtime.getTime()) {
367
367
  // if (remoteDesc === undefined) logger.debug('remoteDesc undefined')
368
368
  // else logger.debug('remoteDesc.mtime ' + remoteDesc.mtime.getTime(), 'localDesc.mtime ' + localDesc.mtime.getTime())
369
369
  // logger.info(localDesc.path)
package/src/index.ts CHANGED
@@ -176,7 +176,7 @@ class StopCommand extends Command {
176
176
  */
177
177
  const program = new Command()
178
178
  program.name('cyk').description('cyklang CLI')
179
- .version('0.14.8')
179
+ .version('0.14.10')
180
180
  program.addCommand(new StartCommand('start'))
181
181
  program.addCommand(new StopCommand('stop'))
182
182
  program.addCommand(new InstallCommand('install'))