MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getVersionNumber

Function getVersionNumber

valdi/vscode_debugger/gulpfile.js:114–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114const getVersionNumber = () => {
115 if (process.env.JS_DEBUG_VERSION) {
116 return process.env.JS_DEBUG_VERSION;
117 }
118
119 const date = new Date(new Date().toLocaleString('en-US', { timeZone: 'America/Los_Angeles' }));
120 const monthMinutes = (date.getDate() - 1) * 24 * 60 + date.getHours() * 60 + date.getMinutes();
121
122 return [
123 // YY
124 date.getFullYear(),
125 // MM,
126 date.getMonth() + 1,
127 //DDHH
128 `${date.getDate()}${String(date.getHours()).padStart(2, '0')}`,
129 ].join('.');
130};
131
132gulp.task('compile:dynamic', async () => {
133 const [contributions, strings] = await Promise.all([

Callers 1

gulpfile.jsFile · 0.85

Calls 2

StringClass · 0.50
joinMethod · 0.45

Tested by

no test coverage detected