vk-fast-longpoll
Advanced tools
Comparing version 2.0.9 to 2.0.10
'use strict'; | ||
const request = require('request'); | ||
const querystring = require('querystring'); | ||
const fs = require('fs'); | ||
const Longpoll = require('./lib/longpoll'); | ||
const API = require('./lib/api'); | ||
const fs = require('fs'); | ||
const util = require('util'); | ||
const log_file = fs.createWriteStream(__dirname + '/error.log', {flags : 'a'}); | ||
const log_error = process.stderr; | ||
console.error = function(d) { | ||
log_file.write(util.format(d) + '\n'); | ||
log_error.write(util.format(d) + '\n'); | ||
}; | ||
@@ -17,0 +8,0 @@ module.exports = class { |
@@ -7,2 +7,12 @@ 'use strict'; | ||
const fs = require('fs'); | ||
const util = require('util'); | ||
const log_file = fs.createWriteStream(__dirname + '/api.log', {flags : 'a'}); | ||
const log_error = process.stderr; | ||
console.error = function(d) { | ||
log_file.write(util.format(d) + '\n'); | ||
log_error.write(util.format(d) + '\n'); | ||
}; | ||
module.exports = class { | ||
@@ -9,0 +19,0 @@ constructor(token) |
@@ -6,3 +6,12 @@ 'use strict'; | ||
const Message = require('./message'); | ||
const fs = require('fs'); | ||
const util = require('util'); | ||
const log_file = fs.createWriteStream(__dirname + '/longpoll.log', {flags : 'a'}); | ||
const log_error = process.stderr; | ||
console.error = function(d) { | ||
log_file.write(util.format(d) + '\n'); | ||
log_error.write(util.format(d) + '\n'); | ||
}; | ||
module.exports = class { | ||
@@ -9,0 +18,0 @@ constructor(api) |
@@ -128,3 +128,3 @@ { | ||
}, | ||
"version": "2.0.9" | ||
"version": "2.0.10" | ||
} |
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
25317
819