so I have a TS library and I'm providing both a /dist (with definition) and src files in the npm package so people using TS can do do import from 'library' and people using js...
if I have the following can I somehow access the class instance? (trying to write an extension for a website and I need to patch a variable in class) function start() { new Cl...
is there a way to override console.log output for a class without touching the console.log ? I have a class that has private members that contain a lot of useless information ...
you're talking about client side with easily available debuggers . the user from doing all the bad things he want without needing you to add eval. if you're doing raw SQL call...
so I got a small problem (I am still new to node and JS in general). I made my library and made it support browsers and made the dist.js file using webpack. when I do <script...
so I am using websockets and have a listener for onmessage. each message takes approx 50ms to finish processing but I can get 5 messages in 50ms and each message can't be proc...
does anyone know why .onclose of websocket https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onclose takes toooooo long to fire (up to 1 min) ? small test code if a...
base128 then?
so I have this line of code async something(){ while (true){ do some promise based stuff } } then myvar = something(); is there a way I can cancel the some...
so I am using websockets in my project and I'm implementing auto reconnects and for that I need to be able to disable the internet and re-enable it a lot of times for debug pu...
does anyone know of a good way to convert a bigInt of any size to a buffer (nodejs) ? currently I am using a homemade function https://hastebin.com/acudogahem.js but it break...
so I am trying to use browserify to make my node module work on browsers. but I am getting this error Error: Parsing file filename: visitor[(override || node.type)] is not a f...
hey does anyone know of a good library that is similar to what selenium does on desktops? basically I want to make an app that automates a task using chrome and from my googl...
with client side javascript the user can already change anything they want so how is eval any more dangerous than opening the console and writing code there ?
easiest way would probably be using a variable inside the function that changes to true when it's called ? probably need more info on the use case tho
does the code run fine when it's not async ?
does anyone using TS and windows have a probelm with .js compiled files not being updating ? It happens a lot to me and I have to delete them manually
so I got a small question about promises. can I await something to be true for example await (sent=true) or do I need to create my own class for that ?
can I make my class array like ? like I want to be able to do classInstance[i] for example or for (const item of classInstance) 🤔
if an object overrides toString can I still get the normal console.log format ?