Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #3973

Merged
merged 15 commits into from
Feb 16, 2021
1 change: 1 addition & 0 deletions source/features/bugs-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ async function init(): Promise<void | false> {
if (isBugsPage) {
// Hide pinned issues on the tab page, they might not belong there
// Don't await; if there are no pinned issues, this would delay the bug count update
// eslint-disable-next-line promise/prefer-await-to-then
void elementReady('.js-pinned-issues-reorder-container', {waitForChildren: false}).then(pinnedIssues => pinnedIssues?.remove());
}

Expand Down
2 changes: 1 addition & 1 deletion source/features/tags-on-commits-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function getTags(lastCommit: string, after?: string): Promise<CommitTags>
}
}
`);
const nodes: TagNode[] = repository.refs.nodes;
const {nodes} = repository.refs;
fregante marked this conversation as resolved.
Show resolved Hide resolved

// If there are no tags in the repository
if (nodes.length === 0) {
Expand Down
1 change: 1 addition & 0 deletions source/options-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function featureWasRenamed(from: string, to: string): Migration<RGHOptions> {
}

// TypeScript doesn't merge the definitions so `...` is not equivalent.
// eslint-disable-next-line prefer-object-spread
const defaults = Object.assign({
customCSS: '',
personalToken: '',
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ function parseFeatureDetails(readmeContent: string, id: FeatureID): FeatureMeta
}

function getFeatures(): FeatureID[] {
return Array.from(
readFileSync(path.join(__dirname, 'source/refined-github.ts'), 'utf-8').matchAll(/^import '\.\/features\/([^.]+)';/gm),
match => match[1] as FeatureID
).sort().filter(id => !id.startsWith('rgh-'));
return [...readFileSync(path.join(__dirname, 'source/refined-github.ts'), 'utf-8').matchAll(/^import '\.\/features\/([^.]+)';/gm)]
fregante marked this conversation as resolved.
Show resolved Hide resolved
.map(match => match[1] as FeatureID)
.sort()
.filter(id => !id.startsWith('rgh-'));
}

const config: Configuration = {
Expand Down