1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-27 05:33:31 +00:00
Commit Graph

175 Commits

Author SHA1 Message Date
Bryan Roe
2f657f31e5 1. Updated 'addMethod' on emitter, to return this, so you can chain multiple together
2. Updated wget return value to expose an 'abort' event
2019-02-13 16:05:51 -08:00
Bryan Roe
76fac42a5f Added 'abort' to wget and clientRequest 2019-02-13 15:57:32 -08:00
Bryan Roe
65e44f0a9d Removed 'nocontinue' functionality from piped streams 2019-02-13 15:57:02 -08:00
Bryan Roe
353b4b2181 Added 'wget' 2019-02-13 11:09:05 -08:00
Bryan Roe
6918c90253 Renamed '_eventHook' on EventEmitter to 'newListener' to match node definition 2019-02-12 21:40:08 -08:00
Bryan Roe
9542a14ada added missing Proxy support for non TLS connections 2019-02-12 17:57:22 -08:00
Bryan Roe
d491aeb98f Added NULL check on uncaught exceptions 2019-02-12 17:56:27 -08:00
Bryan Roe
bfce186759 Updated Duktape_GetBuffer(), so if the object is null or undefined, it returns NULL instead of throwing an exception 2019-02-12 16:54:04 -08:00
Bryan Roe
a52a8e0c9f Fixed behavior so WebSoketServer does not mask data, when talking to clients, to fix interop issue with Chrome 2019-02-12 16:34:23 -08:00
Bryan Roe
995c4015b0 Added functionality so if 'webSocketMaskOverride' is specified in the db, the optimization to disable masking for TLS protected websockets is disabled 2019-02-12 13:43:42 -08:00
Bryan Roe
92abf51a8d Updated, so httpStream and WebSocketStream are identified as http or https depending if the underlying socket is a net.socket or tls.socket. Also, updated the noMasking flag on WebSocket, so it's only set if it s an https.WebSocketStream. 2019-02-11 22:14:22 -08:00
Bryan Roe
eaf4d408a8 Updated linux clipboard 2019-02-11 17:43:41 -08:00
Bryan Roe
57a8d5df1c Added DescriptorEvents 2019-02-11 17:18:50 -08:00
Bryan Roe
05400ea3aa Fixed compiler warning 2019-02-11 14:43:24 -08:00
Bryan Roe
2d8c213b9d Rebuilt http-digest in pure JS to fix some issues 2019-02-11 14:07:48 -08:00
Bryan Roe
86d0b0fd18 fixed compiler warning 2019-02-10 21:53:41 -08:00
Bryan Roe
a10bd1a205 added ability to read clipboard for windows 2019-02-09 19:22:27 -08:00
Bryan Roe
e8594d6b64 Added Clipboard helper 2019-02-09 00:14:54 -08:00
Bryan Roe
9697af5215 Updated so 'Finish' is emitted when "Ready" is called, after 'End' is emitted; 2019-02-08 15:25:38 -08:00
Bryan Roe
52d0510e7b Added String.padStart polyfill 2019-02-08 15:23:39 -08:00
Bryan Roe
6afb6e5316 1. Modified, so if connection: close is specified, it won't try to reuse the socket
2. Added 'generateNonce' helper method
2019-02-08 15:23:10 -08:00
Bryan Roe
8f1501a343 Added listenerCount 2019-02-08 10:39:35 -08:00
Bryan Roe
817f2786e2 Updated 'ChainViewer' 2019-02-02 02:55:12 -08:00
Bryan Roe
aeaa229e31 1. Modified WebRTC_DataChannel to use union, to simplify struct def
2. Added ChainLink MetaData
3. Added 'ChainViewer' to allow JS to debug Chain events
2019-02-01 23:33:02 -08:00
Bryan Roe
e9f8626be8 Added missing Canary checks, and altered engine_free to wipe memory 2019-02-01 13:02:14 -08:00
Bryan Roe
bd16538a8e Fixed compiler warnings on MacOS 2019-02-01 01:13:07 -08:00
Bryan Roe
e3f1d7121c Added process.cwd() 2019-02-01 01:12:32 -08:00
Bryan Roe
0cb052fcc6 Added additional check to verify if emitter was finalized 2019-01-31 14:38:51 -08:00
Bryan Roe
1f4f3185bd Updated JS WebRTC debug hooks 2019-01-29 22:41:35 -08:00
Bryan Roe
305f04ad2e Updated behavior, so if a websocket write occurs on a non microstack thread, and it needs to merge buffers, it will allocate off the heap instead of the stack, to prevent a stack overflow if a very large amount of data is passed in. 2019-01-29 17:14:44 -08:00
Bryan Roe
ba0c2f645e Updated behavior, so if a HECI descriptor has a read error, it will emit 'error' instead of 'end' 2019-01-29 10:46:16 -08:00
Bryan Roe
0557787ceb Updated behavior of getJSModule so that the order of precedence matches the recent changes to require() 2019-01-29 00:37:29 -08:00
Bryan Roe
61de975f3a 1. Unified how JS modules can be integrated, by creating an ILibDuktape_Polyfills_JS_Init() method.
2. Updated behavior so when modules are queried, local filesystem takes precedence on search results
3. Updated 'promise' integration to use the new method above
4. Added 'win-registry' integration on windows, so it can be used by agentcore.c
2019-01-28 15:56:41 -08:00
Bryan Roe
ba4028d2d6 1. fixed bug, where return value was set incorrectly when calling _write
2. updated behavior, so if unshift is called with zero length buffer, it is a no-op
2019-01-28 10:42:20 -08:00
Bryan Roe
97a2e5b12c Updated so compiles for MIPS correctly 2019-01-23 14:32:52 -08:00
Bryan Roe
3a0f519f54 Fixed bug, where if Duktape_GetContextGuidHex() returned non-NULL, an attempt to modify immutable memory was attempted 2019-01-23 11:37:42 -08:00
Bryan Roe
82fc208e8b Fixed valgrind issue 2019-01-22 16:28:36 -08:00
Bryan Roe
e3d6c048e3 Updated, so that options object passed to attachDebugger(), is passed to duktape-debugger via a global object in the debugger context 2019-01-21 18:19:52 -08:00
Bryan Roe
f36bd6f8e0 Added native Timeout helper 2019-01-18 22:45:11 -08:00
Bryan Roe
b33c9ee4b8 Updated Buffer.from(), to allow hex encodings to start with 0x 2019-01-18 16:20:03 -08:00
Bryan Roe
d64dfb5504 Fixed compiler warnings on some toolchains 2019-01-18 16:02:00 -08:00
Bryan Roe
694108d245 Moved pragma to satisfy some toolchains 2019-01-18 15:52:58 -08:00
Bryan Roe
f65a5935dd Fixed compiler warnings 2019-01-18 15:28:28 -08:00
Bryan Roe
335ff51bfe Removed reference to unused files 2019-01-17 22:09:17 -08:00
Bryan Roe
4a26ff4df2 removed files that aren't used 2019-01-17 22:01:39 -08:00
Bryan Roe
3612e45cef Fixed compiler warning on GCC related to duktape specific issue 2019-01-17 21:56:34 -08:00
Bryan Roe
9eef92aae2 Added "GetBuffer", which always returns a buffer.
Updated "Get" so it always returns a string, which underneath it just fetches the buffer and calls toString() on it.
2019-01-17 18:50:02 -08:00
Bryan Roe
1e537debfb Fixed Buffer, so if the buffer contains a NULL, the string is truncated at the NULL 2019-01-17 18:48:47 -08:00
Bryan Roe
6cd91c5ab5 Fixed compiler warnings 2019-01-16 17:34:00 -08:00
Bryan Roe
381baaf06a Fixed bug where if you try to write data to a piped stream that was paused, the buffered data wouldn't get retried. 2019-01-16 15:51:33 -08:00