receive both the "message" and the "curlCommand". Added a "tracer" logger which allows you to create log files that a executable scripts. Those scripts will write all of the log messages as script comments, and not comment out the curlCommands, so that they can trace their application and use the generated script to recreate the issue. Most changes are simply cased by adding the "unused" rule to jshint.
12 lines
180 B
JavaScript
12 lines
180 B
JavaScript
/**
|
|
* @class RandomList
|
|
*/
|
|
|
|
module.exports = RandomList;
|
|
|
|
function RandomList(list) {
|
|
this.get = function () {
|
|
return list[Math.round(Math.random() * list.length)];
|
|
};
|
|
}
|