@ai-sdk/svelte 2.1.1 → 2.1.2
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
CHANGED
|
@@ -47,6 +47,12 @@ export type Experimental_StructuredObjectOptions<RESULT> = {
|
|
|
47
47
|
* Additional HTTP headers to be included in the request.
|
|
48
48
|
*/
|
|
49
49
|
headers?: Record<string, string> | Headers;
|
|
50
|
+
/**
|
|
51
|
+
* The credentials mode to be used for the fetch request.
|
|
52
|
+
* Possible values are: 'omit', 'same-origin', 'include'.
|
|
53
|
+
* Defaults to 'same-origin'.
|
|
54
|
+
*/
|
|
55
|
+
credentials?: RequestCredentials;
|
|
50
56
|
};
|
|
51
57
|
export declare class StructuredObject<RESULT, INPUT = unknown> {
|
|
52
58
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-object.svelte.d.ts","sourceRoot":"","sources":["../src/structured-object.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,MAAM,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAQ7B,MAAM,MAAM,oCAAoC,CAAC,MAAM,IAAI;IACzD;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAEjE;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAEnC;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,QA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,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC;IAE3C;;;;OAIG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC,CAAC;AAEF,qBAAa,gBAAgB,CAAC,MAAM,EAAE,KAAK,GAAG,OAAO;;IAUnD;;OAEG;IACH,IAAI,MAAM,IAAI,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAE5C;IAKD,0CAA0C;IAC1C,IAAI,KAAK,sBAER;IAED;;OAEG;IACH,IAAI,OAAO,YAEV;gBAEW,OAAO,EAAE,oCAAoC,CAAC,MAAM,CAAC;IAUjE;;OAEG;IACH,IAAI,aASF;IAEF;;OAEG;IACH,MAAM,UAAiB,KAAK,mBAqF1B;CACH"}
|
package/package.json
CHANGED
|
@@ -73,6 +73,13 @@ export type Experimental_StructuredObjectOptions<RESULT> = {
|
|
|
73
73
|
* Additional HTTP headers to be included in the request.
|
|
74
74
|
*/
|
|
75
75
|
headers?: Record<string, string> | Headers;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The credentials mode to be used for the fetch request.
|
|
79
|
+
* Possible values are: 'omit', 'same-origin', 'include'.
|
|
80
|
+
* Defaults to 'same-origin'.
|
|
81
|
+
*/
|
|
82
|
+
credentials?: RequestCredentials;
|
|
76
83
|
};
|
|
77
84
|
|
|
78
85
|
export class StructuredObject<RESULT, INPUT = unknown> {
|
|
@@ -150,6 +157,7 @@ export class StructuredObject<RESULT, INPUT = unknown> {
|
|
|
150
157
|
'Content-Type': 'application/json',
|
|
151
158
|
...this.#options.headers,
|
|
152
159
|
},
|
|
160
|
+
credentials: this.#options.credentials,
|
|
153
161
|
signal: abortController.signal,
|
|
154
162
|
body: JSON.stringify(input),
|
|
155
163
|
});
|