change package json

This commit is contained in:
Vut Pov 2020-07-15 13:37:51 +07:00
parent 47f80670cf
commit decc6acca9
5 changed files with 10871 additions and 24 deletions

View File

@ -1,6 +1,5 @@
import React from 'react'
import AuthContextProvider from 'auth-context-provider'
import {wrapAuthContext} from 'auth-context-provider'
import FormLogin from './FormLogin'
const App = () => {
@ -9,10 +8,7 @@ const App = () => {
const authUrl = 'http://localhost:8080/authenticate'
const EnhancedApp = () => {
return <AuthContextProvider authUrl={authUrl}>
<App />
</AuthContextProvider>
}
export default wrapAuthContext(App, {
authUrl
})
export default EnhancedApp

File diff suppressed because it is too large Load Diff

View File

@ -57,7 +57,9 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.0.4",
"react-scripts": "^3.4.1",
"typescript": "^3.7.5"
"typescript": "^3.7.5",
"react": "link:../akara-web/node_modules/react",
"react-dom": "link:../akara-web/node_modules/react-dom"
},
"files": [
"dist"

View File

@ -1,7 +1,8 @@
import React from 'react'
import BaseContextProvider, {
baseUseContext,
baseWithContext
baseWithContext,
baseContextWrap
} from 'base-context-provider'
export interface AuthContextProps {
@ -94,6 +95,8 @@ AuthContextProvider.defaultProps = {
storageType: 'localStorage'
}
export const wrapAuthContext = baseContextWrap(AuthContextProvider)
export const useAuthContext = baseUseContext(Context)
export const withAuthContext = baseWithContext(Context, 'auth')

View File

@ -2642,8 +2642,8 @@ balanced-match@^1.0.0:
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
"base-context-provider@https://git.cubetiqs.com/vutpov/base-context-provider.git":
version "1.0.2"
resolved "https://git.cubetiqs.com/vutpov/base-context-provider.git#a3db95395e9996146f6623469ac52b675a213ce7"
version "1.0.2-b"
resolved "https://git.cubetiqs.com/vutpov/base-context-provider.git#dc89784c2f04a2a679b6e6d0c76e0b0b2934e64d"
base64-js@^1.0.2:
version "1.3.1"
@ -3055,9 +3055,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001035, caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001097:
version "1.0.30001099"
resolved "https://npm-registry.cubetiqs.com/caniuse-lite/-/caniuse-lite-1.0.30001099.tgz#540118fcc6842d1fde62f4ee5521d1ec6afdb40e"
integrity sha512-sdS9A+sQTk7wKoeuZBN/YMAHVztUfVnjDi4/UV3sDE8xoh7YR12hKW+pIdB3oqKGwr9XaFL2ovfzt9w8eUI5CA==
version "1.0.30001100"
resolved "https://npm-registry.cubetiqs.com/caniuse-lite/-/caniuse-lite-1.0.30001100.tgz#2a58615e0c01cf716ab349b20ca4d86ef944aa4e"
integrity sha512-0eYdp1+wFCnMlCj2oudciuQn2B9xAFq3WpgpcBIZTxk/1HNA/O2YA7rpeYhnOqsqAJq1AHUgx6i1jtafg7m2zA==
capture-exit@^2.0.0:
version "2.0.0"
@ -7202,7 +7202,7 @@ loglevel@^1.6.6:
resolved "https://npm-registry.cubetiqs.com/loglevel/-/loglevel-1.6.8.tgz#8a25fb75d092230ecd4457270d80b54e28011171"
integrity sha512-bsU7+gc9AJ2SqpzxwU3+1fedl8zAntbtC5XYlt3s2j1hJcn2PsXSmgN8TaLG/J1/2mod4+cE/3vNL70/c1RNCA==
loose-envify@^1.0.0, loose-envify@^1.4.0:
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
version "1.4.0"
resolved "https://npm-registry.cubetiqs.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@ -9267,7 +9267,7 @@ prompts@^2.0.1:
kleur "^3.0.3"
sisteransi "^1.0.4"
prop-types@^15.7.2:
prop-types@^15.6.2, prop-types@^15.7.2:
version "15.7.2"
resolved "https://npm-registry.cubetiqs.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@ -9463,6 +9463,10 @@ react-dev-utils@^10.2.1:
strip-ansi "6.0.0"
text-table "0.2.0"
"react-dom@link:../akara-web/node_modules/react-dom":
version "0.0.0"
uid ""
react-error-overlay@^6.0.7:
version "6.0.7"
resolved "https://npm-registry.cubetiqs.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
@ -9533,6 +9537,10 @@ react-scripts@^3.4.1:
optionalDependencies:
fsevents "2.1.2"
"react@link:../akara-web/node_modules/react":
version "0.0.0"
uid ""
read-pkg-up@^2.0.0:
version "2.0.0"
resolved "https://npm-registry.cubetiqs.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be"
@ -10136,6 +10144,14 @@ saxes@^3.1.9:
dependencies:
xmlchars "^2.1.1"
scheduler@^0.19.1:
version "0.19.1"
resolved "https://npm-registry.cubetiqs.com/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196"
integrity sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
schema-utils@^1.0.0:
version "1.0.0"
resolved "https://npm-registry.cubetiqs.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770"