Authored by 陈峰

qiniu

  1 +/**
  2 + * 七牛上传
  3 + * @author: chenfeng <feng.chen@yoho.cn>
  4 + * @date: 29/06/2017
  5 + */
  6 +const qiniu = require('qiniu');
  7 +const qiniuConfig = global.yoho.config.qiniu;
  8 +
  9 +function getToken(req, res) {
  10 + let mac = new qiniu.auth.digest.Mac(qiniuConfig.ACCESS_KEY, qiniuConfig.SECRET_KEY);
  11 + let options = {
  12 + scope: qiniuConfig.BUCKET_NAME,
  13 + };
  14 + let putPolicy = new qiniu.rs.PutPolicy(options);
  15 + let uploadToken = putPolicy.uploadToken(mac);
  16 +
  17 + res.json({
  18 + code: 200,
  19 + uptoken: uploadToken
  20 + });
  21 +}
  22 +
  23 +module.exports = {
  24 + getToken
  25 +};
  1 +/**
  2 + * api
  3 + * @author: chenfeng <feng.chen@yoho.cn>
  4 + * @date: 29/06/2017
  5 + */
  6 +const express = require('express');
  7 +const app = express();
  8 +
  9 +app.use(require('./router'));
  10 +
  11 +module.exports = app;
  1 +/**
  2 + * api router
  3 + * @author: chenfeng <feng.chen@yoho.cn>
  4 + * @date: 29/06/2017
  5 + */
  6 +const express = require('express');
  7 +const router = express.Router(); // eslint-disable-line
  8 +const qiniu = require('./controllers/qiniu');
  9 +
  10 +router.get('/gettoken', qiniu.getToken);
  11 +
  12 +module.exports = router;
@@ -78,26 +78,6 @@ module.exports = { @@ -78,26 +78,6 @@ module.exports = {
78 } 78 }
79 }, 79 },
80 zookeeperServer: '127.0.0.1:2181', 80 zookeeperServer: '127.0.0.1:2181',
81 - alipayConfig: {  
82 - payUrl: 'https://mapi.alipay.com/gateway.do',  
83 - service: 'alipay.wap.create.direct.pay.by.user',  
84 - partner: '2088701661478015',  
85 - inputCharset: 'utf-8',  
86 - notifyUrl: domains.service + 'payment/alipay_notify',  
87 - returnUrl: '/shopping/pay/aliwapreturn',  
88 - signType: 'MD5',  
89 - paymentType: '1',  
90 - alipayKey: 'kcxawi9bb07mzh0aq2wcirsf9znusobw',  
91 - sellerMail: 'zfb@yoho.cn',  
92 - merchantUrl: 'http://m.yohobuy.com/home/orderDetail?order_code='  
93 - },  
94 - WxPayConfig: {  
95 - appId: 'wx75e5a7c0c88e45c2',  
96 - mchId: '1227694201',  
97 - key: '7e6f3307b64cc87c79c472814b88f7fb',  
98 - appSecret: 'ce21ae4a3f93852279175a167e54509b',  
99 - notifyUrl: domains.service + 'payment/weixin_notify',  
100 - },  
101 maxQps: 1200, 81 maxQps: 1200,
102 geetestJs: '//static.geetest.com/static/tools/gt.js', 82 geetestJs: '//static.geetest.com/static/tools/gt.js',
103 jsSdk: '//cdn.yoho.cn/js-sdk/1.2.2/jssdk.js', 83 jsSdk: '//cdn.yoho.cn/js-sdk/1.2.2/jssdk.js',
@@ -128,6 +108,11 @@ module.exports = { @@ -128,6 +108,11 @@ module.exports = {
128 password: '' 108 password: ''
129 }, 109 },
130 database: 'yoho_activity_platform', 110 database: 'yoho_activity_platform',
  111 + },
  112 + qiniu: {
  113 + ACCESS_KEY: 'BwWhoJN536BnV3CzlE20AjNKC9O2bP0l5tFpKsDU',
  114 + SECRET_KEY: '_x2VtO7fEmylgjojmLi7qwTBtRm30S8BrO0FxOPK',
  115 + BUCKET_NAME: 'cmsimg01'
131 } 116 }
132 }; 117 };
133 118
@@ -3,10 +3,14 @@ @@ -3,10 +3,14 @@
3 * @author: Leo <qi.li@yoho.cn> 3 * @author: Leo <qi.li@yoho.cn>
4 * @date: 2017/6/23 4 * @date: 2017/6/23
5 */ 5 */
  6 +const api = require('./apps/api');
6 const article = require('./apps/article'); 7 const article = require('./apps/article');
7 const passport = require('./apps/passport'); 8 const passport = require('./apps/passport');
8 9
9 module.exports = app => { 10 module.exports = app => {
  11 + // api
  12 + app.use('/api', api);
  13 +
10 // 验证 14 // 验证
11 app.use('/passport', passport); 15 app.use('/passport', passport);
12 16
@@ -55,6 +55,7 @@ @@ -55,6 +55,7 @@
55 "passport-sina": "^0.1.0", 55 "passport-sina": "^0.1.0",
56 "passport-strategy": "^1.0.0", 56 "passport-strategy": "^1.0.0",
57 "passport-weixin": "^0.1.0", 57 "passport-weixin": "^0.1.0",
  58 + "qiniu": "^7.0.4",
58 "redis": "^2.7.1", 59 "redis": "^2.7.1",
59 "request": "^2.81.0", 60 "request": "^2.81.0",
60 "request-promise": "^4.2.1", 61 "request-promise": "^4.2.1",
@@ -55,6 +55,10 @@ acorn@^5.0.0, acorn@^5.0.1: @@ -55,6 +55,10 @@ acorn@^5.0.0, acorn@^5.0.1:
55 version "5.0.3" 55 version "5.0.3"
56 resolved "http://npm.yoho.cn/acorn/-/acorn-5.0.3.tgz#c460df08491463f028ccb82eab3730bf01087b3d" 56 resolved "http://npm.yoho.cn/acorn/-/acorn-5.0.3.tgz#c460df08491463f028ccb82eab3730bf01087b3d"
57 57
  58 +address@>=0.0.1:
  59 + version "1.0.2"
  60 + resolved "http://npm.yoho.cn/address/-/address-1.0.2.tgz#480081e82b587ba319459fef512f516fe03d58af"
  61 +
58 agent-base@2: 62 agent-base@2:
59 version "2.1.1" 63 version "2.1.1"
60 resolved "http://npm.yoho.cn/agent-base/-/agent-base-2.1.1.tgz#d6de10d5af6132d5bd692427d46fc538539094c7" 64 resolved "http://npm.yoho.cn/agent-base/-/agent-base-2.1.1.tgz#d6de10d5af6132d5bd692427d46fc538539094c7"
@@ -62,7 +66,7 @@ agent-base@2: @@ -62,7 +66,7 @@ agent-base@2:
62 extend "~3.0.0" 66 extend "~3.0.0"
63 semver "~5.0.1" 67 semver "~5.0.1"
64 68
65 -agentkeepalive@^3.1.0: 69 +agentkeepalive@3.3.0, agentkeepalive@^3.1.0:
66 version "3.3.0" 70 version "3.3.0"
67 resolved "http://npm.yoho.cn/agentkeepalive/-/agentkeepalive-3.3.0.tgz#6d5de5829afd3be2712201a39275fd11c651857c" 71 resolved "http://npm.yoho.cn/agentkeepalive/-/agentkeepalive-3.3.0.tgz#6d5de5829afd3be2712201a39275fd11c651857c"
68 dependencies: 72 dependencies:
@@ -138,6 +142,10 @@ ansistyles@~0.1.3: @@ -138,6 +142,10 @@ ansistyles@~0.1.3:
138 version "0.1.3" 142 version "0.1.3"
139 resolved "http://npm.yoho.cn/ansistyles/-/ansistyles-0.1.3.tgz#5de60415bda071bb37127854c864f41b23254539" 143 resolved "http://npm.yoho.cn/ansistyles/-/ansistyles-0.1.3.tgz#5de60415bda071bb37127854c864f41b23254539"
140 144
  145 +any-promise@^1.3.0:
  146 + version "1.3.0"
  147 + resolved "http://npm.yoho.cn/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f"
  148 +
141 any-promise@~0.1.0: 149 any-promise@~0.1.0:
142 version "0.1.0" 150 version "0.1.0"
143 resolved "http://npm.yoho.cn/any-promise/-/any-promise-0.1.0.tgz#830b680aa7e56f33451d4b049f3bd8044498ee27" 151 resolved "http://npm.yoho.cn/any-promise/-/any-promise-0.1.0.tgz#830b680aa7e56f33451d4b049f3bd8044498ee27"
@@ -1536,7 +1544,7 @@ content-disposition@0.5.2: @@ -1536,7 +1544,7 @@ content-disposition@0.5.2:
1536 version "0.5.2" 1544 version "0.5.2"
1537 resolved "http://npm.yoho.cn/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" 1545 resolved "http://npm.yoho.cn/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4"
1538 1546
1539 -content-type@~1.0.2: 1547 +content-type@^1.0.2, content-type@~1.0.2:
1540 version "1.0.2" 1548 version "1.0.2"
1541 resolved "http://npm.yoho.cn/content-type/-/content-type-1.0.2.tgz#b7d113aee7a8dd27bd21133c4dc2529df1721eed" 1549 resolved "http://npm.yoho.cn/content-type/-/content-type-1.0.2.tgz#b7d113aee7a8dd27bd21133c4dc2529df1721eed"
1542 1550
@@ -1603,6 +1611,10 @@ cosmiconfig@^2.1.0, cosmiconfig@^2.1.1: @@ -1603,6 +1611,10 @@ cosmiconfig@^2.1.0, cosmiconfig@^2.1.1:
1603 parse-json "^2.2.0" 1611 parse-json "^2.2.0"
1604 require-from-string "^1.1.0" 1612 require-from-string "^1.1.0"
1605 1613
  1614 +crc32@0.2.2:
  1615 + version "0.2.2"
  1616 + resolved "http://npm.yoho.cn/crc32/-/crc32-0.2.2.tgz#7ad220d6ffdcd119f9fc127a7772cacea390a4ba"
  1617 +
1606 crc@3.4.0: 1618 crc@3.4.0:
1607 version "3.4.0" 1619 version "3.4.0"
1608 resolved "http://npm.yoho.cn/crc/-/crc-3.4.0.tgz#4258e351613a74ef1153dfcb05e820c3e9715d7f" 1620 resolved "http://npm.yoho.cn/crc/-/crc-3.4.0.tgz#4258e351613a74ef1153dfcb05e820c3e9715d7f"
@@ -1938,6 +1950,12 @@ deep-is@~0.1.3: @@ -1938,6 +1950,12 @@ deep-is@~0.1.3:
1938 version "0.1.3" 1950 version "0.1.3"
1939 resolved "http://npm.yoho.cn/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 1951 resolved "http://npm.yoho.cn/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
1940 1952
  1953 +default-user-agent@^1.0.0:
  1954 + version "1.0.0"
  1955 + resolved "http://npm.yoho.cn/default-user-agent/-/default-user-agent-1.0.0.tgz#16c46efdcaba3edc45f24f2bd4868b01b7c2adc6"
  1956 + dependencies:
  1957 + os-name "~1.0.3"
  1958 +
1941 defaults@^1.0.3: 1959 defaults@^1.0.3:
1942 version "1.0.3" 1960 version "1.0.3"
1943 resolved "http://npm.yoho.cn/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" 1961 resolved "http://npm.yoho.cn/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d"
@@ -1990,7 +2008,7 @@ des.js@^1.0.0: @@ -1990,7 +2008,7 @@ des.js@^1.0.0:
1990 inherits "^2.0.1" 2008 inherits "^2.0.1"
1991 minimalistic-assert "^1.0.0" 2009 minimalistic-assert "^1.0.0"
1992 2010
1993 -destroy@~1.0.4: 2011 +destroy@^1.0.4, destroy@~1.0.4:
1994 version "1.0.4" 2012 version "1.0.4"
1995 resolved "http://npm.yoho.cn/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" 2013 resolved "http://npm.yoho.cn/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"
1996 2014
@@ -2023,6 +2041,12 @@ diffie-hellman@^5.0.0: @@ -2023,6 +2041,12 @@ diffie-hellman@^5.0.0:
2023 miller-rabin "^4.0.0" 2041 miller-rabin "^4.0.0"
2024 randombytes "^2.0.0" 2042 randombytes "^2.0.0"
2025 2043
  2044 +digest-header@^0.0.1:
  2045 + version "0.0.1"
  2046 + resolved "http://npm.yoho.cn/digest-header/-/digest-header-0.0.1.tgz#11ccf6deec5766ac379744d901c12cba49514be6"
  2047 + dependencies:
  2048 + utility "0.1.11"
  2049 +
2026 dns-equal@^1.0.0: 2050 dns-equal@^1.0.0:
2027 version "1.0.0" 2051 version "1.0.0"
2028 resolved "http://npm.yoho.cn/dns-equal/-/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d" 2052 resolved "http://npm.yoho.cn/dns-equal/-/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d"
@@ -2148,7 +2172,7 @@ editorconfig@^0.13.2: @@ -2148,7 +2172,7 @@ editorconfig@^0.13.2:
2148 lru-cache "^3.2.0" 2172 lru-cache "^3.2.0"
2149 sigmund "^1.0.1" 2173 sigmund "^1.0.1"
2150 2174
2151 -ee-first@1.1.1: 2175 +ee-first@1.1.1, ee-first@~1.1.1:
2152 version "1.1.1" 2176 version "1.1.1"
2153 resolved "http://npm.yoho.cn/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" 2177 resolved "http://npm.yoho.cn/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
2154 2178
@@ -2772,6 +2796,14 @@ form-data@~2.1.1: @@ -2772,6 +2796,14 @@ form-data@~2.1.1:
2772 combined-stream "^1.0.5" 2796 combined-stream "^1.0.5"
2773 mime-types "^2.1.12" 2797 mime-types "^2.1.12"
2774 2798
  2799 +formstream@1.1.0:
  2800 + version "1.1.0"
  2801 + resolved "http://npm.yoho.cn/formstream/-/formstream-1.1.0.tgz#51f3970f26136eb0ad44304de4cebb50207b4479"
  2802 + dependencies:
  2803 + destroy "^1.0.4"
  2804 + mime "^1.3.4"
  2805 + pause-stream "~0.0.11"
  2806 +
2775 forwarded@~0.1.0: 2807 forwarded@~0.1.0:
2776 version "0.1.0" 2808 version "0.1.0"
2777 resolved "http://npm.yoho.cn/forwarded/-/forwarded-0.1.0.tgz#19ef9874c4ae1c297bcf078fde63a09b66a84363" 2809 resolved "http://npm.yoho.cn/forwarded/-/forwarded-0.1.0.tgz#19ef9874c4ae1c297bcf078fde63a09b66a84363"
@@ -3335,7 +3367,7 @@ https-proxy-agent@^1.0.0: @@ -3335,7 +3367,7 @@ https-proxy-agent@^1.0.0:
3335 debug "2" 3367 debug "2"
3336 extend "3" 3368 extend "3"
3337 3369
3338 -humanize-ms@^1.2.1: 3370 +humanize-ms@^1.2.0, humanize-ms@^1.2.1:
3339 version "1.2.1" 3371 version "1.2.1"
3340 resolved "http://npm.yoho.cn/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed" 3372 resolved "http://npm.yoho.cn/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed"
3341 dependencies: 3373 dependencies:
@@ -3350,7 +3382,7 @@ husky@^0.13.4: @@ -3350,7 +3382,7 @@ husky@^0.13.4:
3350 is-ci "^1.0.9" 3382 is-ci "^1.0.9"
3351 normalize-path "^1.0.0" 3383 normalize-path "^1.0.0"
3352 3384
3353 -iconv-lite@0.4.15, iconv-lite@~0.4.13: 3385 +iconv-lite@0.4.15, iconv-lite@^0.4.15, iconv-lite@~0.4.11, iconv-lite@~0.4.13:
3354 version "0.4.15" 3386 version "0.4.15"
3355 resolved "http://npm.yoho.cn/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb" 3387 resolved "http://npm.yoho.cn/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb"
3356 3388
@@ -4404,6 +4436,10 @@ mime@1.3.4, mime@^1.3.4: @@ -4404,6 +4436,10 @@ mime@1.3.4, mime@^1.3.4:
4404 version "1.3.4" 4436 version "1.3.4"
4405 resolved "http://npm.yoho.cn/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" 4437 resolved "http://npm.yoho.cn/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53"
4406 4438
  4439 +mime@1.3.6:
  4440 + version "1.3.6"
  4441 + resolved "http://npm.yoho.cn/mime/-/mime-1.3.6.tgz#591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0"
  4442 +
4407 mimic-fn@^1.0.0: 4443 mimic-fn@^1.0.0:
4408 version "1.1.0" 4444 version "1.1.0"
4409 resolved "http://npm.yoho.cn/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18" 4445 resolved "http://npm.yoho.cn/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18"
@@ -5040,6 +5076,13 @@ os-locale@^2.0.0: @@ -5040,6 +5076,13 @@ os-locale@^2.0.0:
5040 lcid "^1.0.0" 5076 lcid "^1.0.0"
5041 mem "^1.1.0" 5077 mem "^1.1.0"
5042 5078
  5079 +os-name@~1.0.3:
  5080 + version "1.0.3"
  5081 + resolved "http://npm.yoho.cn/os-name/-/os-name-1.0.3.tgz#1b379f64835af7c5a7f498b357cb95215c159edf"
  5082 + dependencies:
  5083 + osx-release "^1.0.0"
  5084 + win-release "^1.0.0"
  5085 +
5043 os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: 5086 os-tmpdir@^1.0.0, os-tmpdir@^1.0.1:
5044 version "1.0.2" 5087 version "1.0.2"
5045 resolved "http://npm.yoho.cn/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 5088 resolved "http://npm.yoho.cn/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
@@ -5051,6 +5094,12 @@ osenv@0, osenv@^0.1.0, osenv@^0.1.4, osenv@~0.1.4: @@ -5051,6 +5094,12 @@ osenv@0, osenv@^0.1.0, osenv@^0.1.4, osenv@~0.1.4:
5051 os-homedir "^1.0.0" 5094 os-homedir "^1.0.0"
5052 os-tmpdir "^1.0.0" 5095 os-tmpdir "^1.0.0"
5053 5096
  5097 +osx-release@^1.0.0:
  5098 + version "1.1.0"
  5099 + resolved "http://npm.yoho.cn/osx-release/-/osx-release-1.1.0.tgz#f217911a28136949af1bf9308b241e2737d3cd6c"
  5100 + dependencies:
  5101 + minimist "^1.1.0"
  5102 +
5054 p-finally@^1.0.0: 5103 p-finally@^1.0.0:
5055 version "1.0.0" 5104 version "1.0.0"
5056 resolved "http://npm.yoho.cn/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 5105 resolved "http://npm.yoho.cn/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
@@ -5270,7 +5319,7 @@ path-type@^2.0.0: @@ -5270,7 +5319,7 @@ path-type@^2.0.0:
5270 dependencies: 5319 dependencies:
5271 pify "^2.0.0" 5320 pify "^2.0.0"
5272 5321
5273 -pause-stream@0.0.11: 5322 +pause-stream@0.0.11, pause-stream@~0.0.11:
5274 version "0.0.11" 5323 version "0.0.11"
5275 resolved "http://npm.yoho.cn/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445" 5324 resolved "http://npm.yoho.cn/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445"
5276 dependencies: 5325 dependencies:
@@ -6144,7 +6193,19 @@ q@^1.1.2: @@ -6144,7 +6193,19 @@ q@^1.1.2:
6144 version "1.5.0" 6193 version "1.5.0"
6145 resolved "http://npm.yoho.cn/q/-/q-1.5.0.tgz#dd01bac9d06d30e6f219aecb8253ee9ebdc308f1" 6194 resolved "http://npm.yoho.cn/q/-/q-1.5.0.tgz#dd01bac9d06d30e6f219aecb8253ee9ebdc308f1"
6146 6195
6147 -qs@6.4.0, qs@~6.4.0: 6196 +qiniu@^7.0.4:
  6197 + version "7.0.4"
  6198 + resolved "http://npm.yoho.cn/qiniu/-/qiniu-7.0.4.tgz#f740af64d1794f732bbc21edd36591136d503e62"
  6199 + dependencies:
  6200 + agentkeepalive "3.3.0"
  6201 + crc32 "0.2.2"
  6202 + formstream "1.1.0"
  6203 + mime "1.3.6"
  6204 + tunnel-agent "0.6.0"
  6205 + urlencode "1.1.0"
  6206 + urllib "2.22.0"
  6207 +
  6208 +qs@6.4.0, qs@^6.4.0, qs@~6.4.0:
6148 version "6.4.0" 6209 version "6.4.0"
6149 resolved "http://npm.yoho.cn/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" 6210 resolved "http://npm.yoho.cn/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"
6150 6211
@@ -6755,7 +6816,7 @@ semver-diff@^2.0.0: @@ -6755,7 +6816,7 @@ semver-diff@^2.0.0:
6755 dependencies: 6816 dependencies:
6756 semver "^5.0.3" 6817 semver "^5.0.3"
6757 6818
6758 -"semver@2 >=2.2.1 || 3.x || 4 || 5", "semver@2 || 3 || 4 || 5", "semver@2.x || 3.x || 4 || 5", "semver@^2.3.0 || 3.x || 4 || 5", semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@~5.3.0: 6819 +"semver@2 >=2.2.1 || 3.x || 4 || 5", "semver@2 || 3 || 4 || 5", "semver@2.x || 3.x || 4 || 5", "semver@^2.3.0 || 3.x || 4 || 5", semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@~5.3.0:
6759 version "5.3.0" 6820 version "5.3.0"
6760 resolved "http://npm.yoho.cn/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" 6821 resolved "http://npm.yoho.cn/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
6761 6822
@@ -7089,7 +7150,7 @@ static-module@^1.0.0: @@ -7089,7 +7150,7 @@ static-module@^1.0.0:
7089 static-eval "~0.2.0" 7150 static-eval "~0.2.0"
7090 through2 "~0.4.1" 7151 through2 "~0.4.1"
7091 7152
7092 -"statuses@>= 1.3.1 < 2", statuses@~1.3.1: 7153 +"statuses@>= 1.3.1 < 2", statuses@^1.3.1, statuses@~1.3.1:
7093 version "1.3.1" 7154 version "1.3.1"
7094 resolved "http://npm.yoho.cn/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" 7155 resolved "http://npm.yoho.cn/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e"
7095 7156
@@ -7562,7 +7623,7 @@ tty-browserify@0.0.0: @@ -7562,7 +7623,7 @@ tty-browserify@0.0.0:
7562 version "0.0.0" 7623 version "0.0.0"
7563 resolved "http://npm.yoho.cn/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" 7624 resolved "http://npm.yoho.cn/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"
7564 7625
7565 -tunnel-agent@^0.6.0: 7626 +tunnel-agent@0.6.0, tunnel-agent@^0.6.0:
7566 version "0.6.0" 7627 version "0.6.0"
7567 resolved "http://npm.yoho.cn/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 7628 resolved "http://npm.yoho.cn/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
7568 dependencies: 7629 dependencies:
@@ -7732,6 +7793,27 @@ url@^0.11.0: @@ -7732,6 +7793,27 @@ url@^0.11.0:
7732 punycode "1.3.2" 7793 punycode "1.3.2"
7733 querystring "0.2.0" 7794 querystring "0.2.0"
7734 7795
  7796 +urlencode@1.1.0:
  7797 + version "1.1.0"
  7798 + resolved "http://npm.yoho.cn/urlencode/-/urlencode-1.1.0.tgz#1f2ba26f013c85f0133f7a3ad6ff2730adf7cbb7"
  7799 + dependencies:
  7800 + iconv-lite "~0.4.11"
  7801 +
  7802 +urllib@2.22.0:
  7803 + version "2.22.0"
  7804 + resolved "http://npm.yoho.cn/urllib/-/urllib-2.22.0.tgz#2965dc4ae127a6fb695b7db27d3184f17d82cb42"
  7805 + dependencies:
  7806 + any-promise "^1.3.0"
  7807 + content-type "^1.0.2"
  7808 + debug "^2.6.0"
  7809 + default-user-agent "^1.0.0"
  7810 + digest-header "^0.0.1"
  7811 + ee-first "~1.1.1"
  7812 + humanize-ms "^1.2.0"
  7813 + iconv-lite "^0.4.15"
  7814 + qs "^6.4.0"
  7815 + statuses "^1.3.1"
  7816 +
7735 user-home@^2.0.0: 7817 user-home@^2.0.0:
7736 version "2.0.0" 7818 version "2.0.0"
7737 resolved "http://npm.yoho.cn/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" 7819 resolved "http://npm.yoho.cn/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f"
@@ -7752,6 +7834,12 @@ util@0.10.3, util@^0.10.3: @@ -7752,6 +7834,12 @@ util@0.10.3, util@^0.10.3:
7752 dependencies: 7834 dependencies:
7753 inherits "2.0.1" 7835 inherits "2.0.1"
7754 7836
  7837 +utility@0.1.11:
  7838 + version "0.1.11"
  7839 + resolved "http://npm.yoho.cn/utility/-/utility-0.1.11.tgz#fde60cf9b4e4751947a0cf5d104ce29367226715"
  7840 + dependencies:
  7841 + address ">=0.0.1"
  7842 +
7755 utils-merge@1.0.0, utils-merge@1.x.x: 7843 utils-merge@1.0.0, utils-merge@1.x.x:
7756 version "1.0.0" 7844 version "1.0.0"
7757 resolved "http://npm.yoho.cn/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8" 7845 resolved "http://npm.yoho.cn/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8"
@@ -8029,6 +8117,12 @@ widest-line@^1.0.0: @@ -8029,6 +8117,12 @@ widest-line@^1.0.0:
8029 dependencies: 8117 dependencies:
8030 string-width "^1.0.1" 8118 string-width "^1.0.1"
8031 8119
  8120 +win-release@^1.0.0:
  8121 + version "1.1.1"
  8122 + resolved "http://npm.yoho.cn/win-release/-/win-release-1.1.1.tgz#5fa55e02be7ca934edfc12665632e849b72e5209"
  8123 + dependencies:
  8124 + semver "^5.0.1"
  8125 +
8032 window-size@0.1.0: 8126 window-size@0.1.0:
8033 version "0.1.0" 8127 version "0.1.0"
8034 resolved "http://npm.yoho.cn/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" 8128 resolved "http://npm.yoho.cn/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"