Linus Unnebäck

Results 747 comments of Linus Unnebäck

> Yeah, I am aware of that. But read the code of bcrypt-fast. It just imports the crate of bcrypt in rust. > Compare this with https://www.npmjs.com/package/@node-rs/bcrypt where they have...

I actually compiled two bcrypt libraries to wasm the other day, the OpenBSD and Openwall ones. The `bcrypt` native Node.js module uses the OpenBSD source as well, although it's modified......

With #368 merged, the following settings work for us: **`tsconfig.json`** ```json "module": "ES2022", "moduleResolution": "node16", ``` **`package.json`** ```json "type": "module", ``` **`my-file.ts`** ```ts import { parse } from 'csv-parse/sync' import...

Happy to reopen if people are still having problems, but I don't have enough information to debug this. Creating a new React Native project and adding this module works for...

@Joelasaur I would really not recommend using `Math.random()` to populate the values in `getRandomValues` since it's not cryptographically secure. @a-eid The stack trace points to inside `react-native`, and not this...

Documentation for getting this to work with Jest is here: https://jestjs.io/docs/ecmascript-modules

> We both want ESM world, but reality is ecosystem is not ready yet. I'm not sure about that, Jest is just one of many test runners. I don't think...

> Node.js mark as `--experimental-vm-modules`, jest official document states **many known and unknown bugs**. > `I don't think` is not very convincing both Node.js and jest official state them as...

> > Yes, but I don't think that vm-modules isn't often used that much at all? > > Here is the problem. Please check jest source code. > All jest...

@pavelloz @steelx could you submit the exact code that aren't working, along with exact versions of node-fetch, node, npm, and os? ```sh node -p "require('node-fetch')('http://localhost:3000/').then(console.dir, console.dir)" ``` Is this not...