raindrop-ai 0.0.34 → 0.0.36

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.
@@ -119,7 +119,6 @@ var createTracing = (analytics, _apiUrl, _writeKey, _options) => ({
119
119
  return new NonLiveInteraction({ eventId }, void 0, analytics);
120
120
  },
121
121
  close() {
122
- analytics == null ? void 0 : analytics.close();
123
122
  }
124
123
  });
125
124
  var implementation = createTracing;
package/dist/index.js CHANGED
@@ -107,7 +107,7 @@ var CategorizationRequestSchema = import_zod.z.object({
107
107
  // package.json
108
108
  var package_default = {
109
109
  name: "raindrop-ai",
110
- version: "0.0.34",
110
+ version: "0.0.36",
111
111
  main: "dist/index.js",
112
112
  module: "dist/index.mjs",
113
113
  types: "dist/index.d.ts",
@@ -382,7 +382,6 @@ var createTracing = (analytics, _apiUrl, _writeKey, _options) => ({
382
382
  return new NonLiveInteraction({ eventId }, void 0, analytics);
383
383
  },
384
384
  close() {
385
- analytics == null ? void 0 : analytics.close();
386
385
  }
387
386
  });
388
387
  var implementation = createTracing;
@@ -410,7 +409,7 @@ var PartialClientAiTrack = ClientAiTrack.extend({
410
409
  var AttachmentTypeSchema = import_zod2.z.enum(["code", "text", "image", "iframe"]);
411
410
 
412
411
  // src/index.ts
413
- process.env.TRACELOOP_TELEMETRY = void 0;
412
+ process.env.TRACELOOP_TELEMETRY = "false";
414
413
  var MAX_INGEST_SIZE_BYTES = 1 * 1024 * 1024;
415
414
  var Raindrop = class {
416
415
  constructor(config) {
@@ -889,6 +888,7 @@ var Raindrop = class {
889
888
  this.partialEventBuffer.clear();
890
889
  this.partialEventTimeouts.forEach(clearTimeout);
891
890
  this.partialEventTimeouts.clear();
891
+ this._tracing.close();
892
892
  if (this.debugLogs) {
893
893
  console.log("Closing Raindrop Analytics");
894
894
  }
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tracing
3
- } from "./chunk-GJTS3VZY.mjs";
3
+ } from "./chunk-42STP23J.mjs";
4
4
 
5
5
  // ../schemas/src/ingest/index.ts
6
6
  import { z } from "zod";
@@ -83,7 +83,7 @@ var CategorizationRequestSchema = z.object({
83
83
  // package.json
84
84
  var package_default = {
85
85
  name: "raindrop-ai",
86
- version: "0.0.34",
86
+ version: "0.0.36",
87
87
  main: "dist/index.js",
88
88
  module: "dist/index.mjs",
89
89
  types: "dist/index.d.ts",
@@ -261,7 +261,7 @@ var PartialClientAiTrack = ClientAiTrack.extend({
261
261
  var AttachmentTypeSchema = z2.enum(["code", "text", "image", "iframe"]);
262
262
 
263
263
  // src/index.ts
264
- process.env.TRACELOOP_TELEMETRY = void 0;
264
+ process.env.TRACELOOP_TELEMETRY = "false";
265
265
  var MAX_INGEST_SIZE_BYTES = 1 * 1024 * 1024;
266
266
  var Raindrop = class {
267
267
  constructor(config) {
@@ -740,6 +740,7 @@ var Raindrop = class {
740
740
  this.partialEventBuffer.clear();
741
741
  this.partialEventTimeouts.forEach(clearTimeout);
742
742
  this.partialEventTimeouts.clear();
743
+ this._tracing.close();
743
744
  if (this.debugLogs) {
744
745
  console.log("Closing Raindrop Analytics");
745
746
  }
@@ -257,7 +257,6 @@ var createTracing = (analytics, _apiUrl, _writeKey, _options) => ({
257
257
  return new NonLiveInteraction({ eventId }, void 0, analytics);
258
258
  },
259
259
  close() {
260
- analytics == null ? void 0 : analytics.close();
261
260
  }
262
261
  });
263
262
  var implementation = createTracing;
@@ -306,7 +305,6 @@ var tracing = (analytics, apiUrl, writeKey, options) => {
306
305
  },
307
306
  close() {
308
307
  activeInteractions.clear();
309
- analytics == null ? void 0 : analytics.close();
310
308
  traceloop2.forceFlush();
311
309
  }
312
310
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  NonLiveInteraction,
3
3
  _setImplementation
4
- } from "../chunk-GJTS3VZY.mjs";
4
+ } from "../chunk-42STP23J.mjs";
5
5
 
6
6
  // src/tracing/index.ts
7
7
  import { context, trace as trace2 } from "@opentelemetry/api";
@@ -149,7 +149,6 @@ var tracing = (analytics, apiUrl, writeKey, options) => {
149
149
  },
150
150
  close() {
151
151
  activeInteractions.clear();
152
- analytics == null ? void 0 : analytics.close();
153
152
  traceloop2.forceFlush();
154
153
  }
155
154
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",