-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ElonVolo/rxjs
Adding support for logging rxjs pipe() stages
- Loading branch information
Showing
12 changed files
with
1,206 additions
and
807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { of, pipe } from 'rxjs'; | ||
import { map, tap, filter } from 'rxjs/operators'; | ||
|
||
let myStream$ = of(7).pipe( | ||
map(x => x + 1), | ||
filter(x => x > 2) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { of, pipe } from 'rxjs'; | ||
import { map, tap, filter } from 'rxjs/operators'; | ||
|
||
let myStream$ = of(7).pipe(tap(x => { | ||
console.log( | ||
`[logitall] Stage 0 value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-basic-existing-tap-import.input.ts is: | ||
${x}\n` | ||
); | ||
}), map(x => x + 1), tap(x => { | ||
console.log( | ||
`[logitall] Stage 1 value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-basic-existing-tap-import.input.ts is: | ||
${x}\n` | ||
); | ||
}), filter(x => x > 2), tap(x => { | ||
console.log( | ||
`[logitall] Final value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-basic-existing-tap-import.input.ts is: | ||
${x}\n` | ||
); | ||
}), ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { of, pipe } from 'rxjs'; | ||
import { map, filter } from 'rxjs/operators'; | ||
|
||
let myStream$ = of(7).pipe( | ||
map(x => x + 1), | ||
filter(x => x > 2) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { tap } from "rxjs/operators"; | ||
import { of, pipe } from 'rxjs'; | ||
import { map, filter } from 'rxjs/operators'; | ||
|
||
let myStream$ = of(7).pipe(tap(x => { | ||
console.log( | ||
`[logitall] Stage 0 value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-basic.input.ts is: | ||
${x}\n` | ||
); | ||
}), map(x => x + 1), tap(x => { | ||
console.log( | ||
`[logitall] Stage 1 value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-basic.input.ts is: | ||
${x}\n` | ||
); | ||
}), filter(x => x > 2), tap(x => { | ||
console.log( | ||
`[logitall] Final value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-basic.input.ts is: | ||
${x}\n` | ||
); | ||
}), ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { of, pipe } from 'rxjs'; | ||
import { map, tap, filter } from 'rxjs/internal/operators'; | ||
|
||
let myStream$ = of(7).pipe( | ||
map(x => x + 1), | ||
filter(x => x > 2) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { of, pipe } from 'rxjs'; | ||
import { map, tap, filter } from 'rxjs/internal/operators'; | ||
|
||
let myStream$ = of(7).pipe(tap(x => { | ||
console.log( | ||
`[logitall] Stage 0 value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-internal-tap-import.input.ts is: | ||
${x}\n` | ||
); | ||
}), map(x => x + 1), tap(x => { | ||
console.log( | ||
`[logitall] Stage 1 value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-internal-tap-import.input.ts is: | ||
${x}\n` | ||
); | ||
}), filter(x => x > 2), tap(x => { | ||
console.log( | ||
`[logitall] Final value for rxjs pipe starting at line 4 in __testfixtures__/rxjs-internal-tap-import.input.ts is: | ||
${x}\n` | ||
); | ||
}), ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.