@internxt/sdk 1.15.13 → 1.15.14

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.
@@ -82,7 +82,7 @@ var Meet = /** @class */ (function () {
82
82
  var _a;
83
83
  return __generator(this, function (_b) {
84
84
  headers = ((_a = this.apiSecurity) === null || _a === void 0 ? void 0 : _a.token) ? this.headersWithToken() : this.basicHeaders();
85
- return [2 /*return*/, this.client.post("call/".concat(callId, "/users/leave"), payload ? __assign({}, payload) : {}, headers)];
85
+ return [2 /*return*/, this.client.postWithKeepAlive("call/".concat(callId, "/users/leave"), payload ? __assign({}, payload) : {}, headers)];
86
86
  });
87
87
  });
88
88
  };
@@ -63,6 +63,13 @@ export declare class HttpClient {
63
63
  * @param headers
64
64
  */
65
65
  post<Response>(url: URL, params: Parameters, headers: Headers, signal?: AbortSignal): Promise<Response>;
66
+ /**
67
+ * Requests a POST with fetch adapter and keep-alive option
68
+ * @param url
69
+ * @param params
70
+ * @param headers
71
+ */
72
+ postWithKeepAlive<Response>(url: URL, params: Parameters, headers: Headers): Promise<Response>;
66
73
  /**
67
74
  * Requests a POST FORM
68
75
  * @param url
@@ -154,6 +154,31 @@ var HttpClient = /** @class */ (function () {
154
154
  });
155
155
  });
156
156
  };
157
+ /**
158
+ * Requests a POST with fetch adapter and keep-alive option
159
+ * @param url
160
+ * @param params
161
+ * @param headers
162
+ */
163
+ HttpClient.prototype.postWithKeepAlive = function (url, params, headers) {
164
+ return __awaiter(this, void 0, void 0, function () {
165
+ var _this = this;
166
+ return __generator(this, function (_a) {
167
+ switch (_a.label) {
168
+ case 0: return [4 /*yield*/, this.execute(function () {
169
+ return _this.axios.post(url, params, {
170
+ headers: headers,
171
+ adapter: 'fetch',
172
+ fetchOptions: {
173
+ keepalive: true,
174
+ },
175
+ });
176
+ })];
177
+ case 1: return [2 /*return*/, _a.sent()];
178
+ }
179
+ });
180
+ });
181
+ };
157
182
  /**
158
183
  * Requests a POST FORM
159
184
  * @param url
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@internxt/sdk",
3
3
  "author": "Internxt <hello@internxt.com>",
4
- "version": "1.15.13",
4
+ "version": "1.15.14",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",
@@ -43,7 +43,7 @@
43
43
  "vitest": "4.1.4"
44
44
  },
45
45
  "dependencies": {
46
- "axios": "1.15.0",
46
+ "axios": "1.15.2",
47
47
  "internxt-crypto": "1.0.2"
48
48
  },
49
49
  "lint-staged": {