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.1.0 to 1.1.1

8

dist/date/index.js

@@ -28,4 +28,4 @@ "use strict";

}
if (!Date.prototype.toDateString) {
Date.prototype.toDateString = function () {
if (!Date.prototype.toDateStr) {
Date.prototype.toDateStr = function () {
var year = undefined.getFullYear();

@@ -37,4 +37,4 @@ var month = (undefined.getMonth() + 1).toString().padStart(2, "0");

}
if (!Date.prototype.toDateTimeString) {
Date.prototype.toDateTimeString = function () {
if (!Date.prototype.toDateTimeStr) {
Date.prototype.toDateTimeStr = function () {
var year = undefined.getFullYear();

@@ -41,0 +41,0 @@ var month = (undefined.getMonth() + 1).toString().padStart(2, "0");

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

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

@@ -13,4 +13,4 @@ if (!Date.prototype.add) {

}
if (!Date.prototype.toDateString) {
Date.prototype.toDateString = () => {
if (!Date.prototype.toDateStr) {
Date.prototype.toDateStr = () => {
let year = this.getFullYear()

@@ -22,4 +22,4 @@ let month = (this.getMonth() + 1).toString().padStart(2, "0")

}
if (!Date.prototype.toDateTimeString) {
Date.prototype.toDateTimeString = () => {
if (!Date.prototype.toDateTimeStr) {
Date.prototype.toDateTimeStr = () => {
let year = this.getFullYear()

@@ -26,0 +26,0 @@ let month = (this.getMonth() + 1).toString().padStart(2, "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