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:
Catalin Pinte
2022-09-19 08:14:49 +03:00
committed by GitHub
parent 87134e2990
commit 11609a9e71
46 changed files with 10129 additions and 8084 deletions

View File

@@ -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 (

View File

@@ -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.`
)
}