Merge pull request #11 from yusukebe/bump-up-hono

bump up Hono version
pull/34/head
Kei Kamikawa 2022-10-18 11:31:10 +09:00 committed by GitHub
commit 63f5e0c5c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View File

@ -18,7 +18,7 @@ const config: VerifyFirebaseAuthConfig = {
}
// Or you can specify here the extended VerifyFirebaseAuthEnv type.
const app = new Hono<VerifyFirebaseAuthEnv>()
const app = new Hono<{ Bindings: VerifyFirebaseAuthEnv }>()
// set middleware
app.use("*", verifyFirebaseAuth(config));

View File

@ -29,7 +29,7 @@
},
"dependencies": {
"firebase-auth-cloudflare-workers": "^1.0.0",
"hono": "^2.0.5"
"hono": "^2.1.3"
},
"devDependencies": {
"@cloudflare/workers-types": "^3.14.1",

View File

@ -135,7 +135,7 @@ describe("verifyFirebaseAuth middleware", () => {
},
],
])("%s", async (_, { headerKey, env, config, wantStatus }) => {
const app = new Hono<VerifyFirebaseAuthEnv>();
const app = new Hono<{ Bindings: VerifyFirebaseAuthEnv }>();
resetAuth();
@ -167,7 +167,7 @@ describe("verifyFirebaseAuth middleware", () => {
const getSpy = jest.spyOn(nopKeyStore, "get");
const putSpy = jest.spyOn(nopKeyStore, "put");
const app = new Hono<VerifyFirebaseAuthEnv>();
const app = new Hono<{ Bindings: VerifyFirebaseAuthEnv }>();
resetAuth();
@ -202,7 +202,7 @@ describe("verifyFirebaseAuth middleware", () => {
const testingJWT = generateDummyJWT();
const nopKeyStore = new NopKeyStore();
const app = new Hono<VerifyFirebaseAuthEnv>();
const app = new Hono<{ Bindings: VerifyFirebaseAuthEnv }>();
resetAuth();

View File

@ -3245,10 +3245,10 @@ has@^1.0.3:
dependencies:
function-bind "^1.1.1"
hono@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/hono/-/hono-2.0.5.tgz#a40355f5fddb287f631c3953828b834c2775cb45"
integrity sha512-Vuwj2Qbk94y6NSTzaMo2eYHLyX0OpKmTONKOhUYUK6Lx6L/IRsDJ37aBY+7wi3oli7Sez792cAuZ5vdSt/Qt+g==
hono@^2.1.3:
version "2.1.3"
resolved "https://registry.yarnpkg.com/hono/-/hono-2.1.3.tgz#51cc616ffadd5ad279ca3129f1328d77fa180c7d"
integrity sha512-+GV1f19Vx4E76+8cYGUJit0pxu1oA2lvUE3ctxf4eg3Ov7OlmldZhdnH5EjLNzbgQOcBo8wZV6izRa5lHa4fmg==
html-escaper@^2.0.0:
version "2.0.2"