initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
16
github/codeql-action-v2/node_modules/nise/lib/fake-server/log.js
generated
vendored
Normal file
16
github/codeql-action-v2/node_modules/nise/lib/fake-server/log.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"use strict";
|
||||
var inspect = require("util").inspect;
|
||||
|
||||
function log(response, request) {
|
||||
var str;
|
||||
|
||||
str = `Request:\n${inspect(request)}\n\n`;
|
||||
str += `Response:\n${inspect(response)}\n\n`;
|
||||
|
||||
/* istanbul ignore else: when this.logger is not a function, it can't be called */
|
||||
if (typeof this.logger === "function") {
|
||||
this.logger(str);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = log;
|
||||
Loading…
Add table
Add a link
Reference in a new issue