Version 1.0.2 mit node_modules Verzeichnis

This commit is contained in:
ISA
2024-10-02 07:58:24 +02:00
parent f353a06b1b
commit 62b6e55a0a
68228 changed files with 4548477 additions and 651 deletions

23
node_modules/nextjs-cors/dist/nextjs-cors.esm.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
import cors from 'cors';
// And to throw an error when an error happens in a middleware
function initMiddleware(middleware) {
return function (req, res, options) {
return new Promise(function (resolve, reject) {
middleware(options)(req, res, function (result) {
if (result instanceof Error) {
return reject(result);
}
return resolve(result);
});
});
};
} // You can read more about the available options here: https://github.com/expressjs/cors#configuration-options
var NextCors = /*#__PURE__*/initMiddleware(cors);
export default NextCors;
//# sourceMappingURL=nextjs-cors.esm.js.map