@opentap/runner-client 2.29.3 → 2.30.0-alpha.1.1.13993390471
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/dist/cjs/BaseClient.d.ts +6 -0
- package/dist/cjs/BaseClient.js +12 -0
- package/dist/mjs/BaseClient.d.ts +6 -0
- package/dist/mjs/BaseClient.js +10 -0
- package/package.json +1 -1
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -249,5 +249,11 @@ export declare class BaseClient {
|
|
|
249
249
|
* @returns {Promise<string[]>}
|
|
250
250
|
*/
|
|
251
251
|
settingsPackageTypes(): Promise<string[]>;
|
|
252
|
+
/**
|
|
253
|
+
* Dispatches a request with the given subject and returns a Promise of type T
|
|
254
|
+
* @param subject The subject to send the request to
|
|
255
|
+
* @returns Promise<T> The response from the request
|
|
256
|
+
*/
|
|
257
|
+
dispatchRequest<T>(subject: string): Promise<T>;
|
|
252
258
|
}
|
|
253
259
|
export {};
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -682,6 +682,18 @@ var BaseClient = /** @class */ (function () {
|
|
|
682
682
|
BaseClient.prototype.settingsPackageTypes = function () {
|
|
683
683
|
return this.request('SettingsPackageTypes').then(this.success()).catch(this.error());
|
|
684
684
|
};
|
|
685
|
+
/**
|
|
686
|
+
* Dispatches a request with the given subject and returns a Promise of type T
|
|
687
|
+
* @param subject The subject to send the request to
|
|
688
|
+
* @returns Promise<T> The response from the request
|
|
689
|
+
*/
|
|
690
|
+
BaseClient.prototype.dispatchRequest = function (subject) {
|
|
691
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
692
|
+
return __generator(this, function (_a) {
|
|
693
|
+
return [2 /*return*/, this.request(subject)];
|
|
694
|
+
});
|
|
695
|
+
});
|
|
696
|
+
};
|
|
685
697
|
return BaseClient;
|
|
686
698
|
}());
|
|
687
699
|
exports.BaseClient = BaseClient;
|
package/dist/mjs/BaseClient.d.ts
CHANGED
|
@@ -249,5 +249,11 @@ export declare class BaseClient {
|
|
|
249
249
|
* @returns {Promise<string[]>}
|
|
250
250
|
*/
|
|
251
251
|
settingsPackageTypes(): Promise<string[]>;
|
|
252
|
+
/**
|
|
253
|
+
* Dispatches a request with the given subject and returns a Promise of type T
|
|
254
|
+
* @param subject The subject to send the request to
|
|
255
|
+
* @returns Promise<T> The response from the request
|
|
256
|
+
*/
|
|
257
|
+
dispatchRequest<T>(subject: string): Promise<T>;
|
|
252
258
|
}
|
|
253
259
|
export {};
|
package/dist/mjs/BaseClient.js
CHANGED
|
@@ -606,4 +606,14 @@ export class BaseClient {
|
|
|
606
606
|
settingsPackageTypes() {
|
|
607
607
|
return this.request('SettingsPackageTypes').then(this.success()).catch(this.error());
|
|
608
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* Dispatches a request with the given subject and returns a Promise of type T
|
|
611
|
+
* @param subject The subject to send the request to
|
|
612
|
+
* @returns Promise<T> The response from the request
|
|
613
|
+
*/
|
|
614
|
+
dispatchRequest(subject) {
|
|
615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
616
|
+
return this.request(subject);
|
|
617
|
+
});
|
|
618
|
+
}
|
|
609
619
|
}
|
package/package.json
CHANGED