@trpc/next
Version:
21 lines (17 loc) • 509 B
JavaScript
require('@trpc/client');
require('@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;
}
exports.generateCacheTag = generateCacheTag;
exports.isFormData = isFormData;
;