@itwin/workspace-editor 4.5.0-dev.27 → 4.5.0-dev.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.
@@ -17,7 +17,6 @@ const core_common_1 = require("@itwin/core-common");
17
17
  /* eslint-disable id-blacklist,no-console */
18
18
  /** Currently executing an "@" script? */
19
19
  let inScript = false;
20
- let logTimer;
21
20
  async function askQuestion(query) {
22
21
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
23
22
  return new Promise((resolve) => rl.question(query, (ans) => {
@@ -25,13 +24,8 @@ async function askQuestion(query) {
25
24
  resolve(ans);
26
25
  }));
27
26
  }
28
- function flushLog() {
29
- core_backend_1.IModelHost.platform.flushLog();
30
- }
31
- /** show a message, potentially flushing log messages first */
27
+ /** show a message */
32
28
  function showMessage(msg) {
33
- if (logTimer)
34
- flushLog();
35
29
  console.log(msg);
36
30
  }
37
31
  /** perform a vacuum on a database, with a message while it's happening */
@@ -420,7 +414,6 @@ function runCommand(cmd) {
420
414
  core_bentley_1.Logger.initializeToConsole();
421
415
  core_bentley_1.Logger.setLevel("CloudSqlite", core_bentley_1.LogLevel.Trace);
422
416
  core_backend_1.IModelHost.appWorkspace.getCloudCache().setLogMask(core_backend_1.CloudSqlite.LoggingMask.All);
423
- logTimer = setInterval(() => flushLog(), 250); // logging from other threads is buffered. This causes it to appear every 1/4 second.
424
417
  }
425
418
  await cmd(args);
426
419
  }
@@ -431,10 +424,6 @@ function runCommand(cmd) {
431
424
  console.log(core_bentley_1.BentleyError.getErrorMessage(e));
432
425
  }
433
426
  finally {
434
- if (logTimer) {
435
- flushLog();
436
- clearInterval(logTimer);
437
- }
438
427
  await core_backend_1.IModelHost.shutdown();
439
428
  }
440
429
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@itwin/workspace-editor",
3
3
  "license": "MIT",
4
4
  "main": "lib/WorkspaceEditor.js",
5
- "version": "4.5.0-dev.27",
5
+ "version": "4.5.0-dev.29",
6
6
  "bin": {
7
7
  "WorkspaceEditor": "./lib/WorkspaceEditor.js"
8
8
  },
@@ -17,9 +17,9 @@
17
17
  "dependencies": {
18
18
  "glob": "^7.1.2",
19
19
  "yargs": "^17.4.0",
20
- "@itwin/core-bentley": "4.5.0-dev.27",
21
- "@itwin/core-backend": "4.5.0-dev.27",
22
- "@itwin/core-common": "4.5.0-dev.27"
20
+ "@itwin/core-bentley": "4.5.0-dev.29",
21
+ "@itwin/core-backend": "4.5.0-dev.29",
22
+ "@itwin/core-common": "4.5.0-dev.29"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@itwin/eslint-plugin": "4.0.0-dev.44",
@@ -31,7 +31,7 @@
31
31
  "mocha": "^10.2.0",
32
32
  "rimraf": "^3.0.2",
33
33
  "typescript": "~5.0.2",
34
- "@itwin/build-tools": "4.5.0-dev.27"
34
+ "@itwin/build-tools": "4.5.0-dev.29"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsc 1>&2",