Skip to content

Commit

Permalink
Stop relying on underscore.js' _ being magically available
Browse files Browse the repository at this point in the history
Fixes Urigo#246
  • Loading branch information
Dominique Quatravaux committed Nov 7, 2019
1 parent 881aa74 commit bffa937
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"homepage": "http://www.angular-meteor.com",
"peerDependencies": {
"@types/meteor": "^1.4.6",
"rxjs": "^5.4.3 || ^6.0.0"
"rxjs": "^5.4.3 || ^6.0.0",
"underscore": "1.9.1"
},
"devDependencies": {
"@types/chai": "4.0.4",
Expand Down
2 changes: 1 addition & 1 deletion src/ObservableCursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Observable , Subscriber , Subject } from 'rxjs';

import { gZone, forkZone, removeObserver } from './utils';

declare let _;
import * as _ from 'underscore';

export class ObservableCursor<T> extends Observable<T[]> {
private _zone: Zone;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Subscriber } from 'rxjs';

declare let _;
import * as _ from 'underscore';

export declare type CallbacksObject = {
onReady?: Function;
Expand Down

0 comments on commit bffa937

Please sign in to comment.