"use strict";
/**
 * Matcher for query
 * Ported from https://github.com/optimizely/client-js/blob/5025fb16720e35213b822c0e673a265d24ae4bff/src/plugins/feature_query/matchers/query.js
 * @module
 */
var match = require('../match');
/**
 * @type ConditionMatcher
 */
module.exports = {
    fieldsNeeded: ['queryParams'],
    /**
     * @param {Object} value
     * @param {Condition} cond
     * @return {Boolean}
     */
    match: function (value, cond) {
        return match.hasMatch(cond.value, cond.match, value.get(cond.name));
    },
};
