@ai-sdk/provider-utils 3.0.0-canary.7 → 3.0.0-canary.8
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/CHANGELOG.md +13 -0
- package/dist/index.d.mts +1 -9
- package/dist/index.d.ts +1 -9
- package/dist/index.js.map +1 -1
- package/dist/test/index.d.mts +3 -1
- package/dist/test/index.d.ts +3 -1
- package/dist/test/index.js +8 -0
- package/dist/test/index.js.map +1 -1
- package/dist/test/index.mjs +7 -0
- package/dist/test/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/test/index.mjs
CHANGED
@@ -62,6 +62,12 @@ async function convertResponseStreamToArray(response) {
|
|
62
62
|
);
|
63
63
|
}
|
64
64
|
|
65
|
+
// src/test/is-node-version.ts
|
66
|
+
function isNodeVersion(version) {
|
67
|
+
const nodeMajorVersion = parseInt(process.version.slice(1).split(".")[0], 10);
|
68
|
+
return nodeMajorVersion === version;
|
69
|
+
}
|
70
|
+
|
65
71
|
// src/test/mock-id.ts
|
66
72
|
function mockId({
|
67
73
|
prefix = "id"
|
@@ -18609,6 +18615,7 @@ export {
|
|
18609
18615
|
convertReadableStreamToArray,
|
18610
18616
|
convertResponseStreamToArray,
|
18611
18617
|
createTestServer,
|
18618
|
+
isNodeVersion,
|
18612
18619
|
mockId
|
18613
18620
|
};
|
18614
18621
|
/*! Bundled license information:
|