vidspotai-shared 1.0.65 → 1.0.66

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.
@@ -118,7 +118,9 @@ exports.AnalyticsService = AnalyticsService;
118
118
  * map key under `failuresByCode`. Empty/undefined collapses to `unknown`.
119
119
  */
120
120
  function sanitizeCodeKey(code) {
121
- if (!code)
121
+ if (code == null || code === "")
122
122
  return "unknown";
123
- return code.replace(/[.\/~*[\]]/g, "_");
123
+ // Defensive: providers occasionally return numeric codes (e.g. Google's
124
+ // gRPC status codes). Coerce to string before regex-replacing.
125
+ return String(code).replace(/[.\/~*[\]]/g, "_");
124
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vidspotai-shared",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "exports": {