UNPKG

couchbase-index-manager

Version:
20 lines 597 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NodeMapValidators = void 0; const lodash_1 = require("lodash"); /** * Validators for the incoming node map properties. */ exports.NodeMapValidators = { map: function (map) { if (!(0, lodash_1.isObjectLike)(map)) { throw new Error('Invalid node map'); } (0, lodash_1.forOwn)(map, (v) => { if (!(0, lodash_1.isString)(v)) { throw new Error('Invalid node map'); } }); }, }; //# sourceMappingURL=node-map-validation.js.map