UNPKG

contentful-management

Version:
22 lines (19 loc) 642 B
import copy from 'fast-copy'; import { toPlainObject } from 'contentful-sdk-core'; import { wrapCollection } from '../common-utils.js'; /** * @internal * Wraps the raw eligible license data * @param makeRequest - function to make requests via an adapter * @param data - Raw eligible license data * @returns Wrapped eligible license data */ function wrapEligibleLicense(makeRequest, data) { return toPlainObject(copy(data)); } /** * @internal */ const wrapEligibleLicenseCollection = wrapCollection(wrapEligibleLicense); export { wrapEligibleLicense, wrapEligibleLicenseCollection }; //# sourceMappingURL=eligible-license.js.map