Error using npm:ssh2-sftp-client@10.0.3
I am trying to connect to a sftp server using the library mentioned in the title (that is a wrapper of ssh2). I am providing a private key.
Debugging I could see the following error:
// FAILING with:
// Signature verification failed: TypeError: Unknown digest algorithm: sha1...
How to restrict global scope in dynamically created function?
I want to dynamically create a function using Function() constructor. How can I restrict access to global scope?
For example, this code:
```typescript
console.log(new Function('return Deno.exit(1)')())...
Typing for Dynamic imports
So I have a function like this that uses a dynamic import like
```ts
export async function func1(image: uInt8Array[]) {
const {decode, }= await import(
"https://deno.land/x/imagescript@1.2.17/mod.ts"...
Error with fetch called from npm module
I am trying to use the
tsdav NPM package with Deno, and have run into a problem with making an HTTP request, which seems specific to Deno.
When I try to call any request method from the library, I get an error with HttpsClientRequest somewhere deep within some compatibility layer:
```
error: TypeError: Cannot read properties of undefined (reading 'write')...Compile to exe
Every time I run my exe I get the following error,
But when I start my code normally with node main.js it works without problems.
This is my Code:
```ts
import Discord, { Guild } from "discord.js";...

What does this library "assert" does?
Hi
https://deno.land/std@0.215.0/assert/mod.ts
What does it do in this example?
https://docs.deno.com/runtime/manual/advanced/jsx_dom/deno_dom#basic-example...
Looking for an alternative to deno_dom
Hi
I'm looking for an alternative library to https://deno.land/x/deno_dom@v0.1.45/deno-dom-wasm.ts
Problems with deno_demo: https://stackoverflow.com/a/76630979/10799492...
Compile to exe
Every time I run my exe I get the following error:
But when I start my code normally with node main.js it works without problems.
...

Running untrusted code, eval-style
I have a project that on occassion I want to be able to execute JS code that I can then quickly get the output of. How is it reccomended I do that
Available disk space
I'm writing an API which will potentially create a large temporary file. I thought it would useful to validate that there was enough space on the disk to write the file before proceeding, however, I can't find a way to achieve this. Is there a cross-platform way to achieve this?
Verify AWS SNS signature with PEM certificate
Hello, I'm trying to verify aws sns messages in deno given a signing cert (in pem format, RSA sha1) and signature. However, when I do crypto.subtle.importKey, I keep getting this error:
```
DOMException: ASN.1 error: unexpected ASN.1 DER tag: expected OBJECT IDENTIFIER, got CONTEXT-SPECIFIC [0] (constructed) at DER byte 8
at new DOMException (ext:deno_web/01_dom_exception.js:115:20)
at new <anonymous> (ext:sb_core_main_js/js/errors.js:23:9)...
Headers for WebSocket client
I need to connect Deno (as a client) to a WebSocket server that requires custom headers on connection. I can't seem to find any currently supported method to accomplish this since the
WebSocket API only allows for the url and protocols parameters.
Is there any known best practice to accomplish this?...Deno testing with local oak server
I'm trying to setup a simple oak application for a few tests. The test steps work as expected but I can't exit/close the oak application by aborting the signal without the test runner throwing an error.
```
BadResource: Bad resource ID
[...]...
Anyone aware of a streaming multipart parser for Deno?
I'd like to handle the parts of a multipart/form-data stream in a server as they arrive rather than waiting for a complete upload and using FormData.
Ideally this would be a TransformStream that parsed the body into a stream of parts, which in turn contained the appropriate metadata and a content stream for each part.
I've been searching for any kind of implementation like this and not found anything from the wider JS ecosystem, let alone for Deno....
Deno does not deliver all the information with the EventSource
Is there some configuration or do I have to iterate in some way so that the entire message is delivered to me?

Deno LSP vscode issues when using Remote Explorer
Once in every few minutes I have to restart LSP because it stops resolving unimported names which is pretty annoying. Deno 1.40.4. Amazon Linux 2023.
In the logs I see a lot of messages like this (on every key stroke)
Could not set npm package requirements. Error getting response at https://registry.npmjs.org/pg-native for package "pg-native": An npm specifier not found in cache: "pg-native", --cached-only is specified....
How to use Deno modules in Vite app (Vue specifically)
I scaffolded an app using https://docs.deno.com/runtime/tutorials/how_to_with_npm/vue#run-npmcreate-vite-extra. I'm trying to use the SurrealDB package inside Vue but stumbling upon an error:
...
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/typescript". Strict MIME type checking is enforced for module scripts per HTML spec.
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/typescript". Strict MIME type checking is enforced for module scripts per HTML spec.
deno_bindgen release 9.0
@divy
When is it coming? I've been waiting for a while for release 9.0...
Is there any work going on?
I've been out for a while as I had board exams thinking it'll be released by the eding of the exam....