ai 2.2.4 → 2.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -357,7 +357,6 @@ function useChat({
357
357
  }
358
358
  }
359
359
  abortControllerRef.current = null;
360
- return null;
361
360
  }
362
361
  } catch (err) {
363
362
  if (err.name === "AbortError") {
@@ -321,7 +321,6 @@ function useChat({
321
321
  }
322
322
  }
323
323
  abortControllerRef.current = null;
324
- return null;
325
324
  }
326
325
  } catch (err) {
327
326
  if (err.name === "AbortError") {