Skip to content

Commit

Permalink
refactor: update rxjs imports
Browse files Browse the repository at this point in the history
Remove `rxjs/operators` legacy import

(cherry picked from commit c1ae7f3)
  • Loading branch information
alan-agius4 authored and clydin committed Dec 5, 2023
1 parent a8dbf1d commit 6bd56bd
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,25 @@ import type {
ProxyOptions,
} from 'browser-sync';
import { join, resolve as pathResolve } from 'path';
import { EMPTY, Observable, combineLatest, from, of, zip } from 'rxjs';
import {
EMPTY,
Observable,
catchError,
combineLatest,
concatMap,
debounce,
debounceTime,
delay,
finalize,
from,
ignoreElements,
map,
mapTo,
of,
startWith,
switchMap,
tap,
} from 'rxjs/operators';
zip,
} from 'rxjs';
import * as url from 'url';
import { assertIsError } from '../../utils/error';
import { Schema } from './schema';
Expand Down Expand Up @@ -99,7 +103,7 @@ export function execute(
}

return startNodeServer(s, nodeServerPort, context.logger, !!options.inspect).pipe(
mapTo([b, s]),
map(() => [b, s]),
catchError((err) => {
context.logger.error(`A server error has occurred.\n${mapErrorToMessage(err)}`);

Expand Down Expand Up @@ -153,7 +157,7 @@ export function execute(
**
`);
}),
mapTo(builderOutput),
map(() => builderOutput),
);
}
}),
Expand Down

0 comments on commit 6bd56bd

Please sign in to comment.