@trpc/next
Version:
18 lines (15 loc) • 453 B
JavaScript
import '@trpc/client';
import '@trpc/server/unstable-core-do-not-import';
/**
* @internal
*/ function generateCacheTag(procedurePath, input) {
return input ? `${procedurePath}?input=${JSON.stringify(input)}` : procedurePath;
}
function isFormData(value) {
if (typeof FormData === 'undefined') {
// FormData is not supported
return false;
}
return value instanceof FormData;
}
export { generateCacheTag, isFormData };