mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-11 04:33:02 +02:00
Remove node-fetch
This commit is contained in:
parent
7782c120bf
commit
984d4362a5
14 changed files with 30 additions and 131 deletions
|
@ -3,8 +3,6 @@
|
|||
const Ty = require("../types")
|
||||
const assert = require("assert").strict
|
||||
|
||||
const fetch = require("node-fetch").default
|
||||
|
||||
const passthrough = require("../passthrough")
|
||||
const {sync} = passthrough
|
||||
/** @type {import("./mreq")} */
|
||||
|
@ -344,7 +342,7 @@ async function ping() {
|
|||
|
||||
/**
|
||||
* @param {string} mxc
|
||||
* @param {fetch.RequestInit} [init]
|
||||
* @param {RequestInit} [init]
|
||||
*/
|
||||
function getMedia(mxc, init = {}) {
|
||||
const mediaParts = mxc?.match(/^mxc:\/\/([^/]+)\/(\w+)$/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue