@recallai/desktop-sdk 2024.12.8-2ce569acd212a16d83b5d0e3d9574666b42c5e19 → 2024.12.8-632487433298de6f7a2446235047a31705828987

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.
Binary file
package/index.js CHANGED
@@ -28,6 +28,12 @@ process.env["GST_DEBUG"] = "2";
28
28
  process.env["GST_DEBUG_DUMP_DOT_DIR"] = "/tmp/gst.nocommit";
29
29
 
30
30
  function init(options) {
31
+ let { api_url } = options;
32
+
33
+ if (!api_url || !api_url.startsWith("https")) {
34
+ throw new Error(`api_url must be an https url, got: ${api_url}`);
35
+ }
36
+
31
37
  addon.init(JSON.stringify(options));
32
38
  }
33
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recallai/desktop-sdk",
3
- "version": "2024.12.08-2ce569acd212a16d83b5d0e3d9574666b42c5e19",
3
+ "version": "2024.12.08-632487433298de6f7a2446235047a31705828987",
4
4
  "description": "Recall Desktop SDK (Alpha)",
5
5
  "gypfile": true,
6
6
  "main": "./index.js",