Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

abbie

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abbie - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

.gitattributes

2

lib/getName.js

@@ -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)

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