@ai-sdk/provider-utils
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -147,2 +147,4 @@ import { JSONParseError, TypeValidationError, APICallError } from '@ai-sdk/provider'; | ||
export { type ParseResult, type ResponseHandler, convertBase64ToUint8Array, convertUint8ArrayToBase64, createEventSourceResponseHandler, createJsonErrorResponseHandler, createJsonResponseHandler, generateId, getErrorMessage, isParseableJson, loadApiKey, parseJSON, postJsonToApi, postToApi, safeParseJSON, safeValidateTypes, scale, validateTypes }; | ||
declare function withoutTrailingSlash(url: string | undefined): string | undefined; | ||
export { type ParseResult, type ResponseHandler, convertBase64ToUint8Array, convertUint8ArrayToBase64, createEventSourceResponseHandler, createJsonErrorResponseHandler, createJsonResponseHandler, generateId, getErrorMessage, isParseableJson, loadApiKey, parseJSON, postJsonToApi, postToApi, safeParseJSON, safeValidateTypes, scale, validateTypes, withoutTrailingSlash }; |
@@ -48,3 +48,4 @@ "use strict"; | ||
scale: () => scale, | ||
validateTypes: () => validateTypes | ||
validateTypes: () => validateTypes, | ||
withoutTrailingSlash: () => withoutTrailingSlash | ||
}); | ||
@@ -417,2 +418,7 @@ module.exports = __toCommonJS(src_exports); | ||
} | ||
// src/without-trailing-slash.ts | ||
function withoutTrailingSlash(url) { | ||
return url == null ? void 0 : url.replace(/\/$/, ""); | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -435,4 +441,5 @@ 0 && (module.exports = { | ||
scale, | ||
validateTypes | ||
validateTypes, | ||
withoutTrailingSlash | ||
}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ai-sdk/provider-utils", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"license": "Apache-2.0", | ||
@@ -13,10 +13,2 @@ "sideEffects": false, | ||
], | ||
"scripts": { | ||
"build": "tsup", | ||
"clean": "rm -rf dist && rm -rf test/dist", | ||
"dev": "tsup --watch", | ||
"lint": "eslint \"./**/*.ts*\"", | ||
"type-check": "tsc --noEmit", | ||
"prettier-check": "prettier --check \"./**/*.ts*\"" | ||
}, | ||
"exports": { | ||
@@ -44,7 +36,7 @@ "./package.json": "./package.json", | ||
"@types/node": "^18", | ||
"@vercel/ai-tsconfig": "workspace:*", | ||
"msw": "2.0.9", | ||
"tsup": "^8", | ||
"typescript": "5.1.3", | ||
"zod": "3.22.4" | ||
"zod": "3.22.4", | ||
"@vercel/ai-tsconfig": "0.0.0" | ||
}, | ||
@@ -75,3 +67,11 @@ "peerDependencies": { | ||
"ai" | ||
] | ||
} | ||
], | ||
"scripts": { | ||
"build": "tsup", | ||
"clean": "rm -rf dist && rm -rf test/dist", | ||
"dev": "tsup --watch", | ||
"lint": "eslint \"./**/*.ts*\"", | ||
"type-check": "tsc --noEmit", | ||
"prettier-check": "prettier --check \"./**/*.ts*\"" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1631187
16
17808
5
18