@airtop/sdk 1.0.0-alpha2.39 → 1.0.0-alpha2.40
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/index.cjs +9 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +9 -13
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var require_package = __commonJS({
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@airtop/sdk",
|
|
11
11
|
description: "Airtop SDK for TypeScript",
|
|
12
|
-
version: "1.0.0-alpha2.
|
|
12
|
+
version: "1.0.0-alpha2.40",
|
|
13
13
|
type: "module",
|
|
14
14
|
main: "./dist/index.cjs",
|
|
15
15
|
module: "./dist/index.js",
|
|
@@ -48,10 +48,10 @@ var require_package = __commonJS({
|
|
|
48
48
|
"verify-types": "tsc --noEmit && tsc --noEmit --project tsconfig.e2e.json"
|
|
49
49
|
},
|
|
50
50
|
dependencies: {
|
|
51
|
-
"@airtop/core": "0.1.0-alpha.
|
|
51
|
+
"@airtop/core": "0.1.0-alpha.49",
|
|
52
52
|
"@airtop/json-schema-adapter": "workspace:*",
|
|
53
53
|
"date-fns": "4.1.0",
|
|
54
|
-
loglayer: "
|
|
54
|
+
loglayer: "8.1.0",
|
|
55
55
|
"serialize-error": "12.0.0",
|
|
56
56
|
uuid: "11.1.0"
|
|
57
57
|
},
|
|
@@ -1393,15 +1393,13 @@ var AirtopSessionClient = class extends AirtopBase {
|
|
|
1393
1393
|
options
|
|
1394
1394
|
);
|
|
1395
1395
|
}
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
*/
|
|
1401
|
-
async getConnectedServices(requestOptions = {}) {
|
|
1396
|
+
async getConnectedServices(configOrRequestOptions) {
|
|
1397
|
+
const isConfigFormat = configOrRequestOptions && ("options" in configOrRequestOptions || "requestOptions" in configOrRequestOptions);
|
|
1398
|
+
const options = isConfigFormat ? configOrRequestOptions.options : void 0;
|
|
1399
|
+
const requestOptions = isConfigFormat ? configOrRequestOptions.requestOptions || {} : configOrRequestOptions || {};
|
|
1402
1400
|
return withRequestCompletionPolling(
|
|
1403
1401
|
this.client,
|
|
1404
|
-
() => this.client.sessions.getConnectedServices(this.sessionId),
|
|
1402
|
+
() => this.client.sessions.getConnectedServices(this.sessionId, options),
|
|
1405
1403
|
requestOptions
|
|
1406
1404
|
);
|
|
1407
1405
|
}
|
|
@@ -1446,9 +1444,7 @@ ${JSON.stringify(event, null, 2)}`);
|
|
|
1446
1444
|
}
|
|
1447
1445
|
const thresholdTime = startTime.getTime() - lookbackSeconds * 1e3;
|
|
1448
1446
|
if (eventTime < thresholdTime) {
|
|
1449
|
-
this.log.info(
|
|
1450
|
-
`stopping event processing - encountered event older than lookbackSeconds threshold`
|
|
1451
|
-
);
|
|
1447
|
+
this.log.info(`stopping event processing - encountered event older than lookbackSeconds threshold`);
|
|
1452
1448
|
break;
|
|
1453
1449
|
}
|
|
1454
1450
|
return {
|