Nikolay Suslov il y a 4 ans
Parent
commit
5b847c44f7
4 fichiers modifiés avec 15 ajouts et 6 suppressions
  1. 1 1
      index.html
  2. 10 1
      index.js
  3. 3 3
      package-lock.json
  4. 1 1
      package.json

+ 1 - 1
index.html

@@ -1 +1 @@
-<span> GunDB version: 0.2020.421 </span>
+<span> GunDB version: 0.2020.430 </span>

+ 10 - 1
index.js

@@ -23,7 +23,16 @@ if (conf.ssl) {
     config.server = require('http').createServer(Gun.serve(__dirname));
 }
 
-global.gun = Gun({ web: config.server.listen(config.port), axe: false}); //until: 5000, chunk: 10 
+global.gun = Gun({ 
+        web: config.server.listen(config.port),
+        peers: [(`https://localhost:${config.port}/gun`)],
+        radisk: true,
+        axe: false}); //until: 5000, chunk: 10
+
+
+//Sync all (not work for now)
+//global.gun.on('out',{get: {'#': {'*': ''}}})
+
 console.log('Relay peer started on port ' + config.port + ' with /gun');
 
 let tickMsg = {

+ 3 - 3
package-lock.json

@@ -238,9 +238,9 @@
       "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
     },
     "gun": {
-      "version": "0.2020.421",
-      "resolved": "https://registry.npmjs.org/gun/-/gun-0.2020.421.tgz",
-      "integrity": "sha512-ys7BOwq+O8/BkQHgqYlkSPlrUK9VTu+9d45XHoIGTZT9X6WaJzF3D3Rtxr7PMMYR7AGgxaHAjt1n3VT4rW1mdg==",
+      "version": "0.2020.430",
+      "resolved": "https://registry.npmjs.org/gun/-/gun-0.2020.430.tgz",
+      "integrity": "sha512-mCRrz/VUflCGaRVOA4pTnRo5YSP5pa0lpSszqQ6offJQC9PzClvl2aofpaaHOXx5rFzw34HP/EjWZP3cxen3gQ==",
       "requires": {
         "buffer": "^5.4.3",
         "bufferutil": "^4.0.1",

+ 1 - 1
package.json

@@ -16,7 +16,7 @@
   "author": "Nikolay Suslov",
   "license": "MIT",
   "dependencies": {
-    "gun": "0.2020.421",
+    "gun": "0.2020.430",
     "yargs": "15.3.1"
   }
 }