diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3c9e922d..0c1b8016 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,7 +42,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -53,7 +53,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -67,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.vscode/settings.json b/.vscode/settings.json index 6dd289fc..be5943b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,7 +2,7 @@ "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "files.exclude": { "**/.dist": true diff --git a/dist/index.js b/dist/index.js index 32bdf446..441a443d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -35399,7 +35399,7 @@ function mTags({ tags }) { ;// CONCATENATED MODULE: ./src/summary.ts -function summaryMarkown(library, date, bookStatus) { +function summaryMarkdown(library, date, bookStatus) { const { BookTitle } = process.env; return `# Updated library @@ -35692,7 +35692,7 @@ async function read() { } library = sortByDate(library); await returnWriteFile(filename, library); - await core.summary.addRaw(summaryMarkown(library, date, bookStatus)).write(); + await core.summary.addRaw(summaryMarkdown(library, date, bookStatus)).write(); } catch (error) { (0,core.setFailed)(error); diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts index 7cd96c8d..463b8e3f 100644 --- a/src/__tests__/index.test.ts +++ b/src/__tests__/index.test.ts @@ -100,7 +100,7 @@ describe("index", () => { ], [ "BookThumb", - "https://books.google.com/books/content?id=NFeTEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", + "https://books.google.com/books/content?id=pUmNEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", ], ] `); @@ -114,7 +114,7 @@ describe("index", () => { ], "description": "NEW YORK TIMES BESTSELLER Winner of the 2020 Center for Fiction First Novel Prize Winner of the 2020 National Book Critics Circle's John Leonard Prize for Best First Book Winner of the 2020 Kirkus Prize for Fiction Winner of the 2021 Dylan Thomas Prize Finalist for the 2021 PEN/Hemingway Award for Best First Novel Longlisted for the 2021 Andrew Carnegie Medal for Excellence in Fiction Longlisted for the 2021 PEN/Jean Stein Book Award Longlisted for the 2021 Women's Prize for Fiction A New York Times Notable Book of the Year Named Best Book of the Year by O: the Oprah Magazine, Vanity Fair, Los Angeles Times, Town and Country, Amazon, Indigo, NPR, Harper’s Bazaar, Kirkus Reviews, Marie Claire, Good Housekeeping Sharp, comic, disruptive, and tender, Luster sees a young Black woman fall into art and someone else's open marriage. Edie is stumbling her way through her twenties—sharing a subpar apartment in Bushwick, clocking in and out of her admin job, making a series of inappropriate sexual choices. She's also, secretly, haltingly, figuring her way into life as an artist. And then she meets Eric, a digital archivist with a family in New Jersey, including an autopsist wife who has agreed to an open marriage—with rules. As if navigating the constantly shifting landscapes of contemporary sexual manners and racial politics weren't hard enough, Edie finds herself unemployed and falling into Eric's family life, his home. She becomes a hesitant friend to his wife and a de facto role model to his adopted daughter. Edie is the only Black woman who young Akila knows. Razor-sharp, darkly comic, sexually charged, socially disruptive, Luster is a portrait of a young woman trying to make sense of her life in a tumultuous era. It is also a haunting, aching description of how hard it is to believe in your own talent and the unexpected influences that bring us into ourselves along the way.", "isbn": "9780385696005", - "thumbnail": "https://books.google.com/books/content?id=NFeTEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", + "thumbnail": "https://books.google.com/books/content?id=pUmNEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", "title": "Luster", }, ] @@ -152,12 +152,12 @@ describe("index", () => { "description": "NEW YORK TIMES BESTSELLER Winner of the 2020 Center for Fiction First Novel Prize Winner of the 2020 National Book Critics Circle's John Leonard Prize for Best First Book Winner of the 2020 Kirkus Prize for Fiction Winner of the 2021 Dylan Thomas Prize Finalist for the 2021 PEN/Hemingway Award for Best First Novel Longlisted for the 2021 Andrew Carnegie Medal for Excellence in Fiction Longlisted for the 2021 PEN/Jean Stein Book Award Longlisted for the 2021 Women's Prize for Fiction A New York Times Notable Book of the Year Named Best Book of the Year by O: the Oprah Magazine, Vanity Fair, Los Angeles Times, Town and Country, Amazon, Indigo, NPR, Harper’s Bazaar, Kirkus Reviews, Marie Claire, Good Housekeeping Sharp, comic, disruptive, and tender, Luster sees a young Black woman fall into art and someone else's open marriage. Edie is stumbling her way through her twenties—sharing a subpar apartment in Bushwick, clocking in and out of her admin job, making a series of inappropriate sexual choices. She's also, secretly, haltingly, figuring her way into life as an artist. And then she meets Eric, a digital archivist with a family in New Jersey, including an autopsist wife who has agreed to an open marriage—with rules. As if navigating the constantly shifting landscapes of contemporary sexual manners and racial politics weren't hard enough, Edie finds herself unemployed and falling into Eric's family life, his home. She becomes a hesitant friend to his wife and a de facto role model to his adopted daughter. Edie is the only Black woman who young Akila knows. Razor-sharp, darkly comic, sexually charged, socially disruptive, Luster is a portrait of a young woman trying to make sense of her life in a tumultuous era. It is also a haunting, aching description of how hard it is to believe in your own talent and the unexpected influences that bring us into ourselves along the way.", "isbn": "9780385696005", "language": "en", - "link": "https://books.google.com/books/about/Luster.html?hl=&id=NFeTEAAAQBAJ", + "link": "https://books.google.com/books/about/Luster.html?hl=&id=pUmNEAAAQBAJ", "pageCount": 0, "printType": "BOOK", "publishedDate": "2020-08-04", "status": "started", - "thumbnail": "https://books.google.com/books/content?id=NFeTEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", + "thumbnail": "https://books.google.com/books/content?id=pUmNEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", "title": "Luster", }, ], @@ -321,7 +321,7 @@ describe("index", () => { [ [ "BookStatus", - undefined, + "want to read", ], [ "BookNeedsReview", @@ -489,7 +489,7 @@ describe("index", () => { "description": "NEW YORK TIMES BESTSELLER Winner of the 2020 Center for Fiction First Novel Prize Winner of the 2020 National Book Critics Circle's John Leonard Prize for Best First Book Winner of the 2020 Kirkus Prize for Fiction Winner of the 2021 Dylan Thomas Prize Finalist for the 2021 PEN/Hemingway Award for Best First Novel Longlisted for the 2021 Andrew Carnegie Medal for Excellence in Fiction Longlisted for the 2021 PEN/Jean Stein Book Award Longlisted for the 2021 Women's Prize for Fiction A New York Times Notable Book of the Year Named Best Book of the Year by O: the Oprah Magazine, Vanity Fair, Los Angeles Times, Town and Country, Amazon, Indigo, NPR, Harper’s Bazaar, Kirkus Reviews, Marie Claire, Good Housekeeping Sharp, comic, disruptive, and tender, Luster sees a young Black woman fall into art and someone else's open marriage. Edie is stumbling her way through her twenties—sharing a subpar apartment in Bushwick, clocking in and out of her admin job, making a series of inappropriate sexual choices. She's also, secretly, haltingly, figuring her way into life as an artist. And then she meets Eric, a digital archivist with a family in New Jersey, including an autopsist wife who has agreed to an open marriage—with rules. As if navigating the constantly shifting landscapes of contemporary sexual manners and racial politics weren't hard enough, Edie finds herself unemployed and falling into Eric's family life, his home. She becomes a hesitant friend to his wife and a de facto role model to his adopted daughter. Edie is the only Black woman who young Akila knows. Razor-sharp, darkly comic, sexually charged, socially disruptive, Luster is a portrait of a young woman trying to make sense of her life in a tumultuous era. It is also a haunting, aching description of how hard it is to believe in your own talent and the unexpected influences that bring us into ourselves along the way.", "isbn": "9780385696005", "language": "en", - "link": "https://books.google.com/books/about/Luster.html?hl=&id=NFeTEAAAQBAJ", + "link": "https://books.google.com/books/about/Luster.html?hl=&id=pUmNEAAAQBAJ", "pageCount": 0, "printType": "BOOK", "publishedDate": "2020-08-04", @@ -498,7 +498,7 @@ describe("index", () => { "new", "recommend", ], - "thumbnail": "https://books.google.com/books/content?id=NFeTEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", + "thumbnail": "https://books.google.com/books/content?id=pUmNEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", "title": "Luster", }, ], diff --git a/src/index.ts b/src/index.ts index 05a12558..0c0ded2e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,7 @@ import getBook from "./get-book"; import { getBookStatus, sortByDate, toArray } from "./utils"; import { checkOutBook } from "./checkout-book"; import { BookStatus } from "./clean-book"; -import { summaryMarkown } from "./summary"; +import { summaryMarkdown } from "./summary"; import returnReadFile from "./read-file"; import { updateBook } from "./update-book"; import { validatePayload } from "./validate-payload"; @@ -124,7 +124,7 @@ export async function read() { library = sortByDate(library); await returnWriteFile(filename, library); - await summary.addRaw(summaryMarkown(library, date, bookStatus)).write(); + await summary.addRaw(summaryMarkdown(library, date, bookStatus)).write(); } catch (error) { setFailed(error); } diff --git a/src/summary.ts b/src/summary.ts index ddb043ca..cace808d 100644 --- a/src/summary.ts +++ b/src/summary.ts @@ -11,7 +11,7 @@ import { } from "./summary-markdown"; import { capitalize } from "./utils"; -export function summaryMarkown( +export function summaryMarkdown( library: CleanBook[], date: BookPayload["date"], bookStatus: BookStatus