diff --git a/docs/install/README.md b/docs/install/README.md index d4725991a8..8ba4d8cc27 100644 --- a/docs/install/README.md +++ b/docs/install/README.md @@ -291,19 +291,19 @@ env: flex # for production use. For more information, see: # https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml manual_scaling: - instances: 1 + instances: 1 # 以下是 app engine 资源配置,可以自行修改,硬盘最低为 10G resources: - cpu: 1 - memory_gb: 0.5 - disk_size_gb: 10 + cpu: 1 + memory_gb: 0.5 + disk_size_gb: 10 network: - forwarded_ports: - - 80:1200 - - 443:1200 + forwarded_ports: + - 80:1200 + - 443:1200 # 以下是环境配置示例,具体可配置项见本文档配置章节 env_variables: - CACHE_EXPIRE: "300" + CACHE_EXPIRE: '300' # [END app_yaml] ``` @@ -316,12 +316,12 @@ env_variables: runtime: nodejs8 network: - forwarded_ports: - - 80:1200 - - 443:1200 + forwarded_ports: + - 80:1200 + - 443:1200 # 以下是环境配置示例,具体可配置项见本文档配置章节 env_variables: - CACHE_EXPIRE: "300" + CACHE_EXPIRE: '300' # [END app_yaml] ``` diff --git a/docs/joinus/README.md b/docs/joinus/README.md index 7ad3ebb6c4..bf043e9d3c 100644 --- a/docs/joinus/README.md +++ b/docs/joinus/README.md @@ -39,7 +39,7 @@ ctx.cache.set((key: string), (value: string), (time: number)); // time 为缓存 获取缓存: ```js -const value = await ctx.cache.get(key: string); +const value = await ctx.cache.get((key: string)); ``` 可以直接看这个典型的例子:[/routes/zhihu/daily.js](https://github.com/DIYgod/RSSHub/blob/master/routes/zhihu/daily.js),这个例子中需要获取每篇文章的详细内容,每篇文章都需要单独请求一次,请求很多而且每个请求只需要一次,这时候可以把结果缓存一天。 diff --git a/package.json b/package.json index 19de87bb8c..8be2cd6cfb 100644 --- a/package.json +++ b/package.json @@ -27,14 +27,14 @@ }, "homepage": "https://github.com/DIYgod/RSSHub#readme", "devDependencies": { - "eslint": "5.2.0", + "eslint": "5.3.0", "eslint-config-prettier": "^2.9.0", "eslint-plugin-prettier": "^2.6.2", - "lint-staged": "^7.2.0", - "prettier": "^1.13.7", + "lint-staged": "^7.2.2", + "prettier": "^1.14.2", "prettier-check": "^2.0.0", - "vuepress": "0.13.0", - "yorkie": "^1.0.3" + "vuepress": "0.14.1", + "yorkie": "^2.0.0" }, "dependencies": { "art-template": "4.12.2", diff --git a/yarn.lock b/yarn.lock index af56f03e34..2bd48d6a3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2620,9 +2620,9 @@ eslint-visitor-keys@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" -eslint@5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.2.0.tgz#3901ae249195d473e633c4acbc370068b1c964dc" +eslint@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.3.0.tgz#53695aca5213968aacdf970ccb231e42a2b285f8" dependencies: ajv "^6.5.0" babel-code-frame "^6.26.0" @@ -2655,7 +2655,7 @@ eslint@5.2.0: path-is-inside "^1.0.2" pluralize "^7.0.0" progress "^2.0.0" - regexpp "^1.1.0" + regexpp "^2.0.0" require-uncached "^1.0.3" semver "^5.5.0" string.prototype.matchall "^2.0.0" @@ -3941,14 +3941,14 @@ jest-get-type@^22.1.0: version "22.4.3" resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" -jest-validate@^23.0.0: - version "23.0.1" - resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-23.0.1.tgz#cd9f01a89d26bb885f12a8667715e9c865a5754f" +jest-validate@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.5.0.tgz#f5df8f761cf43155e1b2e21d6e9de8a2852d0231" dependencies: chalk "^2.0.1" jest-get-type "^22.1.0" leven "^2.1.0" - pretty-format "^23.0.1" + pretty-format "^23.5.0" joi@^11.1.1: version "11.4.0" @@ -4267,11 +4267,10 @@ linkify-it@^2.0.0: dependencies: uc.micro "^1.0.1" -lint-staged@^7.2.0: - version "7.2.0" - resolved "https://registry.npmjs.org/lint-staged/-/lint-staged-7.2.0.tgz#bdf4bb7f2f37fe689acfaec9999db288a5b26888" +lint-staged@^7.2.2: + version "7.2.2" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-7.2.2.tgz#0983d55d497f19f36d11ff2c8242b2f56cc2dd05" dependencies: - app-root-path "^2.0.1" chalk "^2.3.1" commander "^2.14.1" cosmiconfig "^5.0.2" @@ -4281,7 +4280,7 @@ lint-staged@^7.2.0: find-parent-dir "^0.3.0" is-glob "^4.0.0" is-windows "^1.0.2" - jest-validate "^23.0.0" + jest-validate "^23.5.0" listr "^0.14.1" lodash "^4.17.5" log-symbols "^2.2.0" @@ -5695,9 +5694,9 @@ prettier@^1.11.1: version "1.13.2" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.2.tgz#412b87bc561cb11074d2877a33a38f78c2303cda" -prettier@^1.13.7: - version "1.13.7" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.7.tgz#850f3b8af784a49a6ea2d2eaa7ed1428a34b7281" +prettier@^1.14.2: + version "1.14.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.14.2.tgz#0ac1c6e1a90baa22a62925f41963c841983282f9" pretty-bytes@^4.0.2: version "4.0.2" @@ -5710,9 +5709,9 @@ pretty-error@^2.0.2: renderkid "^2.0.1" utila "~0.4" -pretty-format@^23.0.1: - version "23.0.1" - resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-23.0.1.tgz#d61d065268e4c759083bccbca27a01ad7c7601f4" +pretty-format@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.5.0.tgz#0f9601ad9da70fe690a269cd3efca732c210687c" dependencies: ansi-regex "^3.0.0" ansi-styles "^3.2.0" @@ -5999,9 +5998,9 @@ regexp.prototype.flags@^1.2.0: dependencies: define-properties "^1.1.2" -regexpp@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-1.1.0.tgz#0e3516dd0b7904f413d2d4193dce4618c3a689ab" +regexpp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.0.tgz#b2a7534a85ca1b033bcf5ce9ff8e56d4e0755365" regexpu-core@^1.0.0: version "1.0.0" @@ -7196,9 +7195,9 @@ vuepress-html-webpack-plugin@^3.2.0: toposort "^1.0.0" util.promisify "1.0.0" -vuepress@0.13.0: - version "0.13.0" - resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-0.13.0.tgz#7959feeb8c4bbd1cd96238383566182419576d5d" +vuepress@0.14.1: + version "0.14.1" + resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-0.14.1.tgz#4b3fc46601ce2fd8ff2265a2e39098b9f9580c58" dependencies: "@babel/core" "7.0.0-beta.47" "@vue/babel-preset-app" "3.0.0-beta.11" @@ -7623,9 +7622,9 @@ ylru@^1.2.0: version "1.2.1" resolved "https://registry.yarnpkg.com/ylru/-/ylru-1.2.1.tgz#f576b63341547989c1de7ba288760923b27fe84f" -yorkie@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/yorkie/-/yorkie-1.0.3.tgz#5c05db48c012def99c29b79685b6ba2e40c8c671" +yorkie@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/yorkie/-/yorkie-2.0.0.tgz#92411912d435214e12c51c2ae1093e54b6bb83d9" dependencies: execa "^0.8.0" is-ci "^1.0.10"