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

@talend/i18n-scripts

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@talend/i18n-scripts - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

14

common/timestamp.js

@@ -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",

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