packages/embed-plugin-noembed/src/index.js
async function _process(args, { fetch }) {
  const url = args[0]
  try {
    const res = await fetch(`https://noembed.com/embed?url=${url}`)
    return await res.json()
  } catch (e) {
    return {
      html: url
    }
  }
}
async function _process(args, { fetch }) {
  const url = args[0]
  try {
    const res = await fetch(`https://noembed.com/embed?url=${url}`)
    return await res.json()
  } catch (e) {
    return {
      html: url
    }
  }
}
async function _process ( args , { fetch } ) { const url = args [ 0 ] try { const res = await fetch ( ` ${ url } ` ) return await res . json ( ) } catch ( e ) { return { html : url } } }
Fetches the data from the noembed API
@param args
@returns {Promise.<*>}
Fetches the data from the noembed API