ネムルバカ,何黙ってんだ?
cijiugechu / astro-link-preview Goto Github PK
View Code? Open in Web Editor NEWThis Astro integration generates preview images for external links.
License: MIT License
This Astro integration generates preview images for external links.
License: MIT License
ネムルバカ,何黙ってんだ?
Hey
I saw that your lib takes all the links on the page to be able to create the link-preview
const anchorElements = document.querySelectorAll('a')
It happens that when there is a link that does not have HTTP Headers
, the application breaks. For example:
Native email links that end up crashing the application when hovering element
<a href="mailto:[email protected]">Email</a>
Error that is thrown:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
code: 'ERR_HTTP_HEADERS_SENT'
Would there be any way to validate whether the link starts with http
or https
? Something like that:
href && (href.startsWith('http://') || href.startsWith('https://'));
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
package.json
prettier ^2.8.8
tsup ^7.3.0
typescript ^5.1.6
vitest ^0.34.6
pnpm 8.10.4
packages/core/package.json
@napi-rs/image ^1.7.0
@node-rs/xxhash ^1.4.2
@rollup/pluginutils ^5.0.5
kleur ^4.1.4
parse5-html-rewriting-stream ^7.0.0
playwright ^1.40.0
@types/node ^18.11.18
astro ^2.4.4
tsup ^7.3.0
typescript ^5.1.6
vite ^4.5.0
astro >=2.0.0
node >=16.0.0
packages/playground-ssr/package.json
astro ^2.6.0
@astrojs/node ^5.2.0
packages/playground/package.json
astro ^2.4.4
@astrojs/markdown-remark ^2.2.0
hast-util-select 6.0.1
rehype-autolink-headings ^6.1.1
rehype-slug ^5.0.1
rehype-toc ^3.0.2
remark-code-titles ^0.1.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.