From 39a7bdbcca49c8974cd5e18c8ea10298acf5a113 Mon Sep 17 00:00:00 2001 From: dathbe Date: Mon, 25 Mar 2024 09:23:43 -0700 Subject: [PATCH 1/5] Update runtest.yml setup-node v3 > v4 --- .github/workflows/runtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/runtest.yml b/.github/workflows/runtest.yml index 9f2bbe1..e517c54 100644 --- a/.github/workflows/runtest.yml +++ b/.github/workflows/runtest.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: "npm" From a00dd55b4b43a42df06e993a217d910d1037fdf5 Mon Sep 17 00:00:00 2001 From: dathbe Date: Mon, 25 Mar 2024 09:24:45 -0700 Subject: [PATCH 2/5] Update MMM-JsonTable.js Date() > Date(Date.now()) --- MMM-JsonTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMM-JsonTable.js b/MMM-JsonTable.js index 28ccf06..0309d90 100644 --- a/MMM-JsonTable.js +++ b/MMM-JsonTable.js @@ -125,7 +125,7 @@ Module.register("MMM-JsonTable", { if (typeof input === "string" && m.isValid()) { // Show a formatted time if it occures today if ( - m.isSame(new Date(), "day") && + m.isSame(new Date(Date.now()), "day") && m.hours() !== 0 && m.minutes() !== 0 && m.seconds() !== 0 From 4c294ccb72c00eca856a1a71b7554762ed39fc4f Mon Sep 17 00:00:00 2001 From: dathbe Date: Mon, 25 Mar 2024 09:25:26 -0700 Subject: [PATCH 3/5] Update README.md michmich > magicmirror --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7450e3..07a4037 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MMM-JsonTable -A module for the [MagicMirror²](https://github.com/MichMich/MagicMirror) project which creates a table filled with a list gathered from a json request. +A module for the [MagicMirror²](https://github.com/MagicMirrorOrg/MagicMirror) project which creates a table filled with a list gathered from a json request. All the variables of the objects in the array are represented by a table column. For every column it checks if a valid DateTime is given, and then formats it to `HH:mm:ss` if it is today or `YYYY-MM-DD` otherwise. From 4a34413ba75b6efa08b615101c5fc5d6c611375a Mon Sep 17 00:00:00 2001 From: dathbe Date: Mon, 25 Mar 2024 09:28:18 -0700 Subject: [PATCH 4/5] Update package.json eslint-plugin-json > eslint-plugin-jsonc --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d091dc..5a46a94 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.29.0", - "eslint-plugin-json": "^3.1.0", + "eslint-plugin-jsonc": "^2.14.1", "eslint-plugin-markdownlint": "^0.5.0", "eslint-plugin-prettier": "^5.0.1", "markdownlint": "^0.32.1", From 30f1377abfabd1d4a7a2127a4337bc74867601d6 Mon Sep 17 00:00:00 2001 From: dathbe Date: Tue, 26 Mar 2024 08:06:42 -0700 Subject: [PATCH 5/5] Revert "Update package.json" This reverts commit 4a34413ba75b6efa08b615101c5fc5d6c611375a. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5a46a94..1d091dc 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.29.0", - "eslint-plugin-jsonc": "^2.14.1", + "eslint-plugin-json": "^3.1.0", "eslint-plugin-markdownlint": "^0.5.0", "eslint-plugin-prettier": "^5.0.1", "markdownlint": "^0.32.1",