abi
Type alias with inherited type parameter constraints
Is there any way to do this? I want SVLTN to just be a short-name alias for SomeVeryLongTypeName, and I want it to have the same parameter types, but I don't want to have to specify all of them explicitly.
What I would like more is:
Anyone?
9 replies
Reasons to choose Node.js
I've been tasked to write a list of pros/cons of Deno in comparison to Node.js. I am quite honestly having a hard time formulating that many "pros" of Node.js.
Could someone please let me know: what good reasons are there to choose Node.js today?
7 replies
deno.land published the same GitHub tag twice
https://deno.land/x/smee_client_unofficial@v1.2.3
Could someone please just delete the older one?
5 replies
Logger names and prefixes
Is there any obvious way on how to configure std/log so that loggers named
my-prefix/foo/bar
and my-prefix/hello/world
attach to the same handlers automatically?
In other words, can I configure logger handlers based on logger name prefix?2 replies
Using Superagent in Deno?
Has anyone managed to make Superagent work nicely in Deno?
I use Superagent via dependent package
smee-client
from esm.sh and it seems I can't figure out how to make Superagent and/or esm.sh understand that I want the non-browser Superagent?2 replies
Abusing prototype CryptoKey in `node:crypto`
Is there any way that I can set the prototype of an object to specifically
CryptoKey
as defined by node:crypto
? I am trying to get around some nasty instanceof
check in a third-party library which is getting in the way.
The above gives me this error:
7 replies
Using encrypted private keys with Deno
So it seems to me that Deno doesn't provide any helpers for making HTTPS requests with encrypted private keys. (This is readily available in Node.js!)
Is it possible at all make HTTPS requests with encrypted private keys in Deno? Not exactly sure how all of TLS works, and on what level it would need to be implemented.
5 replies
Oak, `ctx.assert`, and middleware
I thought that
ctx.assert
would somehow "carry along" the information about the asserted condition to the next middleware in the chain, but I can't seem to get that to work.
Am I misunderstanding something here? I was thinking if I do something like this, I wouldn't have to to a null check in the last middleware, but I apparently do?
1 replies
Safety measures (statically, not runtime) for libraries that require environment variables?
Suppose I have a Deno library which expects certain environment variables to have been configured, otherwise a crash will happen. Does anyone know of a good way to somehow ensure at "compile-time" that whatever Deno application is using the library has configured these environment variables?
16 replies