raindrop-ai 0.0.54 → 0.0.55

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.js CHANGED
@@ -3056,7 +3056,7 @@ var CategorizationRequestSchema = import_zod.z.object({
3056
3056
  // package.json
3057
3057
  var package_default = {
3058
3058
  name: "raindrop-ai",
3059
- version: "0.0.54",
3059
+ version: "0.0.55",
3060
3060
  main: "dist/index.js",
3061
3061
  module: "dist/index.mjs",
3062
3062
  types: "dist/index.d.ts",
package/dist/index.mjs CHANGED
@@ -85,7 +85,7 @@ var CategorizationRequestSchema = z.object({
85
85
  // package.json
86
86
  var package_default = {
87
87
  name: "raindrop-ai",
88
- version: "0.0.54",
88
+ version: "0.0.55",
89
89
  main: "dist/index.js",
90
90
  module: "dist/index.mjs",
91
91
  types: "dist/index.d.ts",
@@ -2,11 +2,7 @@ declare function metadata({ userId, convoId, eventName, }: {
2
2
  userId: string;
3
3
  convoId?: string;
4
4
  eventName?: string;
5
- }): {
6
- "raindrop.userId": string;
7
- "raindrop.convoId": string | undefined;
8
- "raindrop.eventName": string | undefined;
9
- };
5
+ }): Record<string, string>;
10
6
  declare const _default: {
11
7
  metadata: typeof metadata;
12
8
  };
@@ -2,11 +2,7 @@ declare function metadata({ userId, convoId, eventName, }: {
2
2
  userId: string;
3
3
  convoId?: string;
4
4
  eventName?: string;
5
- }): {
6
- "raindrop.userId": string;
7
- "raindrop.convoId": string | undefined;
8
- "raindrop.eventName": string | undefined;
9
- };
5
+ }): Record<string, string>;
10
6
  declare const _default: {
11
7
  metadata: typeof metadata;
12
8
  };
@@ -28,11 +28,12 @@ function metadata({
28
28
  convoId,
29
29
  eventName
30
30
  }) {
31
- return {
32
- "raindrop.userId": userId,
33
- "raindrop.convoId": convoId,
34
- "raindrop.eventName": eventName
31
+ const result = {
32
+ "raindrop.userId": userId
35
33
  };
34
+ if (convoId) result["raindrop.convoId"] = convoId;
35
+ if (eventName) result["raindrop.eventName"] = eventName;
36
+ return result;
36
37
  }
37
38
  var otel_default = {
38
39
  metadata
@@ -6,11 +6,12 @@ function metadata({
6
6
  convoId,
7
7
  eventName
8
8
  }) {
9
- return {
10
- "raindrop.userId": userId,
11
- "raindrop.convoId": convoId,
12
- "raindrop.eventName": eventName
9
+ const result = {
10
+ "raindrop.userId": userId
13
11
  };
12
+ if (convoId) result["raindrop.convoId"] = convoId;
13
+ if (eventName) result["raindrop.eventName"] = eventName;
14
+ return result;
14
15
  }
15
16
  var otel_default = {
16
17
  metadata
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",