Dmitriy Mozgovoy
Dmitriy Mozgovoy
You should have at least one `error` listener in the source emitter to avoid throwing this error. Since 6.1.0 we have the `ignoreErrors` option for the [EventEmitter2](https://www.npmjs.com/package/eventemitter2#differences-non-breaking-compatible-with-existing-eventemitter) constructor to disable...
@xamgore As an alternative, you could use `EventEmitter2` emitter as a relay. Every instance of the EventEmitter2 class has the `listenTo` method to do the similar things, but instead of...
@webknjaz Yes, for sure. I've thought about that, but it's not easy to find an expressive/concise way to do this without scaring off potential users with unnecessary details. Readme already...
@webknjaz Done. Check it out https://github.com/DigitalBrainJS/c-promise/tree/master#comparison-table
> Android 5.1.1 As you can see, Axios 1.x is written in ECMA 2017 so you need to transpile your bundle for use on legacy platforms.
Not sure about ReactNative but you can try this: ```js (async (photo_uri) => { const { data } = await axios.get(photo_uri, { responseType: "blob" }); const response = await axios.post('http://httpbin.org/post',...
`4785316904301480717` is too big for Number type Number.isSafeInteger(4785316904301480717) // false console.log(4785316904301480717) // 4785316904301481000
I seem to have fixed this in v1.2.0 (#5247). Is this issue still relevant for the latest version?
@ZhongpinWang FYI in node.js 16.7, stream consumers were introduced (https://nodejs.org/api/webstreams.html#streamconsumersjsonstream) ```js import {json, text, arrayBuffer, blob, buffer} from 'node:stream/consumers'; import {Readable} from 'stream'; const readable = Readable.from('{"x": "bar"}'); console.log('json', await...
You can't re-read the stream payload. Use the native FormData & Blob classes or their spec-compliant polyfill like `formdata-node` (for node older than v18).