@cca-io/re-logger
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "@cca-io/re-logger", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Simple logger library for Reason/BuckleScript apps", | ||
@@ -5,0 +5,0 @@ "main": "src/Logger.bs.js", |
@@ -5,9 +5,8 @@ // Generated by BUCKLESCRIPT VERSION 4.0.7, PLEASE EDIT WITH CARE | ||
var Curry = require("bs-platform/lib/js/curry.js"); | ||
var Pervasives = require("bs-platform/lib/js/pervasives.js"); | ||
function prependDate(message) { | ||
var now = new Date(); | ||
var hours = Pervasives.string_of_float(now.getHours()).padStart(2, "0"); | ||
var minutes = Pervasives.string_of_float(now.getMinutes()).padStart(2, "0"); | ||
var seconds = Pervasives.string_of_float(now.getSeconds()).padStart(2, "0"); | ||
var hours = now.getHours().toString().padStart(2, "0"); | ||
var minutes = now.getMinutes().toString().padStart(2, "0"); | ||
var seconds = now.getSeconds().toString().padStart(2, "0"); | ||
return "" + (String(hours) + (":" + (String(minutes) + (":" + (String(seconds) + (" " + (String(message) + ""))))))); | ||
@@ -14,0 +13,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9666
124