testit-js-commons 4.0.3 → 4.0.5

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.
@@ -23,8 +23,16 @@ class BaseConverter {
23
23
  return testit_api_client_1.LinkType[linkType];
24
24
  }
25
25
  toOriginLink(link) {
26
+ const defaultType = "Related";
27
+ let type = defaultType;
28
+ if (link.type) {
29
+ const mapped = this.toOriginLinkType(link.type);
30
+ if (mapped != null) {
31
+ type = mapped;
32
+ }
33
+ }
26
34
  // @ts-ignore
27
- return Object.assign(Object.assign({}, link), { type: link.type ? this.toOriginLinkType(link.type) : "Related", hasInfo: true });
35
+ return Object.assign(Object.assign({}, link), { type, hasInfo: true });
28
36
  }
29
37
  toLocalLink(link) {
30
38
  var _a, _b;
@@ -349,7 +349,7 @@ class SyncStorageRunner {
349
349
  }
350
350
  }
351
351
  exports.SyncStorageRunner = SyncStorageRunner;
352
- SyncStorageRunner.VERSION = "v0.3.0";
352
+ SyncStorageRunner.VERSION = "v0.3.2";
353
353
  SyncStorageRunner.STARTUP_TIMEOUT_MS = 30000;
354
354
  SyncStorageRunner.STARTUP_POLL_MS = 1000;
355
355
  SyncStorageRunner.PROCESS_WARMUP_MS = 2000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testit-js-commons",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "JavaScript commons for Test IT",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",