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

View File

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

View File

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

View File

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