@moxb/meteor
Advanced tools
Comparing version 0.3.85 to 0.3.86
@@ -58,3 +58,3 @@ /// <reference types="meteor" /> | ||
*/ | ||
clientSelector?: (input: Input) => Mongo.Selector<Document>; | ||
clientSelector?: (input: Input, userId?: string | null) => Mongo.Selector<Document>; | ||
/** | ||
@@ -61,0 +61,0 @@ * Should we perhaps stop the subscription on some condition of the output? |
@@ -32,3 +32,4 @@ "use strict"; | ||
var getClientCursor = function (args) { | ||
var selectors = clientSelector ? clientSelector(args) : selector(args); | ||
var userId = Meteor.userId(); | ||
var selectors = clientSelector ? clientSelector(args, userId) : selector(args, userId); | ||
var cursor = collection.find(selectors, clientOptions ? clientOptions(args) : options ? options(args) : undefined); | ||
@@ -98,2 +99,2 @@ logger.log('filtering with', JSON.stringify(selectors), 'results:', cursor.count(), 'out of', collection.find({}).count()); | ||
exports.registerMeteorPublication = registerMeteorPublication; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWV0ZW9yUHVibGljYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvTWV0ZW9yUHVibGljYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMERBQStEO0FBdUcvRDs7Ozs7Ozs7Ozs7Ozs7OztHQWdCRztBQUNILFNBQWdCLHlCQUF5QixDQUNyQyxNQUF1RDtJQUduRCxJQUFBLElBQUksR0FVSixNQUFNLEtBVkYsRUFDSixVQUFVLEdBU1YsTUFBTSxXQVRJLEVBQ1YsVUFBVSxHQVFWLE1BQU0sV0FSSSxFQUNWLFFBQVEsR0FPUixNQUFNLFNBUEUsRUFDUixjQUFjLEdBTWQsTUFBTSxlQU5RLEVBQ2QsTUFBTSxHQUtOLE1BQU0sT0FMQSxFQUNOLElBQUksR0FJSixNQUFNLEtBSkYsRUFDSixPQUFPLEdBR1AsTUFBTSxRQUhDLEVBQ1AsYUFBYSxHQUViLE1BQU0sY0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ts": { | ||
}, | ||
"gitHead": "cce13516184d7278892fdf2c2030759a4bfff517" | ||
"gitHead": "e279f2b05cc309953f7dbe06790c83475194d812" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
264736
4208