diff --git a/cagov-design-system/package-lock.json b/cagov-design-system/package-lock.json index a831e58..5cf6516 100644 --- a/cagov-design-system/package-lock.json +++ b/cagov-design-system/package-lock.json @@ -6089,6 +6089,12 @@ "pinkie-promise": "^2.0.0" } }, + "prettier": { + "version": "npm:wp-prettier@2.2.1-beta-1", + "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.2.1-beta-1.tgz", + "integrity": "sha512-+JHkqs9LC/JPp51yy1hzs3lQ7qeuWCwOcSzpQNeeY/G7oSpnF61vxt7hRh87zNRTr6ob2ndy0W8rVzhgrcA+Gw==", + "dev": true + }, "read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", @@ -15196,12 +15202,6 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, - "prettier": { - "version": "npm:wp-prettier@2.2.1-beta-1", - "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.2.1-beta-1.tgz", - "integrity": "sha512-+JHkqs9LC/JPp51yy1hzs3lQ7qeuWCwOcSzpQNeeY/G7oSpnF61vxt7hRh87zNRTr6ob2ndy0W8rVzhgrcA+Gw==", - "dev": true - }, "prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", diff --git a/cagov-patterns/cagov-design-system-posts/blocks/post-list/web-component.js b/cagov-patterns/cagov-design-system-posts/blocks/post-list/web-component.js index ed3fea2..16f0005 100644 --- a/cagov-patterns/cagov-design-system-posts/blocks/post-list/web-component.js +++ b/cagov-patterns/cagov-design-system-posts/blocks/post-list/web-component.js @@ -170,16 +170,6 @@ dateFormatted = moment(date).format("MMMM DD, YYYY"); } - // if (meta !== null && meta.custom_post_date !== "") { - // try { - // dateFormatted = moment(meta.custom_post_date).format("MMMM DD, YYYY"); - // console.log("dateFormatted", dateFormatted); - // } catch(error) { - // console.error(error); - // } - // } - - // Alternate for API testing: if (custom_post_date !== null && custom_post_date !== "") { try { dateFormatted = moment(custom_post_date).format("MMMM DD, YYYY");