dragonfire535 / node-superfetch Goto Github PK
View Code? Open in Web Editor NEWA wrapper for Node.js' fetch API that makes it appear like superagent.
License: Other
A wrapper for Node.js' fetch API that makes it appear like superagent.
License: Other
Please describe the problem you are having in as much detail as possible:
Some months ago node-fetch dropped support for CJS, and they have totally moved to ESM. I'd like to know if you convert n-superfetch for ESM support, since node-fetch v2 is no longer have active development, and prefer to move to v3
Please describe the problem you are having in as much detail as possible:
TypeError: response.buffer is not a function. This is likely a node-related issue. Please add support.
The alternative to .buffer() is now .arrayBuffer()
Further details:
Better than Axios and node-fetch, OP package!
Please describe the problem you are having in as much detail as possible:
some unknown error occurs when I'm trying to run my project
/home/root/lfheroes-bot/node_modules/node-superfetch/index.js:136
Request[method.toLowerCase()] = (url, options) => new Request({ url, method, ...options });
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/root/lfheroes-bot/node_modules/hastebgen-js/index.js:1:79)
Further details:
Please describe the problem you are having in as much detail as possible:
How do I use headers with this (an example would be nice)
Further details:
When compiling with gulp, the error below is thrown.
[13:16:10] Using gulpfile ~\Documents\Development\Cooking\cooking-tools\gulpfile.js
[13:16:10] Starting 'default'...
[13:16:10] Finished 'default' after 52 ms
path-to-/node_modules/node-superfetch/typings/index.d.ts(5,45): error TS2304: Cannot find name 'Blob'.
That refers to this line:
node-superfetch/typings/index.d.ts
Line 5 in ab67ee9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.