@ai-sdk/provider-utils 4.0.16 → 4.0.17
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.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/strip-file-extension.ts +13 -0
package/dist/index.mjs
CHANGED
|
@@ -479,7 +479,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
// src/version.ts
|
|
482
|
-
var VERSION = true ? "4.0.
|
|
482
|
+
var VERSION = true ? "4.0.17" : "0.0.0-test";
|
|
483
483
|
|
|
484
484
|
// src/get-from-api.ts
|
|
485
485
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -2554,6 +2554,12 @@ var createStatusCodeErrorResponseHandler = () => async ({ response, url, request
|
|
|
2554
2554
|
};
|
|
2555
2555
|
};
|
|
2556
2556
|
|
|
2557
|
+
// src/strip-file-extension.ts
|
|
2558
|
+
function stripFileExtension(filename) {
|
|
2559
|
+
const firstDotIndex = filename.indexOf(".");
|
|
2560
|
+
return firstDotIndex === -1 ? filename : filename.slice(0, firstDotIndex);
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2557
2563
|
// src/without-trailing-slash.ts
|
|
2558
2564
|
function withoutTrailingSlash(url) {
|
|
2559
2565
|
return url == null ? void 0 : url.replace(/\/$/, "");
|
|
@@ -2642,6 +2648,7 @@ export {
|
|
|
2642
2648
|
resolve,
|
|
2643
2649
|
safeParseJSON,
|
|
2644
2650
|
safeValidateTypes,
|
|
2651
|
+
stripFileExtension,
|
|
2645
2652
|
tool,
|
|
2646
2653
|
validateTypes,
|
|
2647
2654
|
withUserAgentSuffix,
|