felixgirault/essence.js

View on GitHub
src/extractors/extractOEmbed.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 *
 */
export default async function extractOEmbed(
    findService,
    extract,
    payload
) {
    const service = await findService(payload.req.url());
    return service
        ? extract(service, payload)
        : payload;
}