UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

16 lines (15 loc) 555 B
"use strict"; var uniqBy = require("lodash/uniqBy"); function _interopDefaultCompat(e) { return e && typeof e == "object" && "default" in e ? e : { default: e }; } var uniqBy__default = /* @__PURE__ */ _interopDefaultCompat(uniqBy); function uniqueProjectIdDataset(workspaces) { return uniqBy__default.default(workspaces.map((w) => ({ key: `${w.projectId}-${w.dataset}`, projectId: w.projectId, dataset: w.dataset })), "key"); } exports.uniqueProjectIdDataset = uniqueProjectIdDataset; //# sourceMappingURL=uniqueProjectIdDataset.js.map