Skip to content

Commit

Permalink
chore: bump deps (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis authored Nov 28, 2024
1 parent 0501562 commit 336a36a
Show file tree
Hide file tree
Showing 11 changed files with 699 additions and 674 deletions.
614 changes: 307 additions & 307 deletions .yarn/releases/yarn-4.5.1.cjs → .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.1.cjs
yarnPath: .yarn/releases/yarn-4.5.3.cjs
5 changes: 4 additions & 1 deletion app/lookup/[domain]/dns/_components/IpDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ import DomainLink from '@/components/DomainLink';
import { useMediaQuery } from '@/hooks/use-media-query';

const LocationMap = dynamic(
() => import('@/app/lookup/[domain]/dns/_components/LocationMap'),
() =>
import('./LocationMap').then((m) => ({
default: m.LocationMap,
})),
{
ssr: false,
}
Expand Down
8 changes: 2 additions & 6 deletions app/lookup/[domain]/dns/_components/LocationMap.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
'use client';

import type { LatLngExpression } from 'leaflet';
import 'leaflet-defaulticon-compatibility';
import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css';
import 'leaflet/dist/leaflet.css';
import type { FC, ReactElement } from 'react';
import type { FC } from 'react';
import { MapContainer, Marker, TileLayer } from 'react-leaflet';

type LocationMapProps = {
location: LatLngExpression;
};

const LocationMap: FC<LocationMapProps> = ({ location }): ReactElement => (
export const LocationMap: FC<LocationMapProps> = ({ location }) => (
<MapContainer center={location} zoom={5}>
<TileLayer
attribution='&copy; <a href="http://osm.org/copyright" rel="noreferrer">OpenStreetMap</a> contributors'
Expand All @@ -20,5 +18,3 @@ const LocationMap: FC<LocationMapProps> = ({ location }): ReactElement => (
<Marker position={location} />
</MapContainer>
);

export default LocationMap;
1 change: 1 addition & 0 deletions app/lookup/[domain]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const LookupLayout: FC<LookupLayoutProps> = async ({
<Link
className="block font-clash text-4xl font-bold tracking-wider decoration-muted-foreground underline-offset-4 hover:underline"
href={`https://${domain}`}
prefetch={false}
target="_blank"
rel="noreferrer noopener"
>
Expand Down
13 changes: 8 additions & 5 deletions app/lookup/[domain]/opengraph-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ const kanitRegularFontP = fetch(
new URL('https://fonts.bunny.net/kanit/files/kanit-latin-500-normal.woff')
).then((res) => res.arrayBuffer());

export const handler = async ({
params,
}: {
params: Promise<{ domain: string }>;
}): Promise<ImageResponse> => {
type OGImageProps = {
params: Promise<{
domain: string;
}>;
};
export const handler = async ({ params: paramsPromise }: OGImageProps) => {
const params = await paramsPromise;
const { domain } = await params;

const [interRegularFont, interBoldFont, kanitRegularFont] = await Promise.all(
[interRegularFontP, interBoldFontP, kanitRegularFontP]
);
Expand Down
4 changes: 3 additions & 1 deletion components/RelatedDomains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ const RelatedDomains: FC<RelatedDomainsProps> = ({
variant="secondary"
className="h-6 rounded-lg p-2 text-xs"
>
<Link href={`/lookup/${domain}`}>{domain}</Link>
<Link href={`/lookup/${domain}`} prefetch={false}>
{domain}
</Link>
</Button>
))}
</div>
Expand Down
12 changes: 8 additions & 4 deletions lib/resolvers/AuthoritativeResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,33 @@ class AuthoritativeResolver extends DnsResolver {
case 'TXT':
if (Array.isArray(record.data)) {
return record.data
.map((item) => (item instanceof Buffer ? item.toString() : item))
.map((item) =>
item instanceof Buffer ? item.toString() : String(item)
)
.join(' ');
} else if (record.data instanceof Buffer) {
return record.data.toString();
} else {
return record.data;
return String(record.data);
}
case 'CAA':
return `${record.data.flags} ${record.data.tag} "${record.data.value}"`;
case 'DNSKEY':
return `${record.data.flags} ${
record.data.algorithm
} ${record.data.key.toString('hex')}`;
} ${record.data.key.toString('base64')}`;
case 'DS':
return `${record.data.keyTag} ${record.data.algorithm} ${
record.data.digestType
} ${record.data.digest.toString('hex')}`;
} ${record.data.digest.toString('hex').toUpperCase()}`;
case 'MX':
return `${record.data.preference} ${record.data.exchange}`;
case 'NAPTR':
return `${record.data.order} ${record.data.preference} "${record.data.flags}" "${record.data.services}" "${record.data.regexp}" ${record.data.replacement}`;
case 'NS':
return record.data;
case 'RRSIG':
return `${record.data.typeCovered} ${record.data.algorithm} ${record.data.labels} ${record.data.originalTTL} ${record.data.expiration} ${record.data.inception} ${record.data.keyTag} ${record.data.signersName} ${record.data.signature.toString('base64')}`;
case 'SOA':
return `${record.data.mname} ${record.data.rname} ${record.data.serial} ${record.data.refresh} ${record.data.retry} ${record.data.expire} ${record.data.minimum}`;
case 'SRV':
Expand Down
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ const nextConfig = {
},
],
},
experimental: {
staleTimes: {
dynamic: 60,
static: 300,
},
},
};

module.exports = nextConfig;
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,37 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.3",
"@vercel/speed-insights": "^1.0.14",
"@vercel/speed-insights": "^1.1.0",
"autoprefixer": "^10.4.20",
"class-variance-authority": "^0.7.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dataloader": "^2.2.2",
"dns-packet": "^5.6.1",
"framer-motion": "^11.11.10",
"framer-motion": "^11.12.0",
"is-valid-domain": "^0.1.6",
"isbot": "^5.1.17",
"leaflet": "^1.9.4",
"leaflet-defaulticon-compatibility": "^0.1.2",
"lucide-react": "^0.453.0",
"lucide-react": "^0.462.0",
"natural-compare-lite": "^1.4.0",
"next": "^15.0.1",
"next-plausible": "^3.12.2",
"next-themes": "^0.3.0",
"postcss": "^8.4.47",
"next": "^15.0.3",
"next-plausible": "^3.12.4",
"next-themes": "^0.4.3",
"postcss": "^8.4.49",
"punycode": "^2.3.1",
"react": "18.3.1",
"react-country-flag": "^3.1.0",
"react-dom": "18.3.1",
"react-hotkeys-hook": "^4.5.1",
"react-hotkeys-hook": "^4.6.1",
"react-leaflet": "^4.2.1",
"react-string-replace": "^1.1.1",
"swr": "^2.2.5",
"tailwind-merge": "^2.5.4",
"tailwindcss": "^3.4.14",
"tailwind-merge": "^2.5.5",
"tailwindcss": "^3.4.15",
"tailwindcss-animate": "^1.0.7",
"tldts": "^6.1.56",
"tldts": "^6.1.64",
"validator": "^13.12.0",
"vaul": "^1.1.0",
"vaul": "^1.1.1",
"web-auth-library": "^1.0.3",
"whoiser": "^1.18.0"
},
Expand All @@ -62,16 +62,16 @@
"@types/dns-packet": "^5.6.5",
"@types/leaflet": "^1.9.14",
"@types/natural-compare-lite": "^1.4.2",
"@types/node": "^22.8.1",
"@types/node": "^22.10.1",
"@types/punycode": "^2.1.4",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/validator": "^13.12.2",
"eslint": "^9.13.0",
"eslint-config-next": "^15.0.1",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"typescript": "^5.6.3"
"eslint": "^9.15.0",
"eslint-config-next": "^15.0.3",
"prettier": "^3.4.1",
"prettier-plugin-tailwindcss": "^0.6.9",
"typescript": "^5.7.2"
},
"packageManager": "[email protected].1"
"packageManager": "[email protected].3"
}
Loading

1 comment on commit 336a36a

@vercel
Copy link

@vercel vercel bot commented on 336a36a Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.