@ai-sdk/provider 4.0.17 → 4.0.18
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 +6 -0
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/shared/v4/shared-v4-file-data.ts +8 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,13 @@ interface SharedV4FileDataData {
|
|
|
52
52
|
interface SharedV4FileDataUrl {
|
|
53
53
|
type: 'url';
|
|
54
54
|
url: URL;
|
|
55
|
+
/**
|
|
56
|
+
* The original URL string before it was parsed into a `URL`.
|
|
57
|
+
*
|
|
58
|
+
* This is available when parsing would change the string and a provider
|
|
59
|
+
* needs to preserve an opaque non-HTTP URI exactly.
|
|
60
|
+
*/
|
|
61
|
+
originalUrl?: string;
|
|
55
62
|
}
|
|
56
63
|
/**
|
|
57
64
|
* File data variant containing a provider reference (`{ [provider]: id }`).
|
package/package.json
CHANGED
|
@@ -15,6 +15,14 @@ export interface SharedV4FileDataData {
|
|
|
15
15
|
export interface SharedV4FileDataUrl {
|
|
16
16
|
type: 'url';
|
|
17
17
|
url: URL;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The original URL string before it was parsed into a `URL`.
|
|
21
|
+
*
|
|
22
|
+
* This is available when parsing would change the string and a provider
|
|
23
|
+
* needs to preserve an opaque non-HTTP URI exactly.
|
|
24
|
+
*/
|
|
25
|
+
originalUrl?: string;
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
/**
|