@databuddy/sdk 2.3.25 → 2.3.26

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.
@@ -233,7 +233,13 @@ declare const httpTransport: (url: string, clientId?: string, apiKey?: string) =
233
233
  */
234
234
  declare const databuddyLLM: (options?: DatabuddyLLMOptions) => {
235
235
  track: <T extends LanguageModel>(model: T, trackOptions?: TrackOptions) => T;
236
+ transport: Transport;
236
237
  };
237
238
 
238
- export { databuddyLLM, httpTransport };
239
+ /**
240
+ * Generate a simple trace ID
241
+ */
242
+ declare const generateTraceId: () => string;
243
+
244
+ export { databuddyLLM, generateTraceId, httpTransport };
239
245
  export type { AICall, AIError, DatabuddyLLMOptions, TokenCost, TokenUsage, ToolCallInfo, TrackOptions, Transport };
@@ -233,7 +233,13 @@ declare const httpTransport: (url: string, clientId?: string, apiKey?: string) =
233
233
  */
234
234
  declare const databuddyLLM: (options?: DatabuddyLLMOptions) => {
235
235
  track: <T extends LanguageModel>(model: T, trackOptions?: TrackOptions) => T;
236
+ transport: Transport;
236
237
  };
237
238
 
238
- export { databuddyLLM, httpTransport };
239
+ /**
240
+ * Generate a simple trace ID
241
+ */
242
+ declare const generateTraceId: () => string;
243
+
244
+ export { databuddyLLM, generateTraceId, httpTransport };
239
245
  export type { AICall, AIError, DatabuddyLLMOptions, TokenCost, TokenUsage, ToolCallInfo, TrackOptions, Transport };
@@ -717,7 +717,7 @@ const databuddyLLM = (options = {}) => {
717
717
  }
718
718
  });
719
719
  };
720
- return { track };
720
+ return { track, transport };
721
721
  };
722
722
 
723
- export { databuddyLLM, httpTransport };
723
+ export { databuddyLLM, generateTraceId, httpTransport };
@@ -1,4 +1,4 @@
1
- export { c as createScript, i as isScriptInjected } from '../shared/@databuddy/sdk.d6Qh5SSI.mjs';
1
+ export { c as createScript, i as isScriptInjected } from '../shared/@databuddy/sdk.ClnhxS25.mjs';
2
2
 
3
3
  function detectClientId(providedClientId) {
4
4
  if (providedClientId) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { detectClientId } from '../core/index.mjs';
4
4
  export { clear, flush, getAnonymousId, getSessionId, getTracker, getTrackingIds, getTrackingParams, isTrackerAvailable, track, trackError } from '../core/index.mjs';
5
- import { i as isScriptInjected, c as createScript } from '../shared/@databuddy/sdk.d6Qh5SSI.mjs';
5
+ import { i as isScriptInjected, c as createScript } from '../shared/@databuddy/sdk.ClnhxS25.mjs';
6
6
  import React, { useRef, useMemo, useEffect, useSyncExternalStore, createContext, useContext } from 'react';
7
7
  import { B as BrowserFlagStorage, C as CoreFlagsManager } from '../shared/@databuddy/sdk.DE24-JrU.mjs';
8
8
  import { l as logger } from '../shared/@databuddy/sdk.CALvx07o.mjs';
@@ -1,4 +1,4 @@
1
- const version = "2.3.3";
1
+ const version = "2.3.26";
2
2
 
3
3
  const INJECTED_SCRIPT_ATTRIBUTE = "data-databuddy-injected";
4
4
  function isScriptInjected() {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, onUnmounted, watch, reactive, watchEffect, computed } from 'vue';
2
- import { i as isScriptInjected, c as createScript } from '../shared/@databuddy/sdk.d6Qh5SSI.mjs';
2
+ import { i as isScriptInjected, c as createScript } from '../shared/@databuddy/sdk.ClnhxS25.mjs';
3
3
  import { B as BrowserFlagStorage, C as CoreFlagsManager } from '../shared/@databuddy/sdk.DE24-JrU.mjs';
4
4
  import '../shared/@databuddy/sdk.CALvx07o.mjs';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databuddy/sdk",
3
- "version": "2.3.25",
3
+ "version": "2.3.26",
4
4
  "description": "Official Databuddy Analytics SDK",
5
5
  "main": "./dist/core/index.mjs",
6
6
  "types": "./dist/core/index.d.ts",