Skip to content

Commit 22265d8

Browse files
committed
Bump 1.2.1
1 parent 7756f80 commit 22265d8

File tree

6 files changed

+63
-49
lines changed

6 files changed

+63
-49
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.debug.js
2+
*.min.js
3+
node_modules/*
4+
assets/scripts/lib/*

.eslintrc

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"rules": {
3+
"indent": [2, 2],
4+
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
5+
"linebreak-style": [2, "unix"],
6+
"semi": [2, "always"],
7+
"strict": [2, "global"],
8+
"curly": 2,
9+
"eqeqeq": 2,
10+
"no-eval": 2,
11+
"guard-for-in": 2,
12+
"no-caller": 2,
13+
"no-else-return": 2,
14+
"no-eq-null": 2,
15+
"no-extend-native": 2,
16+
"no-extra-bind": 2,
17+
"no-floating-decimal": 2,
18+
"no-implied-eval": 2,
19+
"no-labels": 2,
20+
"no-with": 2,
21+
"no-loop-func": 1,
22+
"no-native-reassign": 2,
23+
"no-redeclare": [2, {"builtinGlobals": true}],
24+
"no-delete-var": 2,
25+
"no-shadow-restricted-names": 2,
26+
"no-undef-init": 2,
27+
"no-use-before-define": 2,
28+
"no-unused-vars": [2, {"args": "none"}],
29+
"no-undef": 2,
30+
"callback-return": [2, ["callback", "cb", "next"]],
31+
"global-require": 0,
32+
"no-console": 0,
33+
"generator-star-spacing": ["error", "after"],
34+
"require-yield": 0
35+
},
36+
"env": {
37+
"es6": true,
38+
"node": true,
39+
"browser": true
40+
},
41+
"globals": {
42+
"describe": true,
43+
"it": true,
44+
"before": true,
45+
"after": true
46+
},
47+
"extends": "eslint:recommended"
48+
}

.jshintrc

-39
This file was deleted.

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,17 @@ QQ群:157964097,使用疑问,开发,贡献代码请加群。
198198
$ git summary
199199
200200
project : wechat-oauth
201-
repo age : 2 years
202-
active : 12 days
203-
commits : 25
201+
repo age : 2 years, 2 months
202+
active : 13 days
203+
commits : 29
204204
files : 11
205205
authors :
206-
21 Jackson Tian 84.0%
207-
1 Kainy Guo 4.0%
208-
1 Teng Fei 4.0%
209-
1 welch 4.0%
210-
1 wzw 4.0%
206+
24 Jackson Tian 82.8%
207+
1 Kainy Guo 3.4%
208+
1 Teng Fei 3.4%
209+
1 cherry-geqi 3.4%
210+
1 welch 3.4%
211+
1 wzw 3.4%
211212
212213
```
213214

lib/oauth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var OAuth = function (appid, appsecret, getToken, saveToken) {
6969
callback(null, this.store[openid]);
7070
};
7171
if (!saveToken && process.env.NODE_ENV === 'production') {
72-
console.warn("Please dont save oauth token into memory under production");
72+
console.warn('Please dont save oauth token into memory under production');
7373
}
7474
this.saveToken = saveToken || function (openid, token, callback) {
7575
this.store[openid] = token;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wechat-oauth",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "微信公共平台OAuth",
55
"main": "lib/oauth.js",
66
"scripts": {

0 commit comments

Comments
 (0)