gap-nodejs-sdk 1.0.706 → 1.0.708
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/api/pos_client_api/1.0.0/models/check_in.d.ts +4 -0
- package/dist/api/pos_client_api/1.0.0/models/check_in.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/models/order.d.ts +2 -0
- package/dist/api/pos_client_api/1.0.0/models/order.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/models/order.js +4 -2
- package/dist/api/pos_client_api/1.0.0/types/response/order.d.ts +2 -0
- package/dist/api/pos_client_api/1.0.0/types/response/order.d.ts.map +1 -1
- package/dist/gap-sdk.js +1 -1
- package/dist/http_client/http_client.js +2 -1
- package/package.json +1 -1
|
@@ -41,6 +41,7 @@ export class HttpClient {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
request(params) {
|
|
44
|
+
var _a;
|
|
44
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
46
|
if (Context.API_VERSION !== this.API_VERSION) {
|
|
46
47
|
throw new GapErrors.RestResourceError(`Current Context.API_VERSION '${Context.API_VERSION}' does not match resource version ${this.API_VERSION}`);
|
|
@@ -56,7 +57,7 @@ export class HttpClient {
|
|
|
56
57
|
else {
|
|
57
58
|
url = `${this.domain}${this.getRequestPath(params.path)}`;
|
|
58
59
|
}
|
|
59
|
-
const options = Object.assign(Object.assign({ url }, params), { params: params.query, method: params.method.toString() });
|
|
60
|
+
const options = Object.assign(Object.assign({ url }, params), { params: params.query, method: params.method.toString(), signal: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.signal) || params.signal });
|
|
60
61
|
function sleep(waitTime) {
|
|
61
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
63
|
return new Promise((resolve) => setTimeout(resolve, waitTime));
|