Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Reactively publish aggregations.
This helper can be used to reactively publish the results of an aggregation.

## Usage
import ReactiveAggregate from 'meteor/jcbernack:reactive-aggregate';

ReactiveAggregate(subscription, collection, pipeline[, options])

- `subscription` should always be `this` in a publication.
Expand Down
2 changes: 1 addition & 1 deletion aggregate.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const defaultOptions = ({
...options
});

export const ReactiveAggregate = function (subscription, collection, pipeline = [], options = {}) {
export default ReactiveAggregate = function (subscription, collection, pipeline = [], options = {}) {
// fill out default options
const {
observeSelector, observeOptions, delay, lookupCollections, clientCollection
Expand Down
7 changes: 0 additions & 7 deletions mongo-collection-aggregate.js

This file was deleted.

17 changes: 8 additions & 9 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
Package.describe({
name: "jcbernack:reactive-aggregate",
version: "1.0.0",
name: 'jcbernack:reactive-aggregate',
version: '1.1.0',
// Brief, one-line summary of the package.
summary: "Reactively publish aggregations.",
summary: 'Reactively publish aggregations.',
// URL to the Git repository containing the source code for this package.
git: "https://github.com/JcBernack/meteor-reactive-aggregate",
git: 'https://github.com/JcBernack/meteor-reactive-aggregate',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: "README.md"
documentation: 'README.md'
});

Package.onUse(function(api) {
api.versionsFrom("1.5");
api.use(['ecmascript', 'underscore', 'mongo']);
api.versionsFrom('1.5');
api.use(['ecmascript', 'underscore', 'mongo', 'sakulstra:[email protected]'], ['server']);

api.addFiles("./mongo-collection-aggregate.js");
api.mainModule("./aggregate.js");
api.mainModule('aggregate.js', 'server');
});