Comments (1)
First, let me say that you really should not be using this library in any production applications (or any application where you care about performance). If you care about performance enough to use a web-worker, you care way too much about performance to justify making synchronous ajax requests. I've added a note to the readme to try and encourage people not to use this in production.
If you are committed to doing this, it shouldn't actually be too difficult. All you will need to do is remove the window.
from https://github.com/ForbesLindesay/sync-request/blob/master/browser.js I'll accept a pull request if you want to make that change (and test that it works).
from sync-request.
Related Issues (20)
- sync-rpc breaking Node 6 HOT 1
- Doesn't work with NW.js HOT 1
- How to make "timeout" take effect HOT 1
- An in-range update of cross-env is breaking the build 🚨 HOT 1
- error: connect ECONNREFUSED 127.0.0.1:port for request inside exit event listener for v6.1.0 HOT 5
- `proxy` option doesn't work
- Possibly leaked handle? HOT 2
- Error thrown when changing HTTP method to HEAD instead of GET HOT 2
- how can this be 'sync' if it returns a promise? HOT 1
- Request headers are not honored on the redirections followed from the original resource.
- HTTP Bearer token authorisation missing
- sync-request import blocking in worker_threads
- Error: read ECONNRESET
- Doesn't work when used in VS Code plugin HOT 2
- `sync-request` leaves orphaned `sync-rpc` processes
- Check out await-sync HOT 2
- Compliance issue in sync-request HOT 2
- Error: self signed certificate HOT 1
- on nodejs 20.10.0, Uncaught Error Error: connect ECONNREFUSED 127.0.0.1:49792
- Regarding the packaging error of using esbuild
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sync-request.