@okam/directus-next 1.2.0 → 1.2.2

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/response.mjs DELETED
@@ -1,14 +0,0 @@
1
- function getJsonErrorResponse(data, status) {
2
- const headers = {
3
- // eslint-disable-next-line @typescript-eslint/naming-convention
4
- "Content-Type": "text/json; charset=UTF-8"
5
- };
6
- const body = JSON.stringify(data);
7
- return new Response(body, {
8
- status,
9
- headers
10
- });
11
- }
12
- export {
13
- getJsonErrorResponse
14
- };