@talend/i18n-scripts
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,14 +1,10 @@ | ||
const twoDigits = v => v.toString().padStart(2, '0'); | ||
const threeDigits = v => v.toString().padStart(3, '0'); | ||
function getTimestamp() { | ||
function twoDigits(v) { | ||
return v < 10 ? '0' + v : v; | ||
} | ||
function threeDigits(v) { | ||
return v < 10 ? '00' + v : v < 100 ? '0' + v : v; | ||
} | ||
const date = new Date(); | ||
return [ | ||
date.getUTCFullYear(), | ||
twoDigits(date.getUTCMonth()), | ||
twoDigits(date.getUTCDay()), | ||
twoDigits(date.getUTCMonth() + 1), | ||
twoDigits(date.getUTCDate()), | ||
twoDigits(date.getUTCHours()), | ||
@@ -15,0 +11,0 @@ twoDigits(date.getUTCMinutes()), |
{ | ||
"name": "@talend/i18n-scripts", | ||
"description": "Set of scripts to ease i18n workflow", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
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
112639
1456