Skip to content

Commit

Permalink
update isbot
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Jan 1, 2024
1 parent ee5880a commit f0ff02c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
type EntryContext,
} from "@remix-run/node";
import { RemixServer } from "@remix-run/react";
import isbot from "isbot";
import { isbot } from "isbot";
import { renderToPipeableStream } from "react-dom/server";
import { I18nextProvider } from "react-i18next";

Expand All @@ -21,7 +21,7 @@ export default async function handleRequest(
responseHeaders: Headers,
remixContext: EntryContext,
) {
const callbackName = isbot(request.headers.get("user-agent"))
const callbackName = isbot(request?.headers?.get("user-agent") ?? "")
? "onAllReady"
: "onShellReady";

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"inngest": "^3.7.1",
"is-hotkey": "^0.2.0",
"is-url": "^1.2.4",
"isbot": "^3.6.5",
"isbot": "^4.1.0",
"json-to-graphql-query": "^2.2.5",
"linkify-it": "^4.0.1",
"lru-cache": "^10.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7650,10 +7650,10 @@ isarray@~1.0.0:
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==

isbot@^3.6.5:
version "3.7.1"
resolved "https://registry.yarnpkg.com/isbot/-/isbot-3.7.1.tgz#83655e59bfae8cd410d3c63b398c8ad813bf3fdf"
integrity sha512-JfqOaY3O1lcWt2nc+D6Mq231CNpwZrBboLa59Go0J8hjGH+gY/Sy0CA/YLUSIScINmAVwTdJZIsOTk4PfBtRuw==
isbot@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/isbot/-/isbot-4.1.0.tgz#e05b0d6534bb61a87bc34ab8cdba0a53f75c6752"
integrity sha512-Kz7zk1wc0oC0FYLYtqea1RKdEX4XGlqacPhoaq9HSEQamEXQNJ/MzVzBKAQXDCCHO0h/eo4CdZs9t3Jfbup5Aw==

isexe@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit f0ff02c

Please sign in to comment.