Skip to content

Commit

Permalink
Merge pull request #152 from harvard-lil/states-enum-export
Browse files Browse the repository at this point in the history
`Scoop.summary`: summary.state should be an array
  • Loading branch information
matteocargnelutti committed May 5, 2023
2 parents f279b6f + 1be9a1e commit 6854f4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ export class Scoop {
/**
* @typedef {Object} ScoopCaptureSummary
* @property {int} state
* @property {object} states - Possible values of Scoop.state
* @property {string[]} states - Zero-indexed Scoop.states values.
* @property {string} targetUrl
* @property {boolean} targetUrlIsWebPage
* @property {ScoopOptions} options
Expand Down Expand Up @@ -1396,7 +1396,7 @@ export class Scoop {
async summary () {
const summary = {
state: this.state,
states: Scoop.states,
states: Object.keys(Scoop.states), // So summary.states[summary.state] = 'NAME-OF-STATE'
targetUrl: this.url,
targetUrlIsWebPage: this.targetUrlIsWebPage,
options: this.options,
Expand Down

0 comments on commit 6854f4d

Please sign in to comment.