Merge pull request #385 from decaf-dev/dev

1.47.2
This commit is contained in:
DecafDev 2025-05-02 20:36:39 -06:00 committed by GitHub
commit 5ebfc3fcbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{
"id": "vault-explorer",
"name": "Vault Explorer",
"version": "1.47.1",
"version": "1.47.2",
"minAppVersion": "1.4.13",
"description": "Explore your vault in visual format",
"author": "DecafDev",

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-vault-explorer",
"version": "1.47.1",
"version": "1.47.2",
"description": "Explore your vault in visual format",
"main": "main.js",
"scripts": {

View file

@ -54,7 +54,7 @@ export const getStartOfLastWeekMillis = () => {
* @returns - The date in milliseconds
*/
export const getTimeMillis = (date: string) => {
const momentDate = (moment as any)()(date, DATE_FORMATS, true);
const momentDate = (moment as any)(date, DATE_FORMATS, true);
if (!momentDate.isValid()) {
throw new Error(`Date format not handled: ${date}`);
@ -68,7 +68,7 @@ export const getTimeMillis = (date: string) => {
* @returns - True if the date is supported, false otherwise
*/
export const isDateSupported = (date: string) => {
const momentDate = (moment as any)()(date, DATE_FORMATS, true);
const momentDate = (moment as any)(date, DATE_FORMATS, true);
return momentDate.isValid();
};
@ -78,7 +78,7 @@ export const isDateSupported = (date: string) => {
* @returns - The end of the day in milliseconds
*/
export const getEndOfDayMillis = (date: string) => {
const day = (moment as any)()(date);
const day = (moment as any)(date);
day.set({
hour: 23,
minute: 59,

View file

@ -151,5 +151,6 @@
"1.45.0": "1.4.13",
"1.46.0": "1.4.13",
"1.47.0": "1.4.13",
"1.47.1": "1.4.13"
"1.47.1": "1.4.13",
"1.47.2": "1.4.13"
}