@ai-sdk/provider-utils 3.0.0-canary.6 → 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.
@@ -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: