UNPKG

@trpc/next

Version:

The tRPC Next.js library

21 lines (17 loc) 509 B
'use strict'; 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;