Skip to content

Commit

Permalink
try to fix meteor typings issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Sep 14, 2017
1 parent 05d1e67 commit e1eb411
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion dist/ObservableCollection.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Mongo } from 'meteor/mongo';
import { Observable } from 'rxjs';
import { ObservableCursor } from './ObservableCursor';
import Selector = Mongo.Selector;
Expand Down
1 change: 0 additions & 1 deletion dist/ObservableCollection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ObservableCollection.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions dist/bundles/index.umd.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('meteor/mongo'), require('rxjs')) :
typeof define === 'function' && define.amd ? define(['exports', 'meteor/mongo', 'rxjs'], factory) :
(factory((global.meteor = global.meteor || {}, global.meteor.rxjs = {}),global.mongo,global.rxjs));
}(this, (function (exports,mongo,rxjs) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs')) :
typeof define === 'function' && define.amd ? define(['exports', 'rxjs'], factory) :
(factory((global.meteor = global.meteor || {}, global.meteor.rxjs = {}),global.rxjs));
}(this, (function (exports,rxjs) { 'use strict';

'use strict';
var subscribeEvents = ['onReady', 'onError', 'onStop'];
Expand Down Expand Up @@ -261,11 +261,11 @@ var ObservableCursor = /** @class */ (function (_super) {
* @constructor
*/
function Collection(nameOrExisting, options) {
if (nameOrExisting instanceof mongo.Mongo.Collection) {
if (nameOrExisting instanceof Mongo.Collection) {
this._collection = nameOrExisting;
}
else {
this._collection = new mongo.Mongo.Collection(nameOrExisting, options);
this._collection = new Mongo.Collection(nameOrExisting, options);
}
}
Object.defineProperty(Collection.prototype, "collection", {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
},
"homepage": "http://www.angular-meteor.com",
"peerDependencies": {
"@types/meteor": "^1.4.6",
"babel-runtime": "^6.18.0 || ^6.26.0",
"rxjs": "^5.4.3 || ^5.0.1 || ^5.0.0-rc.4 || ^5.0.0-beta.12"
},
Expand Down
1 change: 0 additions & 1 deletion src/ObservableCollection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Mongo } from 'meteor/mongo';
import { Observable, Subscriber } from 'rxjs';
import { ObservableCursor } from './ObservableCursor';
import { removeObserver } from './utils';
Expand Down

0 comments on commit e1eb411

Please sign in to comment.