feat: alpine 0.0.1 version complate
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
*/
|
||||
import * as fs from 'fs'
|
||||
import * as os from 'os'
|
||||
import { RBTree } from 'bintrees'
|
||||
import * as secp256k1 from 'secp256k1';
|
||||
import * as ntpClient from 'ntp-client'
|
||||
import * as stun from 'stun'
|
||||
import * as zip from 'zip'
|
||||
|
||||
import './constant'
|
||||
import './log'
|
||||
@@ -27,14 +32,20 @@ String.prototype.right = function(count) {
|
||||
else
|
||||
return this.substr(0, this.length);
|
||||
};
|
||||
global.RBTree = require('bintrees').RBTree;
|
||||
global.ntpClient = require('ntp-client');
|
||||
global.Stun = require('stun');
|
||||
global.ZIP = require("zip");
|
||||
// var strOS = os.platform() + "_" + os.arch();
|
||||
if (!global.secp256k1) {
|
||||
global.secp256k1 = require('secp256k1');
|
||||
global.RBTree = RBTree;
|
||||
global.ntpClient = ntpClient;
|
||||
global.Stun = stun;
|
||||
global.ZIP = zip;
|
||||
global.secp256k1 = secp256k1;
|
||||
|
||||
export {
|
||||
RBTree,
|
||||
ntpClient,
|
||||
stun,
|
||||
zip,
|
||||
secp256k1
|
||||
}
|
||||
|
||||
require('../HTML/JS/terahashlib.js');
|
||||
require("./crypto-library");
|
||||
if (global.USE_PARAM_JS) {
|
||||
|
||||
Reference in New Issue
Block a user