Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var Keys = require('../Keys');
var Precedence = require('../Precedence');
var Observable = require('falcor').Observable;
var PrecedenceProcessor = {
execute: executeByPrecedence
};
module.exports = PrecedenceProcessor;
function executeByPrecedence(paths, matches, method, context, valueObject) {
// process until there are no more paths or no more matches.
var matched;
var newPerms;
var matchedPaths;
var i = 0;
var generatedResults;
var results = [];
while (paths.length && matches.length) {
matched = matches.shift();