Skip to content

Commit 3a9f5c3

Browse files
committed
wrap entry point to prepareValue to only accept 1 arg
1 parent fa16966 commit 3a9f5c3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/utils.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ function normalizeQueryConfig (config, values, callback) {
103103
}
104104

105105
module.exports = {
106-
prepareValue: prepareValue,
106+
prepareValue: function prepareValueWrapper (value) {
107+
//this ensures that extra arguments do not get passed into prepareValue
108+
//by accident, eg: from calling values.map(utils.prepareValue)
109+
return prepareValue(value);
110+
},
107111
normalizeQueryConfig: normalizeQueryConfig
108112
};

0 commit comments

Comments
 (0)