@airtop/sdk 1.0.0-alpha2.38 → 1.0.0-alpha2.39
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 +10 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -253,6 +253,10 @@ interface AirtopConstructorConfig {
|
|
|
253
253
|
* Defaults to 5 minutes if not specified.
|
|
254
254
|
*/
|
|
255
255
|
defaultTimeoutInSeconds?: number;
|
|
256
|
+
/**
|
|
257
|
+
* (Internal use only) Analytics environment. Used to track the source environment where the SDK is used.
|
|
258
|
+
*/
|
|
259
|
+
environment?: string;
|
|
256
260
|
}
|
|
257
261
|
/**
|
|
258
262
|
* Configuration options for creating a new session.
|
package/dist/index.d.ts
CHANGED
|
@@ -253,6 +253,10 @@ interface AirtopConstructorConfig {
|
|
|
253
253
|
* Defaults to 5 minutes if not specified.
|
|
254
254
|
*/
|
|
255
255
|
defaultTimeoutInSeconds?: number;
|
|
256
|
+
/**
|
|
257
|
+
* (Internal use only) Analytics environment. Used to track the source environment where the SDK is used.
|
|
258
|
+
*/
|
|
259
|
+
environment?: string;
|
|
256
260
|
}
|
|
257
261
|
/**
|
|
258
262
|
* Configuration options for creating a new session.
|
package/dist/index.js
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.39",
|
|
13
13
|
type: "module",
|
|
14
14
|
main: "./dist/index.cjs",
|
|
15
15
|
module: "./dist/index.js",
|
|
@@ -1531,7 +1531,8 @@ var AirtopClient = class extends AirtopBase {
|
|
|
1531
1531
|
logLevel: config?.logLevel || "off",
|
|
1532
1532
|
defaultHeaders: {
|
|
1533
1533
|
"x-airtop-sdk-source": "typescript",
|
|
1534
|
-
"x-airtop-sdk-version": version
|
|
1534
|
+
"x-airtop-sdk-version": version,
|
|
1535
|
+
"x-airtop-sdk-environment": config?.environment ?? "default"
|
|
1535
1536
|
}
|
|
1536
1537
|
}),
|
|
1537
1538
|
log: config?.logger || new LogLayer({
|