fix fs.writeFile in node 10+

This commit is contained in:
guox191 2019-03-25 13:45:21 +08:00
parent 26a05e8c5c
commit 51bee445de
3 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,6 @@
25 March 2019: AnyProxy 3.10.5:
* add callback parameter in `fs.writeFile` which is required in Node.js 10.0.0+
26 Feb 2016: AnyProxy 3.10.4:
* let users assign the port for web socket in AnyProxy cli

View File

@ -100,7 +100,7 @@ function Recorder(option){
//add to body map
//ignore image data
var bodyFile = path.join(cachePath,BODY_FILE_PRFIX + id);
fs.writeFile(bodyFile, info.resBody);
fs.writeFile(bodyFile, info.resBody, function() {});
};
self.getBody = function(id,cb){

View File

@ -1,6 +1,6 @@
{
"name": "anyproxy",
"version": "3.10.4",
"version": "3.10.5",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js",
"bin": {