1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-21 02:33:24 +00:00
Commit Graph

63 Commits

Author SHA1 Message Date
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
Bryan Roe
d39dcd0aa1 Fixed uncaught exception that can happen if you pause a stream with no upstream piped object. 2019-01-16 15:48:57 -08:00
Bryan Roe
da278e558f Added 'dataGenerator' which can be used for testing 2019-01-16 15:47:29 -08:00
Bryan Roe
303bacfdef Updated so compiles on OSX
Added Canary check to HECI_Sesison object
Changed error type to enum
Added support for timeouts when adding wait handles
added 2 second timeout for doIoctl
2019-01-11 13:47:17 -08:00
Bryan Roe
979101863c Fixed bug where IncomingMessage wasn't a readable stream in 'request' emitter
Fixed edge case where Agent.keepSocketAlive wasn't always getting called
2019-01-11 13:45:43 -08:00
Bryan Roe
c739a535c3 Updated to first try to use MeshAgent cert, if present 2019-01-11 13:42:15 -08:00
Bryan Roe
d93decc462 Added MacOS Support
Added chownSync
2019-01-11 13:41:36 -08:00
Bryan Roe
3cebd6a990 Added Domain Socket support 2019-01-11 13:40:29 -08:00
Bryan Roe
b8928208d7 Added code to check the stack size when transitioning from native to javascript 2019-01-11 12:30:53 -08:00
Bryan Roe
51ee1c0562 Added canary checks
Fixed behavior of 'finish' to match node documentation
2019-01-11 12:30:06 -08:00
Bryan Roe
678ab7e687 Updated so attempts to end an already end'ed stream is ignored 2019-01-11 12:28:48 -08:00
Bryan Roe
71a9d2ba17 Added MacOS support
Fixed 'child' race condition
Fixed compiler warnings
2019-01-11 12:28:03 -08:00
Bryan Roe
07c3eeb3bc 1. Integrated polyfill for promise
2. Modified Immediate, so a reference is automatically saved until it expires
3. ) updated Buffer.alloc to support non-zero fill
4. added bignum support using OpenSSL if linked
2019-01-11 12:25:34 -08:00