New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lambdatest/node-rest-client

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lambdatest/node-rest-client - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

38

lib/logger.js
/**
* logger for create logFile as lambda_api.log to current dir if path is not passed by User.
*/
var winston = require("winston");
module.exports = function(logFile) {
var winstonFormat = winston.format;
return winston.createLogger({
level: "info",
format: winstonFormat.combine(
winstonFormat.timestamp(),
winstonFormat.json()
),
transports: [new winston.transports.File({ filename: logFile ? logFile : "lambda_api.log" })]
});
};
var winston = require("winston");
function logging(logFile){
var winstonFormat = winston.format;
if (process.env.LT_API_LOG === "true"){
return winston.createLogger({
level: "info",
format: winstonFormat.combine(
winstonFormat.timestamp(),
winstonFormat.json()
),
transports: [new winston.transports.File({ filename: logFile ? logFile : "lambda_api.log" })]
});
}
return winston.createLogger({
level: "info",
silent:"true",
format: winstonFormat.combine(
winstonFormat.timestamp(),
winstonFormat.json()
),
transports: [new winston.transports.Console()]
});
};
module.exports = logging
{
"name": "@lambdatest/node-rest-client",
"version": "1.0.7",
"version": "1.0.8",
"description": "LambdaTest Rest Client for Node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc