whatsonchain
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "whatsonchain", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": { | ||
@@ -44,2 +44,2 @@ "name": "Li Long", | ||
} | ||
} | ||
} |
const axios = require( "axios" ); | ||
const API_ROOT = "https://api.whatsonchain.com/v1/bsv/" | ||
const API_ROOT = "https://api.whatsonchain.com/v1/bsv" | ||
@@ -41,7 +41,5 @@ class WhatsOnChain { | ||
} else if ( error.request ) { | ||
// 服务器连不上 | ||
// console.warn( error.message ) | ||
throw new Error( error.message ) | ||
} else { | ||
// 返回200,API返回详细错误信息 | ||
// console.warn( 'Error', error ) | ||
@@ -48,0 +46,0 @@ throw error |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13417
354