@server/next 0.21.10 → 0.21.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@server/next",
3
- "version": "0.21.10",
3
+ "version": "0.21.11",
4
4
  "description": "A fully-fledged web server with routing, file uploads, sessions, static files, schema validation, websockets, testing, etc.",
5
5
  "homepage": "https://server-js.com/",
6
6
  "repository": "https://github.com/franciscop/server-next.git",
@@ -1,6 +1,7 @@
1
1
  export { default as createCookies } from "./createCookies.js";
2
2
  export { default as createId } from "./createId.js";
3
3
  export { default as config } from "./config.js";
4
+ export { default as cors } from "./cors.js";
4
5
  export { default as define } from "./define.js";
5
6
  export { default as getMachine } from "./getMachine.js";
6
7
  export { default as handleRequest } from "./handleRequest.js";
@@ -1,6 +1,6 @@
1
1
  // import { Readable } from "node:stream";
2
2
 
3
- import { createCookies, createId } from "./helpers/index.js";
3
+ import { cors, createCookies, createId } from "./helpers/index.js";
4
4
  import { json } from "./reply.js";
5
5
  import ServerError from "./ServerError.js";
6
6