From 0e8b4549df23483dae570eb2f7590cb837daf843 Mon Sep 17 00:00:00 2001 From: Thorsten Zoerner Date: Fri, 18 Mar 2022 03:00:10 +0100 Subject: [PATCH 1/5] Update axe.js (#1222) Should solve uncaught exception: ``` error] TypeError: Cannot read properties of undefined (reading 'lack') at Function.GET.turn (/root/.node-red/node_modules/gun/lib/axe.js:42:20) at Timeout._onTimeout (/root/.node-red/node_modules/gun/lib/axe.js:57:42) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) ``` That happens in some node environments from time to time. --- lib/axe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/axe.js b/lib/axe.js index 5495680c..2eee1a05 100644 --- a/lib/axe.js +++ b/lib/axe.js @@ -37,7 +37,7 @@ function start(root){ } GET.turn = function(msg, route, turn){ var tmp = msg['#'], tag = dup.s[tmp], next; - if(!tmp){ return } + if((!tmp)||(!tag)) { return } // Ideas: Save a random seed that sorts the route, store it and the index. // Or indexing on lowest latency is probably better. clearTimeout(tag.lack); if(tag.ack && (tmp = tag['##']) && msg['##'] === tmp){ return } // hashes match, stop asking other peers! @@ -159,4 +159,4 @@ function start(root){ } if(from){ return Object.Map = Map } (Object.Map = function(){ this.s = {} }).prototype = {set:function(k,v){this.s[k]=v;return this},get:function(k){return this.s[k]},delete:function(k){delete this.s[k]}}; -}()); \ No newline at end of file +}()); From e4bb977d5da55bc790f74605393808e3b972c322 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Thu, 17 Mar 2022 21:49:30 -0700 Subject: [PATCH 2/5] Thanks @wayjake for https://wallie.io/ supporting GUN! --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e1e58c8b..091d5cdc 100644 --- a/README.md +++ b/README.md @@ -115,14 +115,19 @@ On that note, let's get some official shout outs covered first:

Thanks to: - - + +
+ - - -
+ + +            + +   + + Robert Heessels, Lorenzo Mangani, From f062fc330b65668832b2b611666d006976363107 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Wed, 23 Mar 2022 00:28:37 -0700 Subject: [PATCH 3/5] Thanks Hunter Owens @howens for backing! --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 091d5cdc..f460a84a 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,8 @@ Thanks to: Aaron Artille, Tim Robinson, Fabian Stamm, -Mike Staub +Mike Staub, +Hunter Owens

- Join others in sponsoring code: https://www.patreon.com/gunDB ! From ff3c4f6e6904dc5097e114cf350440684a4863c0 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Sat, 2 Apr 2022 10:07:23 -0700 Subject: [PATCH 4/5] Thank you @JacobMillner for donating!!! --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f460a84a..bb645411 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,8 @@ Thanks to: Tim Robinson, Fabian Stamm, Mike Staub, -Hunter Owens +Hunter Owens, +Jacob Millner

- Join others in sponsoring code: https://www.patreon.com/gunDB ! From 9d94b433d0e3ec95d29082f27572caa3b3a2505b Mon Sep 17 00:00:00 2001 From: George Shammas Date: Sat, 2 Apr 2022 23:26:08 +0000 Subject: [PATCH 5/5] export SEA type information (#1224) --- sea.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sea.d.ts b/sea.d.ts index cf6c647a..997f0f1a 100644 --- a/sea.d.ts +++ b/sea.d.ts @@ -1,5 +1,8 @@ import { ISEA } from './types/sea/ISEA'; +declare const SEA: ISEA; +export default SEA; + import {} from './types/sea/ISEA'; declare module './types/sea/ISEA' { export interface ISEA {