gun/lib/server.js
Emad Kheir 77162fcb68
YSON Fixes (#1170)
* Rewrite YSON, fixes #1155

* Modify test file so it now includes a backslash to test YSON's escaping functionality

* Moved new yson implementation to ison.js

* Update YSON imports to ison.js on radisk, server and stats

* Update test to use ison.js and added emojis to test strings with unicode characters
2021-12-07 22:47:48 -08:00

26 lines
795 B
JavaScript

;(function(){
require('./ison');
var Gun = require('../gun'), u;
Gun.serve = require('./serve');
//process.env.GUN_ENV = process.env.GUN_ENV || 'debug';
//console.LOG = {}; // only do this for dev.
Gun.on('opt', function(root){
if(u === root.opt.super){ root.opt.super = true }
if(u === root.opt.faith){ root.opt.faith = true } // HNPERF: This should probably be off, but we're testing performance improvements, please audit.
root.opt.log = root.opt.log || Gun.log;
this.to.next(root);
})
//require('../nts');
require('./store');
require('./rfs');
require('./rs3');
require('./wire');
try{require('../sea');}catch(e){}
try{require('../axe');}catch(e){}
//require('./file');
//require('./evict');
require('./multicast');
require('./stats');
module.exports = Gun;
}());