Comparing version 3.1.1 to 3.1.2
@@ -35,3 +35,9 @@ "use strict"; | ||
else { | ||
result.push(padStart_1.default(interval.s.toString(), 2, "0") + f); | ||
if (f.length > 0) { | ||
result.push(padStart_1.default(interval.s.toString(), 2, "0") + f); | ||
} | ||
else { | ||
result.push(padStart_1.default(interval.i.toString(), 2, "0") + ":" + | ||
padStart_1.default(interval.s.toString(), 2, "0") + f); | ||
} | ||
} | ||
@@ -38,0 +44,0 @@ } |
{ | ||
"name": "onix-core", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Onix library core", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -43,5 +43,12 @@ import padStart from 'lodash-es/padStart'; | ||
} else { | ||
result.push( | ||
padStart(interval.s.toString(), 2, "0") + f | ||
); | ||
if (f.length > 0) { | ||
result.push( | ||
padStart(interval.s.toString(), 2, "0") + f | ||
); | ||
} else { | ||
result.push( | ||
padStart(interval.i.toString(), 2, "0") + ":" + | ||
padStart(interval.s.toString(), 2, "0") + f | ||
); | ||
} | ||
} | ||
@@ -48,0 +55,0 @@ } |
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
116106
2185