Skip to content

Commit

Permalink
chore: Re-format sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Mar 26, 2024
1 parent f970ad2 commit 7a003dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion packages/storycrawler/src/browser/metrics-watcher.ts
Expand Up @@ -20,7 +20,10 @@ export class MetricsWatcher {
private length = 3;
private previous: Metrics[] = [];

constructor(private page: Page, private count: number = 1000) {}
constructor(
private page: Page,
private count: number = 1000,
) {}

/**
*
Expand Down
6 changes: 3 additions & 3 deletions packages/storycrawler/src/browser/stories-browser.ts
Expand Up @@ -124,9 +124,9 @@ export class StoriesBrowser extends BaseBrowser {
isPreviewApi(api) && api.storyStoreValue
? Object.values(api.storyStoreValue.extract())
: api.raw
? api.raw()
: []
).map(_ => ({ id: _.id, kind: _.kind, story: _.name, version: 'v5' } as Story));
? api.raw()
: []
).map(_ => ({ id: _.id, kind: _.kind, story: _.name, version: 'v5' }) as Story);
res({ stories, timeout: false });
};
getStories();
Expand Down
5 changes: 4 additions & 1 deletion packages/storycrawler/src/storybook-connection.ts
Expand Up @@ -70,7 +70,10 @@ export class StorybookConnection {
* @param logger Logger instance
*
**/
constructor(private opt: StorybookConnectionOptions, private logger: Logger = new Logger('silent')) {}
constructor(
private opt: StorybookConnectionOptions,
private logger: Logger = new Logger('silent'),
) {}

/**
*
Expand Down

0 comments on commit 7a003dd

Please sign in to comment.