date-picker-svelte
Advanced tools
Comparing version 2.5.1 to 2.6.0
@@ -49,2 +49,7 @@ import { getMonthLength } from './date-utils.js'; | ||
} | ||
else if (token.id === 'yy') { | ||
const value = parseUint(/^[0-9]{2}/, 0, 99); | ||
if (value !== null) | ||
year = 2000 + value; | ||
} | ||
else if (token.id === 'yyyy') { | ||
@@ -104,2 +109,6 @@ const value = parseUint(/^[0-9]{4}/, 0, 9999); | ||
{ | ||
id: 'yy', | ||
toString: (d) => d.getFullYear().toString().slice(-2), | ||
}, | ||
{ | ||
id: 'MM', | ||
@@ -106,0 +115,0 @@ toString: (d) => twoDigit(d.getMonth() + 1), |
{ | ||
"name": "date-picker-svelte", | ||
"version": "2.5.1", | ||
"version": "2.6.0", | ||
"description": "Date and time picker for Svelte", | ||
@@ -24,3 +24,3 @@ "type": "module", | ||
"@typescript-eslint/parser": "^5.60.1", | ||
"@vitest/coverage-c8": "^0.32.2", | ||
"@vitest/coverage-v8": "^0.32.2", | ||
"date-fns": "^2.30.0", | ||
@@ -27,0 +27,0 @@ "eslint": "^8.44.0", |
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
37150
384