Skip to content

Commit 23f7fdb

Browse files
committed
tiny update.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent e8fda16 commit 23f7fdb

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

plugins/cookie.chrome.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var session = require('../session');
99
//
1010
// https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md
1111
//
12-
var plugin = new Plugin(13, 'cookie.chrome', '2018.05.30',
12+
var plugin = new Plugin(13, 'cookie.chrome', '2018.11.18',
1313
'Plugin to reuse Chrome\'s leetcode cookie.',
1414
['ffi:win32', 'keytar:darwin', 'ref:win32', 'ref-struct:win32', 'sqlite3']);
1515

@@ -18,7 +18,7 @@ plugin.help = function() {
1818
case 'darwin':
1919
break;
2020
case 'linux':
21-
log.info('To complete the install: sudo apt install libsecret-tools');
21+
log.warn('To complete the install: sudo apt install libsecret-tools');
2222
break;
2323
case 'win32':
2424
break;
@@ -131,6 +131,7 @@ function doDecode(key, queue, cb) {
131131
Chrome.getCookies = function(cb) {
132132
var sqlite3 = require('sqlite3');
133133
var db = new sqlite3.Database(my.getDBPath());
134+
db.on('error', cb);
134135
var KEYS = ['csrftoken', 'LEETCODE_SESSION'];
135136

136137
db.serialize(function() {

plugins/github.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var Plugin = require('../plugin');
1111
//
1212
// https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/github.md
1313
//
14-
var plugin = new Plugin(100, 'github', '2018.03.24',
14+
var plugin = new Plugin(100, 'github', '2018.11.18',
1515
'Plugin to commit accepted code to your own github repo.',
1616
['github@13']);
1717

plugins/leetcode.cn.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
var config = require('../config');
12
var Plugin = require('../plugin');
23

34
//
45
// [Usage]
56
//
67
// https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/leetcode.cn.md
78
//
8-
var plugin = new Plugin(15, 'leetcode.cn', '2018.10.28',
9+
var plugin = new Plugin(15, 'leetcode.cn', '2018.11.18',
910
'Plugin to talk with leetcode-cn APIs.');
1011

1112
plugin.init = function() {
12-
const config = require('../config');
1313
config.app = 'leetcode.cn';
1414
config.sys.urls.base = 'https://leetcode-cn.com';
1515
config.sys.urls.login = 'https://leetcode-cn.com/accounts/login/';

plugins/lintcode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var session = require('../session');
2020
//
2121
// https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/lintcode.md
2222
//
23-
const plugin = new Plugin(15, 'lintcode', '2018.10.28',
23+
const plugin = new Plugin(15, 'lintcode', '2018.11.18',
2424
'Plugin to talk with lintcode APIs.');
2525

2626
// FIXME: add more langs

0 commit comments

Comments
 (0)