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

karl-common-util

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karl-common-util - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

dist/date/index.js

@@ -41,5 +41,5 @@ "use strict";

var day = this.getDate().toString().padStart(2, "0");
var hour = this.getHours();
var minute = this.getMinutes();
var second = this.getSeconds();
var hour = this.getHours().toString().padStart(2, "0");
var minute = this.getMinutes().toString().padStart(2, "0");
var second = this.getSeconds().toString().padStart(2, "0");
return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second;

@@ -46,0 +46,0 @@ };

{
"name": "karl-common-util",
"version": "1.2.0",
"version": "1.2.1",
"description": "karl common lib for client and server",

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

@@ -26,5 +26,5 @@ if (!Date.prototype.add) {

let day = this.getDate().toString().padStart(2, "0")
let hour = this.getHours()
let minute = this.getMinutes()
let second = this.getSeconds()
let hour = this.getHours().toString().padStart(2, "0")
let minute = this.getMinutes().toString().padStart(2, "0")
let second = this.getSeconds().toString().padStart(2, "0")
return `${year}-${month}-${day} ${hour}:${minute}:${second}`

@@ -31,0 +31,0 @@ }

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