mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(package) rm vulnerable fresh-require
This commit is contained in:
parent
979a8f32dc
commit
16905fd42c
2 changed files with 5 additions and 5 deletions
|
|
@ -172,7 +172,6 @@
|
|||
"eslint-plugin-node": "^6.0.0",
|
||||
"extract-text-webpack-plugin": "^4.0.0-alpha.0",
|
||||
"file-loader": "^1.1.4",
|
||||
"fresh-require": "^1.0.3",
|
||||
"gritty": "^2.2.0",
|
||||
"gunzip-maybe": "^1.3.1",
|
||||
"html-looks-like": "^1.0.2",
|
||||
|
|
|
|||
|
|
@ -15,13 +15,14 @@ const CloudFuncPath = COMMONDIR + 'cloudfunc';
|
|||
|
||||
const CloudFunc = require(CloudFuncPath);
|
||||
|
||||
const currify = require('currify');
|
||||
const readFilesSync = require('@cloudcmd/read-files-sync');
|
||||
|
||||
const swap = currify((fn, a, b) => fn(b, a));
|
||||
|
||||
const test = require('tape');
|
||||
const fresh = swap(require('fresh-require'), require);
|
||||
const clean = require('clear-module');
|
||||
const fresh = (name) => {
|
||||
clean(name);
|
||||
return require(name);
|
||||
};
|
||||
|
||||
const htmlLooksLike = require('html-looks-like');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue