You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
831 B

2 months ago
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
interceptTestApis: null,
wrapRequestHandler: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
interceptTestApis: function() {
return interceptTestApis;
},
wrapRequestHandler: function() {
return wrapRequestHandler;
}
});
const _context = require("./context");
const _fetch = require("./fetch");
function interceptTestApis() {
return (0, _fetch.interceptFetch)(global.fetch);
}
function wrapRequestHandler(handler) {
return (req, fn)=>(0, _context.withRequest)(req, _fetch.reader, ()=>handler(req, fn));
}
//# sourceMappingURL=server-edge.js.map