diff options
author | 2022-06-22 23:21:48 -0700 | |
---|---|---|
committer | 2022-06-22 23:21:48 -0700 | |
commit | 729d445b6885f69dd2c6355f38707bd42851c791 (patch) | |
tree | f87a7c408929ea3f57bbb7ace380cf869da83c0e /src/javascript/jsc/undici.exports.js | |
parent | 25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff) | |
download | bun-jarred/rename.tar.gz bun-jarred/rename.tar.zst bun-jarred/rename.zip |
change the directory structurejarred/rename
Diffstat (limited to 'src/javascript/jsc/undici.exports.js')
-rw-r--r-- | src/javascript/jsc/undici.exports.js | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/src/javascript/jsc/undici.exports.js b/src/javascript/jsc/undici.exports.js deleted file mode 100644 index 70d7ebcae..000000000 --- a/src/javascript/jsc/undici.exports.js +++ /dev/null @@ -1,104 +0,0 @@ -export var fetch = Bun.fetch; -export var Response = globalThis.Response; -export var Headers = globalThis.Headers; -export var Request = globalThis.Request; -export var URLSearchParams = globalThis.URLSearchParams; -export var URL = globalThis.URL; -export class File extends Blob {} -export class FileReader extends EventTarget { - constructor() { - throw new Error("Not implemented yet!"); - } -} - -export class FormData { - constructor() { - throw new Error("Not implemented yet!"); - } -} -function notImplemented() { - throw new Error("Not implemented in bun"); -} -export function request() { - throw new Error("Not implemented in bun"); -} -export function stream() { - throw new Error("Not implemented in bun"); -} -export function pipeline() { - throw new Error("Not implemented in bun"); -} -export function connect() { - throw new Error("Not implemented in bun"); -} -export function upgrade() { - throw new Error("Not implemented in bun"); -} - -export class MockClient { - constructor() { - throw new Error("Not implemented in bun"); - } -} -export class MockPool { - constructor() { - throw new Error("Not implemented in bun"); - } -} -export class MockAgent { - constructor() { - throw new Error("Not implemented in bun"); - } -} - -export function mockErrors() { - throw new Error("Not implemented in bun"); -} - -export function Undici() { - throw new Error("Not implemented in bun"); -} - -Undici.Dispatcher = - Undici.Pool = - Undici.BalancedPool = - Undici.Client = - Undici.buildConnector = - Undici.errors = - Undici.Agent = - Undici.setGlobalDispatcher = - Undici.getGlobalDispatcher = - Undici.request = - Undici.stream = - Undici.pipeline = - Undici.connect = - Undici.upgrade = - Undici.MockClient = - Undici.MockPool = - Undici.MockAgent = - Undici.mockErrors = - notImplemented; - -Undici.fetch = fetch; - -export default { - fetch, - Response, - Headers, - Request, - URLSearchParams, - URL, - File, - FileReader, - FormData, - request, - stream, - pipeline, - connect, - upgrade, - MockClient, - MockPool, - MockAgent, - mockErrors, - Undici, -}; |