hexo-swpp 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -237,7 +237,7 @@ const fetchFile = link => new Promise((resolve, reject) => {
237
237
  referer: new URL(link).hostname,
238
238
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.62'
239
239
  },
240
- timeout: 1500
240
+ timeout: pluginConfig.timeout ?? 1500
241
241
  }).then(response => {
242
242
  switch (response.status) {
243
243
  case 200: case 301: case 302:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-swpp",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "hexo-log": "^3.0.0",