Comparing version 1.1.4 to 1.1.5
@@ -9,3 +9,3 @@ module.exports.getName = function getName(string) { | ||
name = dirs | ||
.join('/') | ||
.join(require('./slash').slash()) | ||
.replace('.js', '') | ||
@@ -12,0 +12,0 @@ .replace('.ts', '') |
@@ -10,12 +10,6 @@ /** | ||
// #region Hour | ||
let hour = date.getHours(); | ||
let hour = date.getHours().toString(); | ||
if (hour > 12) { | ||
hour = hour - 12; | ||
} | ||
hour = hour.toString(); | ||
if (hour.length == 1) { | ||
hour = '0' + hour.toString(); | ||
hour = '0' + hour; | ||
} | ||
@@ -25,8 +19,6 @@ // #endregion Hour | ||
// #region Minute | ||
let minute = date.getMinutes(); | ||
let minute = date.getMinutes().toString(); | ||
minute = minute.toString(); | ||
if (minute.length == 1) { | ||
minute = '0' + minute.toString(); | ||
minute = '0' + minute; | ||
} | ||
@@ -36,14 +28,12 @@ // #endregion Minute | ||
// #region second | ||
let second = date.getSeconds(); | ||
let second = date.getSeconds().toString(); | ||
second = second.toString(); | ||
if (second.length == 1) { | ||
second = '0' + second.toString(); | ||
second = '0' + second; | ||
} | ||
// #endregion second | ||
const timeVar = `${hour.toString()}:${minute.toString()}:${second.toString()}`; | ||
const timeVar = `${hour}:${minute}:${second}`; | ||
return timeVar; | ||
}; |
{ | ||
"name": "abbie", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "A simple, clean, javascript logger", | ||
@@ -8,6 +8,6 @@ "main": "main.js", | ||
"scripts": { | ||
"test": "npm run jstest && npm run tstest", | ||
"test": "npm run jstest --if-present && npm run tstest --if-present", | ||
"jstest": "node ./tests/JSTest.js", | ||
"tstest": "npx tsc && npx ts-node ./tests/TSTest.ts", | ||
"coverage": "covecov" | ||
"coverage": "npx nyc npm test && npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -6,2 +6,3 @@ # Abbie | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
[![Build Status](https://travis-ci.com/jamesinaxx/Abbie.svg?branch=public)](https://travis-ci.com/jamesinaxx/Abbie) | ||
@@ -8,0 +9,0 @@ [![DeepScan grade](https://deepscan.io/api/teams/11350/projects/15794/branches/322083/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=11350&pid=15794&bid=322083) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16
50
26846
120