UNPKG

ad-promise

Version:

This is a fork of the gheeres node-activedirectory. It fixes some issues with timeouts with very large AD-Groups as well as returning also promises so you won't have to use callbacks

18 lines (14 loc) 516 B
const shouldIncludeAllAttributes = require('./service.shouldIncludeAllAttributes'); const _ = require('underscore'); /** * Retrieves / merges the attributes for the query. */ const joinAttributes = () => { for (var index = 0, length = arguments.length; index < length; index++) { if (shouldIncludeAllAttributes(arguments[index])) { return ([]); } } return (_.union.apply(this, arguments)); } module.exports = joinAttributes;