From fa59f94d72bdd2a16c335aa584b5c58ac4170cdf Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Tue, 9 Nov 2021 10:46:47 +0900 Subject: [PATCH 1/6] chore: upgrade dependencies --- package.json | 8 ++--- yarn.lock | 98 ++++++++++++++++++++++++++-------------------------- 2 files changed, 53 insertions(+), 53 deletions(-) diff --git a/package.json b/package.json index 35cb6be..d8b17dd 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,9 @@ "@commitlint/config-conventional": "^14.1.0", "@types/jest": "^27.0.2", "@types/netmask": "^1.0.30", - "@types/node": "^16.11.6", - "@typescript-eslint/eslint-plugin": "^5.3.0", - "@typescript-eslint/parser": "^5.3.0", + "@types/node": "^16.11.7", + "@typescript-eslint/eslint-plugin": "^5.3.1", + "@typescript-eslint/parser": "^5.3.1", "babel-jest": "^27.3.1", "eslint": "^8.2.0", "eslint-config-prettier": "^8.3.0", @@ -60,7 +60,7 @@ "typescript": "^4.4.4" }, "dependencies": { - "jose": "^4.1.5", + "jose": "^4.2.0", "netmask": "^2.0.2" } } diff --git a/yarn.lock b/yarn.lock index ae20268..cb1cf7c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2191,10 +2191,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.4.1.tgz#9fad171a5b701613ee8a6f4ece3c88b1034b1b03" integrity sha512-UW7cbLqf/Wu5XH2RKKY1cHwUNLicIDRLMraYKz+HHAerJ0ZffUEk+fMnd8qU2JaS6cAy0r8tsaf7yqHASf/Y0Q== -"@types/node@^16.11.6": - version "16.11.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.6.tgz#6bef7a2a0ad684cf6e90fcfe31cecabd9ce0a3ae" - integrity sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w== +"@types/node@^16.11.7": + version "16.11.7" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.7.tgz#36820945061326978c42a01e56b61cd223dfdc42" + integrity sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw== "@types/normalize-package-data@^2.4.0": version "2.4.1" @@ -2233,13 +2233,13 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.3.0.tgz#a55ae72d28ffeb6badd817fe4566c9cced1f5e29" - integrity sha512-ARUEJHJrq85aaiCqez7SANeahDsJTD3AEua34EoQN9pHS6S5Bq9emcIaGGySt/4X2zSi+vF5hAH52sEen7IO7g== +"@typescript-eslint/eslint-plugin@^5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.3.1.tgz#d8ff412f10f54f6364e7fd7c1e70eb6767f434c3" + integrity sha512-cFImaoIr5Ojj358xI/SDhjog57OK2NqlpxwdcgyxDA3bJlZcJq5CPzUXtpD7CxI2Hm6ATU7w5fQnnkVnmwpHqw== dependencies: - "@typescript-eslint/experimental-utils" "5.3.0" - "@typescript-eslint/scope-manager" "5.3.0" + "@typescript-eslint/experimental-utils" "5.3.1" + "@typescript-eslint/scope-manager" "5.3.1" debug "^4.3.2" functional-red-black-tree "^1.0.1" ignore "^5.1.8" @@ -2247,60 +2247,60 @@ semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.3.0.tgz#ee56b4957547ed2b0fc7451205e41502e664f546" - integrity sha512-NFVxYTjKj69qB0FM+piah1x3G/63WB8vCBMnlnEHUsiLzXSTWb9FmFn36FD9Zb4APKBLY3xRArOGSMQkuzTF1w== +"@typescript-eslint/experimental-utils@5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.3.1.tgz#bbd8f9b67b4d5fdcb9d2f90297d8fcda22561e05" + integrity sha512-RgFn5asjZ5daUhbK5Sp0peq0SSMytqcrkNfU4pnDma2D8P3ElZ6JbYjY8IMSFfZAJ0f3x3tnO3vXHweYg0g59w== dependencies: "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.3.0" - "@typescript-eslint/types" "5.3.0" - "@typescript-eslint/typescript-estree" "5.3.0" + "@typescript-eslint/scope-manager" "5.3.1" + "@typescript-eslint/types" "5.3.1" + "@typescript-eslint/typescript-estree" "5.3.1" eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/parser@^5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.3.0.tgz#7879f15e26d370ed3f653fb7dd06479531ed3ab9" - integrity sha512-rKu/yAReip7ovx8UwOAszJVO5MgBquo8WjIQcp1gx4pYQCwYzag+I5nVNHO4MqyMkAo0gWt2gWUi+36gWAVKcw== +"@typescript-eslint/parser@^5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.3.1.tgz#8ff1977c3d3200c217b3e4628d43ef92f89e5261" + integrity sha512-TD+ONlx5c+Qhk21x9gsJAMRohWAUMavSOmJgv3JGy9dgPhuBd5Wok0lmMClZDyJNLLZK1JRKiATzCKZNUmoyfw== dependencies: - "@typescript-eslint/scope-manager" "5.3.0" - "@typescript-eslint/types" "5.3.0" - "@typescript-eslint/typescript-estree" "5.3.0" + "@typescript-eslint/scope-manager" "5.3.1" + "@typescript-eslint/types" "5.3.1" + "@typescript-eslint/typescript-estree" "5.3.1" debug "^4.3.2" -"@typescript-eslint/scope-manager@5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.3.0.tgz#97d0ccc7c9158e89e202d5e24ce6ba49052d432e" - integrity sha512-22Uic9oRlTsPppy5Tcwfj+QET5RWEnZ5414Prby465XxQrQFZ6nnm5KnXgnsAJefG4hEgMnaxTB3kNEyjdjj6A== +"@typescript-eslint/scope-manager@5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.3.1.tgz#3cfbfbcf5488fb2a9a6fbbe97963ee1e8d419269" + integrity sha512-XksFVBgAq0Y9H40BDbuPOTUIp7dn4u8oOuhcgGq7EoDP50eqcafkMVGrypyVGvDYHzjhdUCUwuwVUK4JhkMAMg== dependencies: - "@typescript-eslint/types" "5.3.0" - "@typescript-eslint/visitor-keys" "5.3.0" + "@typescript-eslint/types" "5.3.1" + "@typescript-eslint/visitor-keys" "5.3.1" -"@typescript-eslint/types@5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.3.0.tgz#af29fd53867c2df0028c57c36a655bd7e9e05416" - integrity sha512-fce5pG41/w8O6ahQEhXmMV+xuh4+GayzqEogN24EK+vECA3I6pUwKuLi5QbXO721EMitpQne5VKXofPonYlAQg== +"@typescript-eslint/types@5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.3.1.tgz#afaa715b69ebfcfde3af8b0403bf27527912f9b7" + integrity sha512-bG7HeBLolxKHtdHG54Uac750eXuQQPpdJfCYuw4ZI3bZ7+GgKClMWM8jExBtp7NSP4m8PmLRM8+lhzkYnSmSxQ== -"@typescript-eslint/typescript-estree@5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.3.0.tgz#4f68ddd46dc2983182402d2ab21fb44ad94988cf" - integrity sha512-FJ0nqcaUOpn/6Z4Jwbtf+o0valjBLkqc3MWkMvrhA2TvzFXtcclIM8F4MBEmYa2kgcI8EZeSAzwoSrIC8JYkug== +"@typescript-eslint/typescript-estree@5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.3.1.tgz#50cc4bfb93dc31bc75e08ae52e29fcb786d606ec" + integrity sha512-PwFbh/PKDVo/Wct6N3w+E4rLZxUDgsoII/GrWM2A62ETOzJd4M6s0Mu7w4CWsZraTbaC5UQI+dLeyOIFF1PquQ== dependencies: - "@typescript-eslint/types" "5.3.0" - "@typescript-eslint/visitor-keys" "5.3.0" + "@typescript-eslint/types" "5.3.1" + "@typescript-eslint/visitor-keys" "5.3.1" debug "^4.3.2" globby "^11.0.4" is-glob "^4.0.3" semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/visitor-keys@5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.3.0.tgz#a6258790f3b7b2547f70ed8d4a1e0c3499994523" - integrity sha512-oVIAfIQuq0x2TFDNLVavUn548WL+7hdhxYn+9j3YdJJXB7mH9dAmZNJsPDa7Jc+B9WGqoiex7GUDbyMxV0a/aw== +"@typescript-eslint/visitor-keys@5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.3.1.tgz#c2860ff22939352db4f3806f34b21d8ad00588ba" + integrity sha512-3cHUzUuVTuNHx0Gjjt5pEHa87+lzyqOiHXy/Gz+SJOCW1mpw9xQHIIEwnKn+Thph1mgWyZ90nboOcSuZr/jTTQ== dependencies: - "@typescript-eslint/types" "5.3.0" + "@typescript-eslint/types" "5.3.1" eslint-visitor-keys "^3.0.0" JSONStream@^1.0.4, JSONStream@^1.3.4, JSONStream@^1.3.5: @@ -6840,10 +6840,10 @@ jest@^27.3.1: import-local "^3.0.2" jest-cli "^27.3.1" -jose@^4.1.5: - version "4.1.5" - resolved "https://registry.yarnpkg.com/jose/-/jose-4.1.5.tgz#fc681f89b9fee618eebe579a493fed46db78d990" - integrity sha512-GGTo/8TUgKsLrohNRwFzkJ+dI/TzFNknPO4hPbzc3lUi01mDmqlrvKDTzHxT6ESZKBMWNfiffQ755T5SiUJuxQ== +jose@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/jose/-/jose-4.2.0.tgz#eb3dfe4926514a99f325ba604d32e41589394f6d" + integrity sha512-7nlU7qankWiES1WmZXAJl0jiGusoouXhjiGR12yc+0/SIDi+4uhEGzqcfONtDI7g66K4IyqA44botXGpi9EBWA== "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" From eca7ae6d37e8429981b5cf1188019d56591894c6 Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Tue, 9 Nov 2021 10:48:05 +0900 Subject: [PATCH 2/6] feat(auth0): automatically give origin to api endpoints --- src/auth0.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/auth0.ts b/src/auth0.ts index 6b1bf17..e863cdd 100644 --- a/src/auth0.ts +++ b/src/auth0.ts @@ -17,9 +17,12 @@ const verifyAuth0Session = async ( req: NextRequest, apiEndpoint: string ): Promise => { - const res = await fetch(apiEndpoint, { - headers: { cookie: req.headers.get('cookie') ?? '' } - }) + const res = await fetch( + (/^\//.test(apiEndpoint) ? req.nextUrl.origin : '') + apiEndpoint, + { + headers: { cookie: req.headers.get('cookie') ?? '' } + } + ) return res.ok } From 28d6b3a83a1feb9a1246f0b469987b95123c40b7 Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Tue, 9 Nov 2021 10:48:22 +0900 Subject: [PATCH 3/6] test: update tests --- src/__tests__/auth0.spec.ts | 71 ++++++++++++++++++++++++++----------- 1 file changed, 51 insertions(+), 20 deletions(-) diff --git a/src/__tests__/auth0.spec.ts b/src/__tests__/auth0.spec.ts index c2ef0e6..39a70ec 100644 --- a/src/__tests__/auth0.spec.ts +++ b/src/__tests__/auth0.spec.ts @@ -13,7 +13,13 @@ fetchMock status: 200 }) .get('/api/auth/failed/me', { - status: 403 + status: 401 + }) + .get('https://authed.com/api/auth/me', { + status: 200 + }) + .get('https://not.authed.com/api/auth/me', { + status: 401 }) const fallback: Fallback = { type: 'redirect', destination: '/foo' } @@ -27,30 +33,55 @@ describe('makeAuth0Inspector', () => { jest.resetAllMocks() }) - test('not logged in', async () => { - await makeAuth0Inspector( - fallback, - '/api/auth/failed/me' - )({ headers } as unknown as NextRequest) + describe('dose not have nextUrl origin', () => { + test('not logged in', async () => { + const req = { headers, nextUrl: { origin: '' } } as unknown as NextRequest + await makeAuth0Inspector(fallback, '/api/auth/failed/me')(req) - expect(handleFallback).toBeCalledWith(fallback, { headers }, undefined) - }) + expect(handleFallback).toBeCalledWith(fallback, req, undefined) + }) - test('does not have cookie', async () => { - const noCookieReq = { - headers: { get: () => undefined } - } as unknown as NextRequest - await makeAuth0Inspector(fallback, '/api/auth/failed/me')(noCookieReq) + test('does not have cookie', async () => { + const noCookieReq = { + headers: { get: () => undefined }, + nextUrl: { origin: '' } + } as unknown as NextRequest + await makeAuth0Inspector(fallback, '/api/auth/failed/me')(noCookieReq) - expect(handleFallback).toBeCalledWith(fallback, noCookieReq, undefined) + expect(handleFallback).toBeCalledWith(fallback, noCookieReq, undefined) + }) + + test('logged in', async () => { + await makeAuth0Inspector( + fallback, + '/api/auth/me' + )({ headers, nextUrl: { origin: '' } } as unknown as NextRequest) + + expect(handleFallback).not.toBeCalled() + }) }) - test('logged in', async () => { - await makeAuth0Inspector( - fallback, - '/api/auth/me' - )({ headers } as unknown as NextRequest) + describe('has nextUrl origin', () => { + test('not logged in', async () => { + const req = { + headers, + nextUrl: { origin: 'https://not.authed.com' } + } as unknown as NextRequest + await makeAuth0Inspector(fallback, '/api/auth/me')(req) + + expect(handleFallback).toBeCalledWith(fallback, req, undefined) + }) + + test('logged in', async () => { + await makeAuth0Inspector( + fallback, + '/api/auth/me' + )({ + headers, + nextUrl: { origin: 'https://authed.com' } + } as unknown as NextRequest) - expect(handleFallback).not.toBeCalled() + expect(handleFallback).not.toBeCalled() + }) }) }) From 4ad257c69087a6535eddf62871f0c1e6edb87480 Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Tue, 9 Nov 2021 10:48:44 +0900 Subject: [PATCH 4/6] docs: update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c17b59..1ddb8b1 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ export const middleware = async (req: NextRequest) => { // type makeAuth0Inspector = (fallback: Fallback, apiEndpoint: string) => AsyncMiddleware; return makeAuth0Inspector( { type: 'redirect', destination: '/singin' }, - `${req.nextUrl.origin}/api/auth/me` // api endpoint for auth0 profile + '/api/auth/me' // api endpoint for auth0 profile )(req) } ``` From e037026cac7dd1e14c6857a87d26e2fc51fe4ccb Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Tue, 9 Nov 2021 10:50:33 +0900 Subject: [PATCH 5/6] chore: update example --- example/package.json | 4 +- example/src/pages/auth0/_middleware.ts | 2 +- example/yarn.lock | 448 ++++++++++++------------- 3 files changed, 225 insertions(+), 229 deletions(-) diff --git a/example/package.json b/example/package.json index 3f8fea5..43f6de1 100644 --- a/example/package.json +++ b/example/package.json @@ -13,10 +13,10 @@ "@geist-ui/react": "^2.2.0", "@geist-ui/react-icons": "^1.0.1", "aws-amplify": "^4.3.4", - "firebase": "^9.3.0", + "firebase": "^9.4.0", "js-cookie": "^3.0.1", "next": "12.0.3", - "next-fortress": "^3.0.0", + "next-fortress": "link:../", "react": "^17.0.2", "react-dom": "17.0.2" }, diff --git a/example/src/pages/auth0/_middleware.ts b/example/src/pages/auth0/_middleware.ts index 49289a9..36c80ee 100644 --- a/example/src/pages/auth0/_middleware.ts +++ b/example/src/pages/auth0/_middleware.ts @@ -6,6 +6,6 @@ export const middleware = async (req: NextRequest) => { return makeAuth0Inspector( { type: 'redirect', destination: '/auth0' }, - req.nextUrl.origin + '/api/auth/me' + '/api/auth/me' )(req) } diff --git a/example/yarn.lock b/example/yarn.lock index cf26222..6807aeb 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -1987,15 +1987,15 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@firebase/analytics-compat@0.1.4": - version "0.1.4" - resolved "https://registry.yarnpkg.com/@firebase/analytics-compat/-/analytics-compat-0.1.4.tgz#15507807374d2e6647b4918c856a322a44db270b" - integrity sha512-1/3wpiWGOu1+mX0ZDMl2FkYZGZt3iYdFh80FBOa4GN6ohgTWK21N35EB8E4jS7Gz4a70dBtWHxWrzhLLzL5JyA== +"@firebase/analytics-compat@0.1.5": + version "0.1.5" + resolved "https://registry.yarnpkg.com/@firebase/analytics-compat/-/analytics-compat-0.1.5.tgz#9fd587b1b6fa283354428a0f96a19db2389e7da4" + integrity sha512-5cfr0uWwlhoHQYAr6UtQCHwnGjs/3J/bWrfA3INNtzaN4/tTTLTD02iobbccRcM7dM5TR0sZFWS5orfAU3OBFg== dependencies: - "@firebase/analytics" "0.7.3" + "@firebase/analytics" "0.7.4" "@firebase/analytics-types" "0.7.0" - "@firebase/component" "0.5.8" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/analytics-types@0.7.0": @@ -2003,26 +2003,26 @@ resolved "https://registry.yarnpkg.com/@firebase/analytics-types/-/analytics-types-0.7.0.tgz#91960e7c87ce8bf18cf8dd9e55ccbf5dc3989b5d" integrity sha512-DNE2Waiwy5+zZnCfintkDtBfaW6MjIG883474v6Z0K1XZIvl76cLND4iv0YUb48leyF+PJK1KO2XrgHb/KpmhQ== -"@firebase/analytics@0.7.3": - version "0.7.3" - resolved "https://registry.yarnpkg.com/@firebase/analytics/-/analytics-0.7.3.tgz#17b883ee88d41ae1f1ae70d7ba941a919b857460" - integrity sha512-FrWo266CzFiNPBvt4hY3wgRrkcMjb7QY+sCEnyJXaXc10QfgWtpFDPkV+mJwS5djRAlU6/FrAMe7y1w7xcSZsg== +"@firebase/analytics@0.7.4": + version "0.7.4" + resolved "https://registry.yarnpkg.com/@firebase/analytics/-/analytics-0.7.4.tgz#33b3d6a34736e1a726652e48b6bd39163e6561c2" + integrity sha512-AU3XMwHW7SFGCNeUKKNW2wXGTdmS164ackt/Epu2bDXCT1OcauPE1AVd+ofULSIDCaDUAQVmvw3JrobgogEU7Q== dependencies: - "@firebase/component" "0.5.8" - "@firebase/installations" "0.5.3" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/installations" "0.5.4" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" tslib "^2.1.0" -"@firebase/app-check-compat@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@firebase/app-check-compat/-/app-check-compat-0.2.0.tgz#86b3b35060b5bd4fe2d638532854167e44ba75e5" - integrity sha512-SwXVFjcwC1ksYOT3GFyAa4nQeUfXSYN+j7B1Vb4qlk7CBqmIYWhX/KlP1EAaOhmPuwsvA10E1t3HKeY+rmFzkw== +"@firebase/app-check-compat@0.2.1": + version "0.2.1" + resolved "https://registry.yarnpkg.com/@firebase/app-check-compat/-/app-check-compat-0.2.1.tgz#0833ed9836f89c09183d5aa57bf7fe0fedda2ca9" + integrity sha512-nB34OoU0icJM0iVrSf7oRVVzrceSvKYdcwlqitrN9JaB+36KwQ0FiQ4saI/rE4DLjcNsviV2ojJ/PRPdv+P0QQ== dependencies: - "@firebase/app-check" "0.5.0" - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/app-check" "0.5.1" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/app-check-interop-types@0.1.0": @@ -2030,25 +2030,25 @@ resolved "https://registry.yarnpkg.com/@firebase/app-check-interop-types/-/app-check-interop-types-0.1.0.tgz#83afd9d41f99166c2bdb2d824e5032e9edd8fe53" integrity sha512-uZfn9s4uuRsaX5Lwx+gFP3B6YsyOKUE+Rqa6z9ojT4VSRAsZFko9FRn6OxQUA1z5t5d08fY4pf+/+Dkd5wbdbA== -"@firebase/app-check@0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@firebase/app-check/-/app-check-0.5.0.tgz#d11456db11959174d474377aee7d140e10a1ec86" - integrity sha512-J9mod9V+o/0cq/57FxjAx5Whx7zVHJL0OWGi64ERFpG2gC9MAcGsqKy76zpGGTvEuGKEFgTILcXHchIlmjOrmw== +"@firebase/app-check@0.5.1": + version "0.5.1" + resolved "https://registry.yarnpkg.com/@firebase/app-check/-/app-check-0.5.1.tgz#84a9118c90aaf204987f81c0ec90a4a88c1e61ad" + integrity sha512-5TYzIM7lhvxt8kB98iULOCrRgI8/qu7LEdsJNm8jEymk3x4DBL3lK0oRw5nHbyUy+lK7cq9D1NmZZnLA3Snt4w== dependencies: - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" tslib "^2.1.0" -"@firebase/app-compat@0.1.7": - version "0.1.7" - resolved "https://registry.yarnpkg.com/@firebase/app-compat/-/app-compat-0.1.7.tgz#4d4304f806abebb38e4ff69083977a86313e62c8" - integrity sha512-Wb8w5XRPMC9HYPByMfqJt6SVabWEtOL4ccZHjtOzaJa0pJkLOYmgUOikqTchHaRla/cHPfR6pBQO3C5ljikkyw== +"@firebase/app-compat@0.1.8": + version "0.1.8" + resolved "https://registry.yarnpkg.com/@firebase/app-compat/-/app-compat-0.1.8.tgz#25f39a77a80d767e2849a3f2e2af6d7847abfc47" + integrity sha512-tDjJOoCHYXdswyci0UAPV9vMWp2Guxm8B2jw2A+A1DEcMBcL2z3dDp1JnAwFNbqvE9JHuMBVfEKq/fO0GgDXOg== dependencies: - "@firebase/app" "0.7.6" - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/app" "0.7.7" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/app-types@0.7.0": @@ -2056,25 +2056,25 @@ resolved "https://registry.yarnpkg.com/@firebase/app-types/-/app-types-0.7.0.tgz#c9e16d1b8bed1a991840b8d2a725fb58d0b5899f" integrity sha512-6fbHQwDv2jp/v6bXhBw2eSRbNBpxHcd1NBF864UksSMVIqIyri9qpJB1Mn6sGZE+bnDsSQBC5j2TbMxYsJQkQg== -"@firebase/app@0.7.6": - version "0.7.6" - resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.7.6.tgz#ec3f0a22bd8911e7d828bd9e5eadd5dc07ed151c" - integrity sha512-/KqKT7BSq9qseBAjS6JxJy6QosoWRVvDT/3tV9p26gVM5mqrmimTJvSh5+NMlTn1cf00DjCzQcOyaZrcJB54dg== +"@firebase/app@0.7.7": + version "0.7.7" + resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.7.7.tgz#17576d905eddd2f42f5d060851f6ef71adbb4dc5" + integrity sha512-3yEJDg814CnYIODgLCr4vrIP5Of78WDdikJVE5LS7MN1MWDFeJpQ4n88BdjO2X4Dp22+UFkw7FiuduwfUJJYYQ== dependencies: - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" tslib "^2.1.0" -"@firebase/auth-compat@0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@firebase/auth-compat/-/auth-compat-0.2.1.tgz#a605775e267bf9d63925da9b8add65013723aad8" - integrity sha512-D3Cs5maug2pvk0epjCnmgATVlT3Lt2/yPB7UTLKjM+ZW1RewRMd18ruMJkeSArwApHxi1CCPxSTKNqvG4eKSMw== +"@firebase/auth-compat@0.2.2": + version "0.2.2" + resolved "https://registry.yarnpkg.com/@firebase/auth-compat/-/auth-compat-0.2.2.tgz#d1edcc6301083f7097d0a631006721f77d673efa" + integrity sha512-ywYVs/GdBGHTfIKh65IHkge9kyUqOBd24jCI1mmUeQjO3ChVZfdOJk2JvhegLwaRnPYiuzzrWo7wp87YXVL+TQ== dependencies: - "@firebase/auth" "0.19.1" + "@firebase/auth" "0.19.2" "@firebase/auth-types" "0.11.0" - "@firebase/component" "0.5.8" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/util" "1.4.2" node-fetch "2.6.5" selenium-webdriver "^4.0.0-beta.2" tslib "^2.1.0" @@ -2089,67 +2089,67 @@ resolved "https://registry.yarnpkg.com/@firebase/auth-types/-/auth-types-0.11.0.tgz#b9c73c60ca07945b3bbd7a097633e5f78fa9e886" integrity sha512-q7Bt6cx+ySj9elQHTsKulwk3+qDezhzRBFC9zlQ1BjgMueUOnGMcvqmU0zuKlQ4RhLSH7MNAdBV2znVaoN3Vxw== -"@firebase/auth@0.19.1": - version "0.19.1" - resolved "https://registry.yarnpkg.com/@firebase/auth/-/auth-0.19.1.tgz#93f9edb9677b4e12d274d5a76a5ee62cda49361c" - integrity sha512-U5QV0AJ7RdHOHHLUYSZouRdu0hXJ0RFyRl9GgrwnkLKTX1qaWUrHOQZEwrD3TGE6bfFsWtjg+KYHeOImMqkB9g== +"@firebase/auth@0.19.2": + version "0.19.2" + resolved "https://registry.yarnpkg.com/@firebase/auth/-/auth-0.19.2.tgz#cb964d69b54b9762053b1884be5160920b916bdd" + integrity sha512-TH6v+wi3cHNdcshAjaWsAPYw/JmY5MYU8xCtZMQQaJdf+c/X+uCWv23s7Xs1fzda5+jecjVmENoXa+i/Onxeeg== dependencies: - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" node-fetch "2.6.5" selenium-webdriver "4.0.0-rc-1" tslib "^2.1.0" -"@firebase/component@0.5.8": - version "0.5.8" - resolved "https://registry.yarnpkg.com/@firebase/component/-/component-0.5.8.tgz#3dc764305775c3624880978c98d9266d56391ed8" - integrity sha512-td705iXrumVoZbpxFg1kuD+/NtYMQwAK37DITJNmVEe5E0gUHAGeBptXNL4KPCHOd8+/7EB4JfaUOZDxylp2+g== +"@firebase/component@0.5.9": + version "0.5.9" + resolved "https://registry.yarnpkg.com/@firebase/component/-/component-0.5.9.tgz#a859f655bd6e5b691bc5596fe43a91b12a443052" + integrity sha512-oLCY3x9WbM5rn06qmUvbtJuPj4dIw/C9T4Th52IiHF5tiCRC5k6YthvhfUVcTwfoUhK0fOgtwuKJKA/LpCPjgA== dependencies: - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" tslib "^2.1.0" -"@firebase/database-compat@0.1.3": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@firebase/database-compat/-/database-compat-0.1.3.tgz#46cb5b85068ae598c584e8c681940d6c9406cb0f" - integrity sha512-Y6di+XLM3UyntenjxWcmcesOfFjHOoaDqOStyryILSHNtyWeOCLDnuatJ/RNSNC2LDFFlKDqOj8C+LHGaubhNg== - dependencies: - "@firebase/component" "0.5.8" - "@firebase/database" "0.12.3" - "@firebase/database-types" "0.9.2" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" +"@firebase/database-compat@0.1.4": + version "0.1.4" + resolved "https://registry.yarnpkg.com/@firebase/database-compat/-/database-compat-0.1.4.tgz#9bad05a4a14e557271b887b9ab97f8b39f91f5aa" + integrity sha512-dIJiZLDFF3U+MoEwoPBy7zxWmBUro1KefmwSHlpOoxmPv76tuoPm85NumpW/HmMrtTcTkC2qowtb6NjGE8X7mw== + dependencies: + "@firebase/component" "0.5.9" + "@firebase/database" "0.12.4" + "@firebase/database-types" "0.9.3" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" tslib "^2.1.0" -"@firebase/database-types@0.9.2": - version "0.9.2" - resolved "https://registry.yarnpkg.com/@firebase/database-types/-/database-types-0.9.2.tgz#fd828a8b9b208de9bbd34b67bd6767f0bc174298" - integrity sha512-arIcrtyuca171NhaQNzyXd/+s8xemxnMpQb3hboW9UFbctOpa0fqmqMBg26rmIVOBzJ1APTw7GmXu7ch6JLoxA== +"@firebase/database-types@0.9.3": + version "0.9.3" + resolved "https://registry.yarnpkg.com/@firebase/database-types/-/database-types-0.9.3.tgz#d1a8ee34601136fd0047817d94432d89fdba5fef" + integrity sha512-R+YXLWy/Q7mNUxiUYiMboTwvVoprrgfyvf1Viyevskw6IoH1q8HV1UjlkLSgmRsOT9HPWt7XZUEStVZJFknHwg== dependencies: "@firebase/app-types" "0.7.0" - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" -"@firebase/database@0.12.3": - version "0.12.3" - resolved "https://registry.yarnpkg.com/@firebase/database/-/database-0.12.3.tgz#12f1bb2e3d88e9aa42989a61f3db41cfc0854853" - integrity sha512-L2f1jgmQgrTL5l4rh4/JBw3+stVHaOSvd6sJ0aMJ3WifLLSYeW7TcqxrSqOqCqE8f2NlM2ugl9uF2/kJKk8V5A== +"@firebase/database@0.12.4": + version "0.12.4" + resolved "https://registry.yarnpkg.com/@firebase/database/-/database-0.12.4.tgz#7ad26393f59ede2b93444406651f976a7008114d" + integrity sha512-XkrL1kXELRNkqKcltuT4hfG1gWmFiGvjFY+z7Lhb//12MqdkLjwa9YMK8c6Lo+Ro+IkWcJArQaOQYe3GkU5Wgg== dependencies: "@firebase/auth-interop-types" "0.1.6" - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" faye-websocket "0.11.4" tslib "^2.1.0" -"@firebase/firestore-compat@0.1.6": - version "0.1.6" - resolved "https://registry.yarnpkg.com/@firebase/firestore-compat/-/firestore-compat-0.1.6.tgz#0ffa3d3e89eb0c068f78eb2ef82e0cb3956570fb" - integrity sha512-CzpC8dcnBdoKlONnmObCQYOq+zEPdt1wgBH7Jo/0IWFmLEOIJ0aFZoxv6JVqi/qrZIroJ3Yd1KK36auOiQJ7Fw== +"@firebase/firestore-compat@0.1.7": + version "0.1.7" + resolved "https://registry.yarnpkg.com/@firebase/firestore-compat/-/firestore-compat-0.1.7.tgz#425101f61b1042278545374085e49e07900b0fea" + integrity sha512-34n9PxdenKRNqZRrr+SfjAcrPUvbfggLnRrADz7iVFYlDo9X1Jj6+fimzo0xC/p+2KZkPAiRYbT60WhjBLYUcg== dependencies: - "@firebase/component" "0.5.8" - "@firebase/firestore" "3.2.1" + "@firebase/component" "0.5.9" + "@firebase/firestore" "3.3.0" "@firebase/firestore-types" "2.5.0" - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/firestore-types@2.5.0": @@ -2157,29 +2157,29 @@ resolved "https://registry.yarnpkg.com/@firebase/firestore-types/-/firestore-types-2.5.0.tgz#16fca40b6980fdb000de86042d7a96635f2bcdd7" integrity sha512-I6c2m1zUhZ5SH0cWPmINabDyH5w0PPFHk2UHsjBpKdZllzJZ2TwTkXbDtpHUZNmnc/zAa0WNMNMvcvbb/xJLKA== -"@firebase/firestore@3.2.1": - version "3.2.1" - resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-3.2.1.tgz#f006de0341a0c29b02c5b39127a7a81b5d458feb" - integrity sha512-n0uNTRlhVee0O+VvDkB/e1gtH96+242LmRe8YUHGqGKPHgtFrZAhePlY31ujwaVzlP5Fw0hBffwYIe9GwWlmSA== +"@firebase/firestore@3.3.0": + version "3.3.0" + resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-3.3.0.tgz#5c77739f7f7c6f7b68a236575ca30d6c900f971e" + integrity sha512-QMCwmBlUUFldszKtVqIlqwjZYY0eODI2R7F9lkPxiANw8F853bSyBY6wqN85657vfDS7Ij6i6s+1qWMCqFvHHA== dependencies: - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" "@firebase/webchannel-wrapper" "0.6.1" "@grpc/grpc-js" "^1.3.2" "@grpc/proto-loader" "^0.6.0" node-fetch "2.6.5" tslib "^2.1.0" -"@firebase/functions-compat@0.1.5": - version "0.1.5" - resolved "https://registry.yarnpkg.com/@firebase/functions-compat/-/functions-compat-0.1.5.tgz#3cb0dd8a6b87789f4ae302a39c4385d54a1e8fcb" - integrity sha512-uqudQemXstb1lmiErVC8jCgLDyp/quc+McVekNLBCTfE9IoonXpepik0APH0Oj0smBs2oPIBpIL10VXdRjvP9Q== +"@firebase/functions-compat@0.1.6": + version "0.1.6" + resolved "https://registry.yarnpkg.com/@firebase/functions-compat/-/functions-compat-0.1.6.tgz#a05f1ef20d1e8d276fefcfe79ac57c0f8055f750" + integrity sha512-YZZmToY5Psp0fH8IMdqb00RXsI+dT/+YHKjNNZ1mO/MQS1Uwk40rqaOwZa00xYVeiEyfMnT2ciXyHPEYD7nxPQ== dependencies: - "@firebase/component" "0.5.8" - "@firebase/functions" "0.7.4" + "@firebase/component" "0.5.9" + "@firebase/functions" "0.7.5" "@firebase/functions-types" "0.5.0" - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/functions-types@0.5.0": @@ -2187,44 +2187,44 @@ resolved "https://registry.yarnpkg.com/@firebase/functions-types/-/functions-types-0.5.0.tgz#b50ba95ccce9e96f7cda453228ffe1684645625b" integrity sha512-qza0M5EwX+Ocrl1cYI14zoipUX4gI/Shwqv0C1nB864INAD42Dgv4v94BCyxGHBg2kzlWy8PNafdP7zPO8aJQA== -"@firebase/functions@0.7.4": - version "0.7.4" - resolved "https://registry.yarnpkg.com/@firebase/functions/-/functions-0.7.4.tgz#b06c3410a261d42bc2cd989e62b04da23df8cb27" - integrity sha512-HU6PNp4u1SNbXZD3Jy/Sv5bTmc/WZCd+tf4wWn7oHD83Ms285TGDjG6PrKxgZIuBL3aPF/2JBXrEgZL7BATI9w== +"@firebase/functions@0.7.5": + version "0.7.5" + resolved "https://registry.yarnpkg.com/@firebase/functions/-/functions-0.7.5.tgz#fe57fa5d50b96e7b06881daca99e72fa2c79b7c6" + integrity sha512-eEA8WhvNqahbepl0DF1vPc8Ml8oPMkDUQr+HQFQSqVvhYaGc1r6yP+Xe5QChifGfrAd5s/AanchNDvkS86Dg9g== dependencies: "@firebase/app-check-interop-types" "0.1.0" "@firebase/auth-interop-types" "0.1.6" - "@firebase/component" "0.5.8" + "@firebase/component" "0.5.9" "@firebase/messaging-interop-types" "0.1.0" - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" node-fetch "2.6.5" tslib "^2.1.0" -"@firebase/installations@0.5.3": - version "0.5.3" - resolved "https://registry.yarnpkg.com/@firebase/installations/-/installations-0.5.3.tgz#b7d12f90d4519c13b205324bc5ce631bd498e9fb" - integrity sha512-l4HGnzFbr9E9OuXHJwjAzcWb4YW6Z3dqAqFqE4uSeFZnTANi/tV5pUVJu4FZHidkFAH/MREwbfI5JACfQ7k1tQ== +"@firebase/installations@0.5.4": + version "0.5.4" + resolved "https://registry.yarnpkg.com/@firebase/installations/-/installations-0.5.4.tgz#c6f5a40eee930d447c909d84f01f5ebfe2f5f46e" + integrity sha512-rYb6Ju/tIBhojmM8FsgS96pErKl6gPgJFnffMO4bKH7HilXhOfgLfKU9k51ZDcps8N0npDx9+AJJ6pL1aYuYZQ== dependencies: - "@firebase/component" "0.5.8" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/util" "1.4.2" idb "3.0.2" tslib "^2.1.0" -"@firebase/logger@0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@firebase/logger/-/logger-0.3.1.tgz#ffa184841626f3cf8e8d55e9538fd30454d9798c" - integrity sha512-RlqTPGWQSFESVbcA9IsNi8hRcp+8SV7HHHAU7YrcmdXTD1RNlz50sCIq4EcXaXgBphdc7yb3Xtvle0QuFETUlg== +"@firebase/logger@0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@firebase/logger/-/logger-0.3.2.tgz#5046ffa8295c577846d54b6ca95645a03809800e" + integrity sha512-lzLrcJp9QBWpo40OcOM9B8QEtBw2Fk1zOZQdvv+rWS6gKmhQBCEMc4SMABQfWdjsylBcDfniD1Q+fUX1dcBTXA== dependencies: tslib "^2.1.0" -"@firebase/messaging-compat@0.1.3": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@firebase/messaging-compat/-/messaging-compat-0.1.3.tgz#6bbb479cd89c29dee84033140b77718a39679c28" - integrity sha512-XoLJHpy6cSIWZvcNzz6j17UkIzYWZvz8u44P/mjkXq7K5Q0QsRMTSXxRRRrSlwFALEKq0kVY8YccshkVTvtIdw== +"@firebase/messaging-compat@0.1.4": + version "0.1.4" + resolved "https://registry.yarnpkg.com/@firebase/messaging-compat/-/messaging-compat-0.1.4.tgz#14dffa349e241557b10d8fb7f5896a04d3f857a7" + integrity sha512-6477jBw7w7hk0uhnTUMsPoukalpcwbxTTo9kMguHVSXe0t3OdoxeXEaapaNJlOmU4Kgc8j3rsms8IDLdKVpvlA== dependencies: - "@firebase/component" "0.5.8" - "@firebase/messaging" "0.9.3" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/messaging" "0.9.4" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/messaging-interop-types@0.1.0": @@ -2232,28 +2232,28 @@ resolved "https://registry.yarnpkg.com/@firebase/messaging-interop-types/-/messaging-interop-types-0.1.0.tgz#bdac02dd31edd5cb9eec37b1db698ea5e2c1a631" integrity sha512-DbvUl/rXAZpQeKBnwz0NYY5OCqr2nFA0Bj28Fmr3NXGqR4PAkfTOHuQlVtLO1Nudo3q0HxAYLa68ZDAcuv2uKQ== -"@firebase/messaging@0.9.3": - version "0.9.3" - resolved "https://registry.yarnpkg.com/@firebase/messaging/-/messaging-0.9.3.tgz#190de346fe52c9db690111a909465117e3d1500f" - integrity sha512-MOWm9gNTHimhxTnA5yqRZxC+E/iqnPMlX9mp55dLY/WKkpbjSNrORQmR7olLDGyCEsL+kIpLY7Hi4uPZu5t98Q== +"@firebase/messaging@0.9.4": + version "0.9.4" + resolved "https://registry.yarnpkg.com/@firebase/messaging/-/messaging-0.9.4.tgz#a1cd38ad92eb92cde908dc695767362087137f6d" + integrity sha512-OvYV4MLPfDpdP/yltLqZXZRx6rXWz52bEilS2jL2B4sGiuTaXSkR6BIHB54EPTblu32nbyZYdlER4fssz4TfXw== dependencies: - "@firebase/component" "0.5.8" - "@firebase/installations" "0.5.3" + "@firebase/component" "0.5.9" + "@firebase/installations" "0.5.4" "@firebase/messaging-interop-types" "0.1.0" - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" idb "3.0.2" tslib "^2.1.0" -"@firebase/performance-compat@0.1.3": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@firebase/performance-compat/-/performance-compat-0.1.3.tgz#9762fe42e9947edbb04f781235d95f9984a59c41" - integrity sha512-as/4kskp4yPgGrRQMRwuvOGnzoj/87e0CoEw31fCAVVakiHXznOu300kyEJad9IuVuIl7lxB03JoQTldwtUAnA== +"@firebase/performance-compat@0.1.4": + version "0.1.4" + resolved "https://registry.yarnpkg.com/@firebase/performance-compat/-/performance-compat-0.1.4.tgz#0e887e9d707515db0594117072375e18200703a9" + integrity sha512-YuGfmpC0o+YvEBlEZCbPdNbT4Nn2qhi5uMXjqKnNIUepmXUsgOYDiAqM9nxHPoE/6IkvoFMdCj5nTUYVLCFXgg== dependencies: - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/performance" "0.5.3" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/performance" "0.5.4" "@firebase/performance-types" "0.1.0" - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/performance-types@0.1.0": @@ -2261,15 +2261,15 @@ resolved "https://registry.yarnpkg.com/@firebase/performance-types/-/performance-types-0.1.0.tgz#5e6efa9dc81860aee2cb7121b39ae8fa137e69fc" integrity sha512-6p1HxrH0mpx+622Ql6fcxFxfkYSBpE3LSuwM7iTtYU2nw91Hj6THC8Bc8z4nboIq7WvgsT/kOTYVVZzCSlXl8w== -"@firebase/performance@0.5.3": - version "0.5.3" - resolved "https://registry.yarnpkg.com/@firebase/performance/-/performance-0.5.3.tgz#45dc23584873a4acfcdca58767431c4a37a9668e" - integrity sha512-L0MjQwfmc30Ep6IZxle9rjD9lYil82d8E6QChjD+NGaxQOkujJgHUSKmq7dE3pQpEPYQ0FOOzy7FKN2AJEiHKQ== +"@firebase/performance@0.5.4": + version "0.5.4" + resolved "https://registry.yarnpkg.com/@firebase/performance/-/performance-0.5.4.tgz#480bf61a8ff248e55506172be267029270457743" + integrity sha512-ES6aS4eoMhf9CczntBADDsXhaFea/3a0FADwy/VpWXXBxVb8tqc5tPcoTwd9L5M/aDeSiQMy344rhrSsTbIZEg== dependencies: - "@firebase/component" "0.5.8" - "@firebase/installations" "0.5.3" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/installations" "0.5.4" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/polyfill@0.3.36": @@ -2281,16 +2281,16 @@ promise-polyfill "8.1.3" whatwg-fetch "2.0.4" -"@firebase/remote-config-compat@0.1.3": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@firebase/remote-config-compat/-/remote-config-compat-0.1.3.tgz#82808b4662e4c7d516cae12afc7fd20859dc8974" - integrity sha512-BXrvJ9kLoiNgDXHgwLO83P287yj2cCdxtPpBBslZCgKiksSAAWSBsTYlIzMTFScJ9JcJDXvM1PXpejWPxCs8AA== +"@firebase/remote-config-compat@0.1.4": + version "0.1.4" + resolved "https://registry.yarnpkg.com/@firebase/remote-config-compat/-/remote-config-compat-0.1.4.tgz#25561c070b2ba8e41e3f33aa9e9db592bbec5a37" + integrity sha512-6WeKR7E9KJ1RIF9GZiyle1uD4IsIPUBKUnUnFkQhj3FV6cGvQwbeG0rbh7QQLvd0IWuh9lABYjHXWp+rGHQk8A== dependencies: - "@firebase/component" "0.5.8" - "@firebase/logger" "0.3.1" - "@firebase/remote-config" "0.3.2" + "@firebase/component" "0.5.9" + "@firebase/logger" "0.3.2" + "@firebase/remote-config" "0.3.3" "@firebase/remote-config-types" "0.2.0" - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/remote-config-types@0.2.0": @@ -2298,26 +2298,26 @@ resolved "https://registry.yarnpkg.com/@firebase/remote-config-types/-/remote-config-types-0.2.0.tgz#1e2759fc01f20b58c564db42196f075844c3d1fd" integrity sha512-hqK5sCPeZvcHQ1D6VjJZdW6EexLTXNMJfPdTwbD8NrXUw6UjWC4KWhLK/TSlL0QPsQtcKRkaaoP+9QCgKfMFPw== -"@firebase/remote-config@0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@firebase/remote-config/-/remote-config-0.3.2.tgz#bf3e540e7e82d0a9fc5a1587be9bba85efe18c20" - integrity sha512-kS31tzXZ4Jb1qFTM5zhx0Er0C3BPPMLxmZDe1xaPF/nNqP1CPFwnmUiGT2rnuQ90Uc4f0j24dahISQe9qlLniA== +"@firebase/remote-config@0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@firebase/remote-config/-/remote-config-0.3.3.tgz#dedee2de508e2392ec2f254368adb7c2d969fc16" + integrity sha512-9hZWfB3k3IYsjHbWeUfhv/SDCcOgv/JMJpLXlUbTppXPm1IZ3X9ZW4I9bS86gGYr7m/kSv99U0oxQ7N9PoR8Iw== dependencies: - "@firebase/component" "0.5.8" - "@firebase/installations" "0.5.3" - "@firebase/logger" "0.3.1" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/installations" "0.5.4" + "@firebase/logger" "0.3.2" + "@firebase/util" "1.4.2" tslib "^2.1.0" -"@firebase/storage-compat@0.1.5": - version "0.1.5" - resolved "https://registry.yarnpkg.com/@firebase/storage-compat/-/storage-compat-0.1.5.tgz#f42a87454995a9c8780d2ce725d69c451d1d38dc" - integrity sha512-Qnpp9SmoU4MtwXTpHbjNX5CzKMFz6xFJUJqGbsFDLoifsuQwUr/t8SPpLv2/evnPkIEw5c2rFu6nYLdDK8mslA== +"@firebase/storage-compat@0.1.6": + version "0.1.6" + resolved "https://registry.yarnpkg.com/@firebase/storage-compat/-/storage-compat-0.1.6.tgz#7dc3d154248ea73e47231e956639e20572c0bcc1" + integrity sha512-4uzrDWAQpJ2wwjDBdWwhmy3F3T4KTV98qHlhXaquX3KRo3VxgZLcNwWYvD4fZwxi66COn2oZb70zMztcNmn7BA== dependencies: - "@firebase/component" "0.5.8" - "@firebase/storage" "0.8.5" + "@firebase/component" "0.5.9" + "@firebase/storage" "0.8.6" "@firebase/storage-types" "0.6.0" - "@firebase/util" "1.4.1" + "@firebase/util" "1.4.2" tslib "^2.1.0" "@firebase/storage-types@0.6.0": @@ -2325,20 +2325,20 @@ resolved "https://registry.yarnpkg.com/@firebase/storage-types/-/storage-types-0.6.0.tgz#0b1af64a2965af46fca138e5b70700e9b7e6312a" integrity sha512-1LpWhcCb1ftpkP/akhzjzeFxgVefs6eMD2QeKiJJUGH1qOiows2w5o0sKCUSQrvrRQS1lz3SFGvNR1Ck/gqxeA== -"@firebase/storage@0.8.5": - version "0.8.5" - resolved "https://registry.yarnpkg.com/@firebase/storage/-/storage-0.8.5.tgz#5a836d155fcb039fe8fb4a1aee0e57216436d039" - integrity sha512-cYPNs8lAxlll4/SIorA/Wot4BngC/uLcq5AGN7axoVWeShmQyeLDL5h2XuqRks8JlJ6eHmpxZcDZNCxzAAj+lg== +"@firebase/storage@0.8.6": + version "0.8.6" + resolved "https://registry.yarnpkg.com/@firebase/storage/-/storage-0.8.6.tgz#29f84fb8f3868fc9dbac845ee2fbf77028671a70" + integrity sha512-ltZinJHC+gvBwmq2MB9phOC5mOBcLE1LkHGjt2LfRyH4SFYdZ6QPwchQfJTvOPKWazsS/y9fud1TliLs7/ZEqQ== dependencies: - "@firebase/component" "0.5.8" - "@firebase/util" "1.4.1" + "@firebase/component" "0.5.9" + "@firebase/util" "1.4.2" node-fetch "2.6.5" tslib "^2.1.0" -"@firebase/util@1.4.1": - version "1.4.1" - resolved "https://registry.yarnpkg.com/@firebase/util/-/util-1.4.1.tgz#8814bed10a298b1fc17774cb7d903558fefed5ca" - integrity sha512-6GM+R1MQaLmzVOX/keb1oTWUYG0jqvA5dTsh/rsCNR1ndPCtDKiMTcH5XKHEzyog1+NLSVTSMsN/AqTmm2rGCw== +"@firebase/util@1.4.2": + version "1.4.2" + resolved "https://registry.yarnpkg.com/@firebase/util/-/util-1.4.2.tgz#271c63bb7cce4607f7679dc5624ef241c4cf2498" + integrity sha512-JMiUo+9QE9lMBvEtBjqsOFdmJgObFvi7OL1A0uFGwTmlCI1ZeNPOEBrwXkgTOelVCdiMO15mAebtEyxFuQ6FsA== dependencies: tslib "^2.1.0" @@ -3957,37 +3957,37 @@ find-up@^4.0.0: locate-path "^5.0.0" path-exists "^4.0.0" -firebase@^9.3.0: - version "9.3.0" - resolved "https://registry.yarnpkg.com/firebase/-/firebase-9.3.0.tgz#b2fbc14283e5cf109569c610c62302f47e8a9525" - integrity sha512-JGrWWmMjoDutwK8OGEE2nJoteQAR8r0LPqZnz6GHOtKMlVaNEbvy4eoIMuwnQFaap/lYdAVfWkRJghuSGdCrnQ== - dependencies: - "@firebase/analytics" "0.7.3" - "@firebase/analytics-compat" "0.1.4" - "@firebase/app" "0.7.6" - "@firebase/app-check" "0.5.0" - "@firebase/app-check-compat" "0.2.0" - "@firebase/app-compat" "0.1.7" +firebase@^9.4.0: + version "9.4.0" + resolved "https://registry.yarnpkg.com/firebase/-/firebase-9.4.0.tgz#24c87697582727b4e5f64929f02e64a9b52d81d9" + integrity sha512-VcdMVYf02OZtDWp6IYnlcostwqWZHlumxgnY5K87EKBHIjGcjkpdb39mguXZCVfQ44TRid2yaBouGDKAacnFwQ== + dependencies: + "@firebase/analytics" "0.7.4" + "@firebase/analytics-compat" "0.1.5" + "@firebase/app" "0.7.7" + "@firebase/app-check" "0.5.1" + "@firebase/app-check-compat" "0.2.1" + "@firebase/app-compat" "0.1.8" "@firebase/app-types" "0.7.0" - "@firebase/auth" "0.19.1" - "@firebase/auth-compat" "0.2.1" - "@firebase/database" "0.12.3" - "@firebase/database-compat" "0.1.3" - "@firebase/firestore" "3.2.1" - "@firebase/firestore-compat" "0.1.6" - "@firebase/functions" "0.7.4" - "@firebase/functions-compat" "0.1.5" - "@firebase/installations" "0.5.3" - "@firebase/messaging" "0.9.3" - "@firebase/messaging-compat" "0.1.3" - "@firebase/performance" "0.5.3" - "@firebase/performance-compat" "0.1.3" + "@firebase/auth" "0.19.2" + "@firebase/auth-compat" "0.2.2" + "@firebase/database" "0.12.4" + "@firebase/database-compat" "0.1.4" + "@firebase/firestore" "3.3.0" + "@firebase/firestore-compat" "0.1.7" + "@firebase/functions" "0.7.5" + "@firebase/functions-compat" "0.1.6" + "@firebase/installations" "0.5.4" + "@firebase/messaging" "0.9.4" + "@firebase/messaging-compat" "0.1.4" + "@firebase/performance" "0.5.4" + "@firebase/performance-compat" "0.1.4" "@firebase/polyfill" "0.3.36" - "@firebase/remote-config" "0.3.2" - "@firebase/remote-config-compat" "0.1.3" - "@firebase/storage" "0.8.5" - "@firebase/storage-compat" "0.1.5" - "@firebase/util" "1.4.1" + "@firebase/remote-config" "0.3.3" + "@firebase/remote-config-compat" "0.1.4" + "@firebase/storage" "0.8.6" + "@firebase/storage-compat" "0.1.6" + "@firebase/util" "1.4.2" flat-cache@^3.0.4: version "3.0.4" @@ -4541,10 +4541,10 @@ jose@^2.0.5: dependencies: "@panva/asn1.js" "^1.0.0" -jose@^4.1.5: - version "4.1.5" - resolved "https://registry.yarnpkg.com/jose/-/jose-4.1.5.tgz#fc681f89b9fee618eebe579a493fed46db78d990" - integrity sha512-GGTo/8TUgKsLrohNRwFzkJ+dI/TzFNknPO4hPbzc3lUi01mDmqlrvKDTzHxT6ESZKBMWNfiffQ755T5SiUJuxQ== +jose@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/jose/-/jose-4.2.0.tgz#eb3dfe4926514a99f325ba604d32e41589394f6d" + integrity sha512-7nlU7qankWiES1WmZXAJl0jiGusoouXhjiGR12yc+0/SIDi+4uhEGzqcfONtDI7g66K4IyqA44botXGpi9EBWA== js-cookie@^2.2.1: version "2.2.1" @@ -4863,13 +4863,9 @@ netmask@^2.0.2: resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7" integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg== -next-fortress@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/next-fortress/-/next-fortress-3.0.0.tgz#f21e09e74c3795aae710b12689322570b96da822" - integrity sha512-vBCAjacCDwU1uXSMYHE6CcLX3agf0My/FvHB265uoSn4PPXP0L5M4MiAMb8lgQ6/7vp3jga9c1P126Bea/1OBw== - dependencies: - jose "^4.1.5" - netmask "^2.0.2" +"next-fortress@link:..": + version "0.0.0" + uid "" next@12.0.3: version "12.0.3" From faae7c78097659f5e8dc069fd4f9fe01f5c99407 Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Tue, 9 Nov 2021 10:52:01 +0900 Subject: [PATCH 6/6] chore: update example --- example/package.json | 2 +- example/yarn.lock | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/example/package.json b/example/package.json index 43f6de1..2e732eb 100644 --- a/example/package.json +++ b/example/package.json @@ -16,7 +16,7 @@ "firebase": "^9.4.0", "js-cookie": "^3.0.1", "next": "12.0.3", - "next-fortress": "link:../", + "next-fortress": "^3.1.0-beta.1", "react": "^17.0.2", "react-dom": "17.0.2" }, diff --git a/example/yarn.lock b/example/yarn.lock index 6807aeb..46ce92e 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -4863,9 +4863,13 @@ netmask@^2.0.2: resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7" integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg== -"next-fortress@link:..": - version "0.0.0" - uid "" +next-fortress@^3.1.0-beta.1: + version "3.1.0-beta.1" + resolved "https://registry.yarnpkg.com/next-fortress/-/next-fortress-3.1.0-beta.1.tgz#c770e2e19d68595577c3ec95c66a4f11d5c82a2b" + integrity sha512-8CoxjHcrSwd9YXk53t9E6T7QiGRhFbp3GGhhmTczqECS+SNyb6iPQRFAXvTOQi9c7ZUBeg9emZbKC+ABYnNALw== + dependencies: + jose "^4.2.0" + netmask "^2.0.2" next@12.0.3: version "12.0.3"