Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/scullyio/ng-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scullyio/ng-lib",
"version": "0.0.12",
"version": "0.0.13",
"repository": {
"type": "GIT",
"url": "https://github.com/scullyio/scully/tree/master/projects/scullyio/ng-lib"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Injectable} from '@angular/core';
import {Observable, of, ReplaySubject} from 'rxjs';
import {catchError, map, shareReplay, switchMap} from 'rxjs/operators';
import {catchError, map, shareReplay, switchMap, filter} from 'rxjs/operators';
import {fetchHttp} from '../utils/fetchHttp';

export interface ScullyRoute {
Expand All @@ -25,6 +25,8 @@ export class ScullyRoutesService {
);
return of([] as ScullyRoute[]);
}),
/** filter out all non-array results */
filter(routes => Array.isArray(routes)),
shareReplay({refCount: false, bufferSize: 1})
);
available$ = this.allRoutes$.pipe(
Expand Down
2 changes: 1 addition & 1 deletion scully/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scullyio/scully",
"version": "0.0.58",
"version": "0.0.59",
"description": "Scully CLI",
"repository": {
"type": "GIT",
Expand Down
1 change: 0 additions & 1 deletion scully/utils/defaultAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const generateAll = async (config?: Partial<ScullyConfig>) => {
try {
log('Finding all routes in application.');
const unhandledRoutes = await traverseAppRoutes();
console.log('hr', unhandledRoutes);

if (unhandledRoutes.length < 1) {
logWarn('No routes found in application, are you sure you installed the router? Terminating.');
Expand Down