contentful-management
Version:
Client for Contentful's Content Management API
22 lines (19 loc) • 651 B
JavaScript
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