Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

doichain

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doichain - npm Package Compare versions

Comparing version 0.0.30 to 0.0.31

13

lib/network.js

@@ -73,4 +73,5 @@ import settings from './settings'

var GLOBAL = global || window;
if(!newNetwork) return
GLOBAL.network = newNetwork
console.log('newNetwork:'+newNetwork)
if(!newNetwork || newNetwork === undefined) GLOBAL.network == "mainnet"
else GLOBAL.network = newNetwork

@@ -81,11 +82,13 @@ if (GLOBAL.network === "mainnet") {

}
if (GLOBAL.network === "testnet") {
else if (GLOBAL.network === "testnet") {
GLOBAL.DEFAULT_NETWORK = DOICHAIN_TESTNET
GLOBAL.DEFAULT_SETTINGS = settingsTestnet
}
if (GLOBAL.network === "regtest") {
else { //(GLOBAL.network === "regtest") {
GLOBAL.network = "regtest"
GLOBAL.DEFAULT_NETWORK = DOICHAIN_REGTEST
GLOBAL.DEFAULT_SETTINGS = settingsRegTest
}
// console.log('changed network to',GLOBAL.network)
console.log('changed network to',GLOBAL.network)
//if(GLOBAL.network !== 'mainnet' && GLOBAL.network !== 'testnet' && GLOBAL.network !== 'regtest')
settings.setSettings(GLOBAL.DEFAULT_SETTINGS)

@@ -92,0 +95,0 @@ //console.log('DEFAULT_NETWORK',DEFAULT_NETWORK)

{
"name": "doichain",
"version": "0.0.30",
"version": "0.0.31",
"description": "A js-Doichain library. The goal is to fully cover the Doichain protocol",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc