karl-common-util
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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") |
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
42246