@opentap/runner-client 2.14.0-alpha.1.3 → 2.14.0-alpha.1.4

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.
@@ -6,7 +6,7 @@ export declare class RunnerClient extends BaseClient {
6
6
  startSession: (testPlanRepositoryReference?: RepositoryPackageReference, timeout?: number) => Promise<Session>;
7
7
  getImage: () => Promise<Image>;
8
8
  setImage: (image: Image) => Promise<Image>;
9
- getSettings: () => Promise<RepositoryPackageReference>;
9
+ getSettings: () => Promise<RepositoryPackageReference | undefined>;
10
10
  setSettings: (repositoryPackageReference: RepositoryPackageReference) => Promise<void>;
11
11
  };
12
12
  constructor(baseSubject: string, options: ConnectionOptions);
@@ -50,7 +50,9 @@ var RunnerClient = /** @class */ (function (_super) {
50
50
  in the image creation process and loaded into the created session */
51
51
  getSettings: function () {
52
52
  return _this.request('GetDefaultSettings')
53
- .then(function (repositoryPackageReferenceJs) { return RepositoryPackageReference.fromJS(repositoryPackageReferenceJs); })
53
+ .then(function (repositoryPackageReferenceJs) {
54
+ return repositoryPackageReferenceJs ? RepositoryPackageReference.fromJS(repositoryPackageReferenceJs) : undefined;
55
+ })
54
56
  .then(_this.success())
55
57
  .catch(_this.error());
56
58
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentap/runner-client",
3
- "version": "2.14.0-alpha.1.3",
3
+ "version": "2.14.0-alpha.1.4",
4
4
  "description": "This is the web client for the OpenTAP Runner.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",