@waiting/shared-core
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -6,2 +6,10 @@ # Change Log | ||
## 6.1.1 (2021-03-18) | ||
**Note:** Version bump only for package @waiting/shared-core | ||
# 6.1.0 (2021-03-17) | ||
@@ -8,0 +16,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 6.0.2 | ||
* @version 6.1.0 | ||
* @author waiting | ||
@@ -263,20 +263,16 @@ * @license MIT | ||
const ret = dd.getFullYear().toString() | ||
+ '-' + pad(dd.getMonth() + 1) | ||
+ '-' + pad(dd.getDate()) | ||
+ 'T' + pad(dd.getHours()) | ||
+ ':' + pad(dd.getMinutes()) | ||
+ ':' + pad(dd.getSeconds()) | ||
+ '.' + pad3(dd.getMilliseconds()) | ||
+ dif + pad(tzo / 60) | ||
+ ':' + pad(tzo % 60); | ||
+ '-' + pad(dd.getMonth() + 1, 2) | ||
+ '-' + pad(dd.getDate(), 2) | ||
+ 'T' + pad(dd.getHours(), 2) | ||
+ ':' + pad(dd.getMinutes(), 2) | ||
+ ':' + pad(dd.getSeconds(), 2) | ||
+ '.' + pad(dd.getMilliseconds(), 3) | ||
+ dif + pad(tzo / 60, 2) | ||
+ ':' + pad(tzo % 60, 2); | ||
return ret; | ||
} | ||
function pad(num) { | ||
function pad(num, length) { | ||
const norm = Math.floor(Math.abs(num)); | ||
return (norm < 10 ? '0' : '') + norm.toString(); | ||
return norm.toString().padStart(length, '0'); | ||
} | ||
function pad3(num) { | ||
const norm = Math.floor(Math.abs(num)); | ||
return (norm < 99 ? '0' : '') + norm.toString(); | ||
} | ||
@@ -283,0 +279,0 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ |
@@ -12,19 +12,15 @@ /** | ||
const ret = dd.getFullYear().toString() | ||
+ '-' + pad(dd.getMonth() + 1) | ||
+ '-' + pad(dd.getDate()) | ||
+ 'T' + pad(dd.getHours()) | ||
+ ':' + pad(dd.getMinutes()) | ||
+ ':' + pad(dd.getSeconds()) | ||
+ '.' + pad3(dd.getMilliseconds()) | ||
+ dif + pad(tzo / 60) | ||
+ ':' + pad(tzo % 60); | ||
+ '-' + pad(dd.getMonth() + 1, 2) | ||
+ '-' + pad(dd.getDate(), 2) | ||
+ 'T' + pad(dd.getHours(), 2) | ||
+ ':' + pad(dd.getMinutes(), 2) | ||
+ ':' + pad(dd.getSeconds(), 2) | ||
+ '.' + pad(dd.getMilliseconds(), 3) | ||
+ dif + pad(tzo / 60, 2) | ||
+ ':' + pad(tzo % 60, 2); | ||
return ret; | ||
} | ||
function pad(num) { | ||
function pad(num, length) { | ||
const norm = Math.floor(Math.abs(num)); | ||
return (norm < 10 ? '0' : '') + norm.toString(); | ||
return norm.toString().padStart(length, '0'); | ||
} | ||
function pad3(num) { | ||
const norm = Math.floor(Math.abs(num)); | ||
return (norm < 99 ? '0' : '') + norm.toString(); | ||
} |
{ | ||
"name": "@waiting/shared-core", | ||
"author": "waiting", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "node core function re export with Promise or Observable", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@waiting/shared-types": "^6.1.0", | ||
"@waiting/shared-types": "^6.1.1", | ||
"rxjs": "6" | ||
@@ -82,3 +82,3 @@ }, | ||
}, | ||
"gitHead": "66990bb9425d8a7b274d036f07f30ec975cd0f5c" | ||
"gitHead": "5e27c11c4c929ad4b3e60b2be8da40b778da1607" | ||
} |
Sorry, the diff of this file is not supported yet
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
66570
859
Updated@waiting/shared-types@^6.1.1