mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Upgrade dependencies & pnpm (#785)
* Updated log * Updates to root * Updates to pnpm * successfully moved to pnpm * type issue * Local as the default provider * Upgrade dependencies * Revert to local * Upgrade React * Update node-fetch deps * Fix types * Ignore warnings * Fix missing dependency * Update pnpm-lock.yaml * Add missing @types/cookie * Upgrade dependencies * Fix missing dependencies * Update README.md Co-authored-by: Bel Curcio <curciobel@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { ComponentType, FunctionComponent } from 'react'
|
||||
import type { FC, ReactNode } from 'react'
|
||||
import {
|
||||
Provider,
|
||||
CommerceProviderProps,
|
||||
@@ -14,7 +14,9 @@ import useLogout from '@vercel/commerce/auth/use-logout'
|
||||
export { spreeProvider }
|
||||
export type { SpreeProvider }
|
||||
|
||||
export const WithTokenErrorsHandling: FunctionComponent = ({ children }) => {
|
||||
export const WithTokenErrorsHandling: FC<{ children?: ReactNode }> = ({
|
||||
children,
|
||||
}) => {
|
||||
const logout = useLogout()
|
||||
|
||||
return (
|
||||
|
@@ -6,7 +6,7 @@ const requireConfig = <T>(isomorphicConfig: T, key: keyof T) => {
|
||||
|
||||
if (typeof valueUnderKey === 'undefined') {
|
||||
throw new MissingConfigurationValueError(
|
||||
`Value for configuration key ${key} was undefined.`
|
||||
`Value for configuration key ${key.toString()} was undefined.`
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user