mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
refactor: remove the dependence of npm package 'js-md5'
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
"crypto": "1.0.1",
|
||||
"eslint": "4.19.1",
|
||||
"form-data": "^2.3.2",
|
||||
"js-md5": "^0.7.3",
|
||||
"json-bigint": "0.2.3",
|
||||
"koa": "2.5.0",
|
||||
"koa-redis-cache": "3.0.0",
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
const axios = require('axios');
|
||||
const template = require('../../utils/template');
|
||||
const config = require('../../config');
|
||||
const md5 = require('js-md5');
|
||||
const md5 = require('../../utils/md5');
|
||||
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const projectID = ctx.params.project;
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
const crypto = require('crypto');
|
||||
|
||||
module.exports = function md5(date) {
|
||||
return crypto.createHash('md5').update(date).digest("hex");
|
||||
}
|
||||
Reference in New Issue
Block a user