Bustin Base
Bustin Base
DDeno
Created by Bustin Base on 2/18/2024 in #help
How can I do server sent events on the client side in deno?
I guess its just as simple as adding new Promise<MessageEvent<Example>> to the promise
5 replies
DDeno
Created by Bustin Base on 2/18/2024 in #help
How can I do server sent events on the client side in deno?
Can you give an example with the typescript typing, assuming the message data is of type Example = { id: string }
5 replies
DDeno
Created by tegaki on 2/18/2024 in #help
unable to connect to mongodb using deno inside container
The 3rd party module on x/mongo also works well, I have been using it successfully. https://deno.land/x/mongo/mod.ts
7 replies
DDeno
Created by Bustin Base on 7/20/2023 in #help
Petition to free the module x/type from deno.land
(or I would like to use it there, thats another example of copying the memorized code over again)
30 replies
DDeno
Created by Bustin Base on 7/20/2023 in #help
Petition to free the module x/type from deno.land
I use it when recursing over object structures usually, like here: https://github.com/justinmchase/serializable/blob/main/mod.ts#L25
30 replies
DDeno
Created by Bustin Base on 7/20/2023 in #help
Petition to free the module x/type from deno.land
30 replies
DDeno
Created by Bustin Base on 7/20/2023 in #help
Petition to free the module x/type from deno.land
30 replies
DDeno
Created by Bustin Base on 7/20/2023 in #help
Petition to free the module x/type from deno.land
Its even less fancy than that, basically just an enum and a function which infers the runtime type using typeof but also resolves the various things that think they're "objects" but really aren't (I'm looking at you null!!)
30 replies
DDeno
Created by Bustin Base on 7/20/2023 in #help
Petition to free the module x/type from deno.land
@boywithkeyboard thats an interesting idea... I seem to never need that library anymore but I wonder why it hasn't been ported already?
30 replies
DDeno
Created by Bustin Base on 7/20/2023 in #help
Petition to free the module x/type from deno.land
how would one do that?
30 replies
DDeno
Created by Bustin Base on 7/20/2023 in #help
Petition to free the module x/type from deno.land
yeah I'd like to take it over, I just have a simple function that I write over and over again to basically find the type of an unknown
30 replies
DDeno
Created by Zidan on 7/16/2023 in #help
How to serve HTTPS with the Deno.serve() API
@guest271314 You keep saying "Deno.serve() does not serve the stream the say way that serveTls() does" but that seems to not really explain the issue to be honest. Not serving or streaming in the same way seems expected, it is a different way so it would make sense for it to not stream in the same way. The question is does it stream in some other way? Does it stream at all? Can your code be replaced with Deno.serve() and still stream correctly, even if its done in a "different" way?
168 replies
DDeno
Created by Hexagon on 6/26/2023 in #help
Purging Kv keys
I don't think you're going to want to use kv db for logs. That will quickly grow way beyond what you should put into a single key. Consider using Azure Log Analytics or something like that. Its a pretty simple single secret configuration and pretty cheap if you don't go crazy with the logs. Here is a single file you could snipe, or if you want I could make it into a stand alone module: https://github.com/justinmchase/grove/blob/main/src/logging/azure.logger.ts
6 replies
DDeno
Created by Bustin Base on 6/25/2023 in #help
What is the right way to bundle native modules?
Ok very cool, thanks, I'll check that out.
6 replies
DDeno
Created by Bustin Base on 6/25/2023 in #help
What is the right way to bundle native modules?
Like in this example: https://deno.com/manual@v1.34.3/runtime/ffi_api Suppose the binaries are all pre-built and available for download. How would you recommend "installing" these or pulling them down before runtime?
6 replies
DDeno
Created by Bustin Base on 4/13/2023 in #help
Is there a way to vendor npm specifier imports?
Yeah if I just run NPM_CONFIG_REGISTRY=$URL deno cache ... then it will work and cache but for some reason vscode extension cannot find that module in the cache and there seems to not be a way to specify the env var for vscode's sake.
6 replies
DDeno
Created by Bustin Base on 4/13/2023 in #help
Is there a way to vendor npm specifier imports?
I'll probably try again though, I was just hoping the npm specifiers would be a better experience.
6 replies