thedevs_js | Unsorted

Telegram-канал thedevs_js - JavaScript

4853

Part of @thedevs Rules: @rulesforthedevs Join other dev groups https://thedevs.network

Subscribe to a channel

JavaScript

"import attributes" is simpler approach that won't fail on runtime.

import loginTemplate from "./login.html" with { type "text" };

//use loginTemplate accordingly

Читать полностью…

JavaScript

This is an expression not merely a "string".

Also, "I have a string file" is misleading if it's a normal JavaScript module file.

Читать полностью…

JavaScript

Create a function which takes url and returns a string of body or an object containing subject and body

Читать полностью…

JavaScript

Open the file then add the variable

Читать полностью…

JavaScript

I actually didn't migrate to Microvs

Читать полностью…

JavaScript

Does anyone want to collaborate with me to generate income?

Читать полностью…

JavaScript

It was written in C before, interesting

Читать полностью…

JavaScript

I meant its interesting to note that they rewrote the image decoder in rust.

Читать полностью…

JavaScript

What is the problem with Rust? In this case

Читать полностью…

JavaScript

SI will take care of that.

It's very efficient than humans in checking latest updates > checking vulnerabilities with new updates > ensuring deps are not broken.

Читать полностью…

JavaScript

Hi everyone! 😊 Could you please help me with my research project by filling out this short Google Form? 🙏

📝 Only 8 questions, all MCQ-based — it’ll take just a few minutes!

🔗 https://docs.google.com/forms/d/e/1FAIpQLSdTns9ZXSvwkqvxlZphIVM98beEUTDb7U1sKs6sm7cR2kciBg/viewform?usp=sharing

Your response would really mean a lot to me. ❤️ Thank you for your time and support! 😊

Читать полностью…

JavaScript

holy crap this is bad

Читать полностью…

JavaScript

Classical user thing to never switch locations ever

Читать полностью…

JavaScript

https://www.mongodb.com/docs/manual/core/indexes/index-types/geospatial/2dsphere/query/points-within-circle-on-sphere/

Читать полностью…

JavaScript

I think you're using MongoDB and there is a distanceWithin operator? I don't remember properly

Читать полностью…

JavaScript

This solution was kind of right even though the question was not proper

Читать полностью…

JavaScript

Yeah that would need another line of destructuring the object.

Читать полностью…

JavaScript

That would need another function fo its own then.

export const ver_subject = `Please verify email for food_app`,
ver_body = `
<p>Hi there,</p>
<p>Click the link below to verify your email address:</p>
<p><a href="${url}">Verify Email</a></p>
<p>This link expires in 1 hour.</p>
<p>If you didn't create an account, you can safely ignore this email.</p>
`;

This url variable is availbale where var_body is used only.

Читать полностью…

JavaScript

I have a string file to keep all strings in one place. Need to pass other variables in one of the string. Is there a way to do that?

Читать полностью…

JavaScript

I hope all of you who been using containerization for isolation/security have already migrated to MicroVMs.

The kernel sandbox escapes are getting more and more common accelerated by AI.

Here is CVE-2026-99999 with 9.3 score.

https://pwn.ai/blog/pwnescape

Читать полностью…

JavaScript

., sorry about that.

Читать полностью…

JavaScript

Far better reply than whatever you had sent and deleted. Thanks

Читать полностью…

JavaScript

What do you mean (lol, it's written in rust) ? I don't understand

Читать полностью…

JavaScript

jxl image format was finally shipped by chrome (lol, it's written in rust).

https://developer.chrome.com/blog/jpeg-xl-in-chrome

Читать полностью…

JavaScript

it's best time they merge these together, not much devs reads their docs anymore lol

Читать полностью…

JavaScript

No, it's not.

It's only a simple vuln at face value .

Читать полностью…

JavaScript

I love it when a company fixes a vulnerability with a "fix" commit/ release notes and most importantly without raising a CVE.

JS devs should do this more often.

https://beaksec.github.io/posts/telegram-desktop-one-click-account-takeover/

Читать полностью…

JavaScript

But again I think, distance is nto correct because there can be cases where a user requests two locations but like separate rooms or floors like thing so that will be technically correct.

Читать полностью…

JavaScript

I don't think you need to stop duplicate requests here at all

Читать полностью…

JavaScript

Maybe we can just compare the coordinates and say if it is very close then not allowed.

Читать полностью…
Subscribe to a channel