@waline/vercel 1.19.0 → 1.19.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waline/vercel",
3
- "version": "1.19.0",
3
+ "version": "1.19.1",
4
4
  "description": "vercel server for waline comment system",
5
5
  "keywords": [
6
6
  "waline",
@@ -32,6 +32,7 @@
32
32
  "markdown-it-sub": "1.0.0",
33
33
  "markdown-it-sup": "1.0.0",
34
34
  "mathjax-full": "3.2.2",
35
+ "node-fetch": "2",
35
36
  "nodemailer": "6.7.7",
36
37
  "nunjucks": "3.2.3",
37
38
  "phpass": "0.1.1",
@@ -46,8 +47,7 @@
46
47
  "think-mongo": "2.2.1",
47
48
  "think-router-rest": "1.0.5",
48
49
  "thinkjs": "3.2.14",
49
- "ua-parser-js": "1.0.2",
50
- "undici": "^5.8.0"
50
+ "ua-parser-js": "1.0.2"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=14"
@@ -1,4 +1,4 @@
1
- const { fetch } = require('undici');
1
+ const fetch = require('node-fetch');
2
2
  const Model = require('think-model');
3
3
  const Mongo = require('think-mongo');
4
4
 
@@ -1,5 +1,5 @@
1
1
  const jwt = require('jsonwebtoken');
2
- const { fetch } = require('undici');
2
+ const fetch = require('node-fetch');
3
3
  const { PasswordHash } = require('phpass');
4
4
  const qs = require('querystring');
5
5
 
@@ -1,6 +1,6 @@
1
1
  const FormData = require('form-data');
2
2
  const nodemailer = require('nodemailer');
3
- const { fetch } = require('undici');
3
+ const fetch = require('node-fetch');
4
4
  const nunjucks = require('nunjucks');
5
5
 
6
6
  module.exports = class extends think.Service {
@@ -1,5 +1,5 @@
1
1
  const { parseString, writeToString } = require('fast-csv');
2
- const { fetch } = require('undici');
2
+ const fetch = require('node-fetch');
3
3
  const path = require('path');
4
4
  const Base = require('./base');
5
5