mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
commit
5ebfc3fcbb
4 changed files with 7 additions and 6 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue