@heycatch/sdk 0.6.0 → 0.7.0-dev.13

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.d.cts CHANGED
@@ -1,3 +1,11 @@
1
+ /**
2
+ * Which HeyCatch backend this bundle was built against - `dev` or `prod`.
3
+ * Introspection for debugging ("which stage bundle is this page running?"),
4
+ * and stamped on every event as `heycatch_sdk_stage`. Describes OUR backend,
5
+ * not the customer's own app environment.
6
+ */
7
+ declare const STAGE: "dev" | "prod";
8
+ declare const SDK_VERSION: string;
1
9
  /**
2
10
  * Frameworks the install guides can detect. Kept as a type alias, not a
3
11
  * runtime array: `apps/landing-web/tests/agent-install-guides.spec.ts`
@@ -139,4 +147,4 @@ declare function track(event: string, properties?: HeyCatchProperties, options?:
139
147
  */
140
148
  declare function setPersonProperties(set?: HeyCatchProperties, setOnce?: HeyCatchProperties): void;
141
149
 
142
- export { type HeyCatchConfig, type HeyCatchProperties, type PersonPropertyUpdate, type TrackOptions, identify, init, reset, setPersonProperties, track };
150
+ export { type HeyCatchConfig, type HeyCatchProperties, type PersonPropertyUpdate, SDK_VERSION, STAGE, type TrackOptions, identify, init, reset, setPersonProperties, track };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,11 @@
1
+ /**
2
+ * Which HeyCatch backend this bundle was built against - `dev` or `prod`.
3
+ * Introspection for debugging ("which stage bundle is this page running?"),
4
+ * and stamped on every event as `heycatch_sdk_stage`. Describes OUR backend,
5
+ * not the customer's own app environment.
6
+ */
7
+ declare const STAGE: "dev" | "prod";
8
+ declare const SDK_VERSION: string;
1
9
  /**
2
10
  * Frameworks the install guides can detect. Kept as a type alias, not a
3
11
  * runtime array: `apps/landing-web/tests/agent-install-guides.spec.ts`
@@ -139,4 +147,4 @@ declare function track(event: string, properties?: HeyCatchProperties, options?:
139
147
  */
140
148
  declare function setPersonProperties(set?: HeyCatchProperties, setOnce?: HeyCatchProperties): void;
141
149
 
142
- export { type HeyCatchConfig, type HeyCatchProperties, type PersonPropertyUpdate, type TrackOptions, identify, init, reset, setPersonProperties, track };
150
+ export { type HeyCatchConfig, type HeyCatchProperties, type PersonPropertyUpdate, SDK_VERSION, STAGE, type TrackOptions, identify, init, reset, setPersonProperties, track };