Skip to content

Commit f406c51

Browse files
authored
fix: update whatwg-node patch to remove fetch refs (#13)
1 parent 7d22777 commit f406c51

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

patches/@whatwg-node+server+0.10.17.patch

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ index e24db6e..980d0d8 100644
1818
...options?.fetchAPI,
1919
};
2020
const useCustomAbortCtrl = options?.__useCustomAbortCtrl == null
21+
diff --git a/node_modules/@whatwg-node/server/cjs/index.js b/node_modules/@whatwg-node/server/cjs/index.js
22+
index abb80e8..869c427 100644
23+
--- a/node_modules/@whatwg-node/server/cjs/index.js
24+
+++ b/node_modules/@whatwg-node/server/cjs/index.js
25+
@@ -7,11 +7,8 @@ tslib_1.__exportStar(require("./types.js"), exports);
26+
tslib_1.__exportStar(require("./utils.js"), exports);
27+
tslib_1.__exportStar(require("./plugins/types.js"), exports);
28+
tslib_1.__exportStar(require("./plugins/useCors.js"), exports);
29+
-tslib_1.__exportStar(require("./plugins/useErrorHandling.js"), exports);
30+
tslib_1.__exportStar(require("./plugins/useContentEncoding.js"), exports);
31+
tslib_1.__exportStar(require("./uwebsockets.js"), exports);
32+
-var fetch_1 = require("@whatwg-node/fetch");
33+
-Object.defineProperty(exports, "Response", { enumerable: true, get: function () { return fetch_1.Response; } });
34+
var disposablestack_1 = require("@whatwg-node/disposablestack");
35+
Object.defineProperty(exports, "DisposableSymbols", { enumerable: true, get: function () { return disposablestack_1.DisposableSymbols; } });
36+
tslib_1.__exportStar(require("@envelop/instrumentation"), exports);
2137
diff --git a/node_modules/@whatwg-node/server/esm/createServerAdapter.js b/node_modules/@whatwg-node/server/esm/createServerAdapter.js
2238
index 941f115..0815d9a 100644
2339
--- a/node_modules/@whatwg-node/server/esm/createServerAdapter.js
@@ -37,6 +53,20 @@ index 941f115..0815d9a 100644
3753
...options?.fetchAPI,
3854
};
3955
const useCustomAbortCtrl = options?.__useCustomAbortCtrl == null
56+
diff --git a/node_modules/@whatwg-node/server/esm/index.js b/node_modules/@whatwg-node/server/esm/index.js
57+
index f83b68c..2eaf6d3 100644
58+
--- a/node_modules/@whatwg-node/server/esm/index.js
59+
+++ b/node_modules/@whatwg-node/server/esm/index.js
60+
@@ -3,9 +3,7 @@ export * from './types.js';
61+
export * from './utils.js';
62+
export * from './plugins/types.js';
63+
export * from './plugins/useCors.js';
64+
-export * from './plugins/useErrorHandling.js';
65+
export * from './plugins/useContentEncoding.js';
66+
export * from './uwebsockets.js';
67+
-export { Response } from '@whatwg-node/fetch';
68+
export { DisposableSymbols } from '@whatwg-node/disposablestack';
69+
export * from '@envelop/instrumentation';
4070
diff --git a/node_modules/@whatwg-node/server/esm/utils.js b/node_modules/@whatwg-node/server/esm/utils.js
4171
index 237a6e1..5cbe472 100644
4272
--- a/node_modules/@whatwg-node/server/esm/utils.js

0 commit comments

Comments
 (0)