UNPKG

contentful-management

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