diff --git a/README.md b/README.md new file mode 100644 index 00000000..399c6ec5 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Meteor + RxJS +Use Meteor API in RxJS style. diff --git a/dist/meteor-observable.d.ts b/dist/MeteorObservable.d.ts similarity index 100% rename from dist/meteor-observable.d.ts rename to dist/MeteorObservable.d.ts diff --git a/dist/meteor-observable.js b/dist/MeteorObservable.js similarity index 100% rename from dist/meteor-observable.js rename to dist/MeteorObservable.js diff --git a/dist/observable-collection.d.ts b/dist/ObservableCollection.d.ts similarity index 97% rename from dist/observable-collection.d.ts rename to dist/ObservableCollection.d.ts index b230be98..1e52e38d 100644 --- a/dist/observable-collection.d.ts +++ b/dist/ObservableCollection.d.ts @@ -1,5 +1,5 @@ import { Observable } from 'rxjs'; -import { ObservableCursor } from './observable-cursor'; +import { ObservableCursor } from './ObservableCursor'; import Selector = Mongo.Selector; import ObjectID = Mongo.ObjectID; import SortSpecifier = Mongo.SortSpecifier; diff --git a/dist/observable-collection.js b/dist/ObservableCollection.js similarity index 96% rename from dist/observable-collection.js rename to dist/ObservableCollection.js index 4c18eba7..5b2da95f 100644 --- a/dist/observable-collection.js +++ b/dist/ObservableCollection.js @@ -1,6 +1,6 @@ "use strict"; var rxjs_1 = require('rxjs'); -var observable_cursor_1 = require('./observable-cursor'); +var ObservableCursor_1 = require('./ObservableCursor'); var MongoObservable; (function (MongoObservable) { 'use strict'; @@ -77,7 +77,7 @@ var MongoObservable; }; Collection.prototype.find = function (selector, options) { var cursor = this._collection.find(this._collection, arguments); - return observable_cursor_1.ObservableCursor.create(cursor); + return ObservableCursor_1.ObservableCursor.create(cursor); }; Collection.prototype.findOne = function (selector, options) { return this._collection.findOne.apply(this._collection, arguments); diff --git a/dist/observable-cursor.d.ts b/dist/ObservableCursor.d.ts similarity index 100% rename from dist/observable-cursor.d.ts rename to dist/ObservableCursor.d.ts diff --git a/dist/observable-cursor.js b/dist/ObservableCursor.js similarity index 100% rename from dist/observable-cursor.js rename to dist/ObservableCursor.js diff --git a/dist/index.d.ts b/dist/index.d.ts index d94d8167..1ade70f9 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,4 +1,4 @@ -export * from './observable-collection'; -export * from './meteor-observable'; -export * from './observable-cursor'; -export * from './zone-operator'; +export * from './ObservableCollection'; +export * from './MeteorObservable'; +export * from './ObservableCursor'; +export * from './zone'; diff --git a/dist/index.js b/dist/index.js index 4fdd35c5..7d405432 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2,7 +2,7 @@ function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } -__export(require('./observable-collection')); -__export(require('./meteor-observable')); -__export(require('./observable-cursor')); -__export(require('./zone-operator')); +__export(require('./ObservableCollection')); +__export(require('./MeteorObservable')); +__export(require('./ObservableCursor')); +__export(require('./zone')); diff --git a/dist/zone-operator.d.ts b/dist/zone.d.ts similarity index 100% rename from dist/zone-operator.d.ts rename to dist/zone.d.ts diff --git a/dist/zone-operator.js b/dist/zone.js similarity index 100% rename from dist/zone-operator.js rename to dist/zone.js diff --git a/package.json b/package.json index e39c8904..1d49d308 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "mongo-rxjs-observable", + "name": "meteor-rxjs", "version": "0.1.0", - "description": "RxJS observables for Meteor API and Mongo collections", + "description": "Use Meteor API in RxJS style", "keywords": [ "rxjs", "angular", diff --git a/src/meteor-observable.ts b/src/MeteorObservable.ts similarity index 100% rename from src/meteor-observable.ts rename to src/MeteorObservable.ts diff --git a/src/observable-collection.ts b/src/ObservableCollection.ts similarity index 98% rename from src/observable-collection.ts rename to src/ObservableCollection.ts index 13dc3f22..b60ce1be 100644 --- a/src/observable-collection.ts +++ b/src/ObservableCollection.ts @@ -1,6 +1,6 @@ import {Observable, Subscriber} from 'rxjs'; -import {ObservableCursor} from './observable-cursor'; +import {ObservableCursor} from './ObservableCursor'; import Selector = Mongo.Selector; import ObjectID = Mongo.ObjectID; diff --git a/src/observable-cursor.ts b/src/ObservableCursor.ts similarity index 100% rename from src/observable-cursor.ts rename to src/ObservableCursor.ts diff --git a/src/index.ts b/src/index.ts index d94d8167..1ade70f9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export * from './observable-collection'; -export * from './meteor-observable'; -export * from './observable-cursor'; -export * from './zone-operator'; +export * from './ObservableCollection'; +export * from './MeteorObservable'; +export * from './ObservableCursor'; +export * from './zone'; diff --git a/src/zone-operator.ts b/src/zone.ts similarity index 100% rename from src/zone-operator.ts rename to src/zone.ts diff --git a/tests/client/unit/meteor-observable.spec.ts b/tests/client/unit/meteor-observable.spec.ts index 3fe01f0a..b29cea11 100644 --- a/tests/client/unit/meteor-observable.spec.ts +++ b/tests/client/unit/meteor-observable.spec.ts @@ -1,6 +1,6 @@ import {chai} from 'meteor/practicalmeteor:chai'; import {sinon} from 'meteor/practicalmeteor:sinon'; -import {MeteorObservable} from 'mongo-rxjs-observable'; +import {MeteorObservable} from 'meteor-rxjs'; import {Observable} from 'rxjs'; const expect = chai.expect; diff --git a/tests/client/unit/observable-collection.spec.ts b/tests/client/unit/observable-collection.spec.ts index c07ffd9c..207566f1 100644 --- a/tests/client/unit/observable-collection.spec.ts +++ b/tests/client/unit/observable-collection.spec.ts @@ -1,6 +1,6 @@ import {chai} from 'meteor/practicalmeteor:chai'; import {sinon} from 'meteor/practicalmeteor:sinon'; -import {MongoObservable, ObservableCursor} from 'mongo-rxjs-observable'; +import {MongoObservable, ObservableCursor} from 'meteor-rxjs'; const expect = chai.expect; diff --git a/tests/client/unit/observable-cursor.spec.ts b/tests/client/unit/observable-cursor.spec.ts index cfa016d6..4ee9ec9b 100644 --- a/tests/client/unit/observable-cursor.spec.ts +++ b/tests/client/unit/observable-cursor.spec.ts @@ -1,7 +1,7 @@ import {chai} from 'meteor/practicalmeteor:chai'; import {sinon} from 'meteor/practicalmeteor:sinon'; import {Observable} from 'rxjs'; -import {ObservableCursor} from 'mongo-rxjs-observable'; +import {ObservableCursor} from 'meteor-rxjs'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/count'; diff --git a/tests/client/unit/zone-operator.spec.ts b/tests/client/unit/zone-operator.spec.ts index daeea33f..633b573c 100644 --- a/tests/client/unit/zone-operator.spec.ts +++ b/tests/client/unit/zone-operator.spec.ts @@ -1,7 +1,7 @@ import {chai} from 'meteor/practicalmeteor:chai'; import {sinon} from 'meteor/practicalmeteor:sinon'; import {Observable} from 'rxjs'; -import {MeteorObservable} from 'mongo-rxjs-observable'; +import {MeteorObservable} from 'meteor-rxjs'; import 'zone.js/dist/zone.js';