capsolver-npm
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "capsolver-npm", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/CapSolver.js", |
@@ -10,3 +10,3 @@ # capsolver.com api wrapper🧠 | ||
[![](https://img.shields.io/badge/1.0.6-capsolver--npm-darkgreen?logo=npm&logoColor=white)](https://www.npmjs.com/package/capsolver-npm) | ||
[![](https://img.shields.io/badge/1.0.7-capsolver--npm-darkgreen?logo=npm&logoColor=white)](https://www.npmjs.com/package/capsolver-npm) | ||
[![](https://img.shields.io/badge/documentation-docs.capsolver.com-darkgreen)](https://docs.capsolver.com/guide/getting-started.html) | ||
@@ -13,0 +13,0 @@ |
@@ -11,3 +11,3 @@ const Tasker = require('./Tasker') | ||
/** * Set-up handler **/ | ||
init(){ if(this.verbose === 2){ console.log(`[${this.constructor.name}][Verbose level ${this.verbose} running at: ${this.apikey}]`) } } | ||
init(){ if(this.verbose === 2){ console.log(`capsolve-npm: Verbose level ${this.verbose} running at: ${this.apikey}`) } } | ||
@@ -33,3 +33,3 @@ /** * Return USD balance as float number **/ | ||
}) | ||
if(this.verbose !== 0) { console.log(`[${this.constructor.name}][getBalance][${handled['statusText']}][${parseFloat(handled['apiResponse']['balance'])} USD]`) } | ||
if(this.verbose !== 0) { console.log(`capsolver-npm: Balance ${parseFloat(handled['apiResponse']['balance'])} USD]`) } | ||
return handled | ||
@@ -36,0 +36,0 @@ } |
@@ -46,3 +46,3 @@ const Validation = require('./Validation') | ||
}) | ||
if(this.verbose === 1){ if(handled.error === 0){ console.log(`[${this.taskData.type}][created task][${handled['apiResponse']['taskId']}]`) } else { console.log(`[${this.taskData.type}][failed][${handled['apiResponse']}]`) } } | ||
if(this.verbose === 1){ if(handled.error === 0){ console.log(`capsolver-npm: ${this.taskData.type}: [created task][${handled['apiResponse']['taskId']}]`) } else { console.log(`capsolver-npm: ${this.taskData.type}: [failed][${handled['apiResponse']}]`) } } | ||
if(this.verbose === 2){ console.log(handled['apiResponse']) } | ||
@@ -79,3 +79,3 @@ return handled | ||
}) | ||
if(this.verbose === 1){ console.log(`[${taskId}][status: ${status}]`) } | ||
if(this.verbose === 1){ console.log(`capsolver-npm: [${taskId}][status: ${status}]`) } | ||
if(this.verbose === 2){ console.log(handled['apiResponse']) } | ||
@@ -82,0 +82,0 @@ if(handled.error !== 0) break |
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
102739