@base44-preview/sdk 0.8.37-pr.219.617b497 → 0.8.37-pr.224.eb846f3

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.
@@ -1,6 +1,5 @@
1
1
  import axios from "axios";
2
- import { isInIFrame } from "./common.js";
3
- import { v4 as uuidv4 } from "uuid";
2
+ import { isInIFrame, generateUuid } from "./common.js";
4
3
  import { getAnalyticsSessionId } from "../modules/analytics.js";
5
4
  /**
6
5
  * Custom error class for Base44 SDK errors.
@@ -141,7 +140,10 @@ export function createAxiosClient({ baseURL, headers = {}, token, interceptRespo
141
140
  config.headers.set("X-Base44-Anonymous-Id", getAnalyticsSessionId());
142
141
  }
143
142
  }
144
- const requestId = uuidv4();
143
+ // Correlation id for the in-iframe request logging below; only needs to be
144
+ // unique, not cryptographically random. `uuid` would pull in
145
+ // `crypto.getRandomValues`, which React Native lacks, so use `generateUuid`.
146
+ const requestId = generateUuid();
145
147
  config.requestId = requestId;
146
148
  if (isInIFrame) {
147
149
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.37-pr.219.617b497",
3
+ "version": "0.8.37-pr.224.eb846f3",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,8 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "axios": "^1.17.0",
30
- "socket.io-client": "^4.8.3",
31
- "uuid": "^13.0.2"
30
+ "socket.io-client": "^4.8.3"
32
31
  },
33
32
  "devDependencies": {
34
33
  "@types/hast": "^3.0.4",