raindrop-ai 0.0.68 → 0.0.69-otelv2

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
@@ -128,7 +128,7 @@ var CategorizationRequestSchema = import_zod.z.object({
128
128
  // package.json
129
129
  var package_default = {
130
130
  name: "raindrop-ai",
131
- version: "0.0.68",
131
+ version: "0.0.69",
132
132
  main: "dist/index.js",
133
133
  module: "dist/index.mjs",
134
134
  types: "dist/index.d.ts",
@@ -587,7 +587,8 @@ var Raindrop = class {
587
587
  this.inFlightRequests = /* @__PURE__ */ new Set();
588
588
  //We are writing to local storage for browser-like environments where the
589
589
  //page might get closed/reloaded before the buffer is flushed.
590
- this.isEnvWithLocalStorage = typeof localStorage !== "undefined";
590
+ // Node 25/26 are making breaking changes here: https://github.com/nodejs/node/issues/60303
591
+ this.isEnvWithLocalStorage = typeof localStorage !== "undefined" && typeof localStorage.getItem === "function" && typeof localStorage.setItem === "function" && typeof localStorage.removeItem === "function";
591
592
  var _a, _b, _c, _d, _e, _f;
592
593
  if (!config.writeKey) {
593
594
  throw new Error("A writeKey is required to use Raindrop");
@@ -930,7 +931,7 @@ var Raindrop = class {
930
931
  this.deepMergeObjects(targetValue, sourceValue, options);
931
932
  } else if (options.mergeArrays && sourceValue && Array.isArray(sourceValue) && targetValue && Array.isArray(targetValue)) {
932
933
  target[key] = options.mergeArrays(targetValue, sourceValue);
933
- } else {
934
+ } else if (sourceValue !== void 0) {
934
935
  target[key] = sourceValue;
935
936
  }
936
937
  }
package/dist/index.mjs CHANGED
@@ -104,7 +104,7 @@ var CategorizationRequestSchema = z.object({
104
104
  // package.json
105
105
  var package_default = {
106
106
  name: "raindrop-ai",
107
- version: "0.0.68",
107
+ version: "0.0.69",
108
108
  main: "dist/index.js",
109
109
  module: "dist/index.mjs",
110
110
  types: "dist/index.d.ts",
@@ -359,7 +359,8 @@ var Raindrop = class {
359
359
  this.inFlightRequests = /* @__PURE__ */ new Set();
360
360
  //We are writing to local storage for browser-like environments where the
361
361
  //page might get closed/reloaded before the buffer is flushed.
362
- this.isEnvWithLocalStorage = typeof localStorage !== "undefined";
362
+ // Node 25/26 are making breaking changes here: https://github.com/nodejs/node/issues/60303
363
+ this.isEnvWithLocalStorage = typeof localStorage !== "undefined" && typeof localStorage.getItem === "function" && typeof localStorage.setItem === "function" && typeof localStorage.removeItem === "function";
363
364
  var _a, _b, _c, _d, _e, _f;
364
365
  if (!config.writeKey) {
365
366
  throw new Error("A writeKey is required to use Raindrop");
@@ -702,7 +703,7 @@ var Raindrop = class {
702
703
  this.deepMergeObjects(targetValue, sourceValue, options);
703
704
  } else if (options.mergeArrays && sourceValue && Array.isArray(sourceValue) && targetValue && Array.isArray(targetValue)) {
704
705
  target[key] = options.mergeArrays(targetValue, sourceValue);
705
- } else {
706
+ } else if (sourceValue !== void 0) {
706
707
  target[key] = sourceValue;
707
708
  }
708
709
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "0.0.68",
3
+ "version": "0.0.69-otelv2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "zod": "^3.23.8"
51
51
  },
52
52
  "optionalDependencies": {
53
- "@traceloop/node-server-sdk": "^0.19.0-otel-v1"
53
+ "@traceloop/node-server-sdk": "^0.22.2"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"