chore(redux-devtools-instrument): consolidate rxjs (#542)

This commit is contained in:
Nathan Bierema 2020-08-01 13:35:13 -04:00 committed by GitHub
parent f189949d60
commit c1917be76e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -41,7 +41,7 @@
"jest": "^24.1.0", "jest": "^24.1.0",
"redux": "^4.0.0", "redux": "^4.0.0",
"rimraf": "^2.3.4", "rimraf": "^2.3.4",
"rxjs": "^5.0.0-beta.6" "rxjs": "^6.4.0"
}, },
"dependencies": { "dependencies": {
"lodash": "^4.2.0", "lodash": "^4.2.0",

View File

@ -1,10 +1,8 @@
import { createStore, compose } from 'redux'; import { createStore, compose } from 'redux';
import instrument, { ActionCreators } from '../src/instrument'; import instrument, { ActionCreators } from '../src/instrument';
import { Observable } from 'rxjs'; import { from } from 'rxjs';
import _ from 'lodash'; import _ from 'lodash';
import 'rxjs/add/observable/from';
function counter(state = 0, action) { function counter(state = 0, action) {
switch (action.type) { switch (action.type) {
case 'INCREMENT': case 'INCREMENT':
@ -87,7 +85,7 @@ describe('instrument', () => {
let lastValue; let lastValue;
// let calls = 0; // let calls = 0;
Observable.from(store).subscribe(state => { from(store).subscribe(state => {
lastValue = state; lastValue = state;
// calls++; // calls++;
}); });

View File

@ -15160,7 +15160,7 @@ run-queue@^1.0.0, run-queue@^1.0.3:
dependencies: dependencies:
aproba "^1.1.1" aproba "^1.1.1"
rxjs@^5.0.0-beta.6, rxjs@^5.5.2: rxjs@^5.5.2:
version "5.5.12" version "5.5.12"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.12.tgz#6fa61b8a77c3d793dbaf270bee2f43f652d741cc" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.12.tgz#6fa61b8a77c3d793dbaf270bee2f43f652d741cc"
integrity sha512-xx2itnL5sBbqeeiVgNPVuQQ1nC8Jp2WfNJhXWHmElW9YmrpS9UVnNzhP3EH3HFqexO5Tlp8GhYY+WEcqcVMvGw== integrity sha512-xx2itnL5sBbqeeiVgNPVuQQ1nC8Jp2WfNJhXWHmElW9YmrpS9UVnNzhP3EH3HFqexO5Tlp8GhYY+WEcqcVMvGw==