rads-db 0.1.81 → 0.1.83

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.
@@ -18,6 +18,9 @@ var _default = options => {
18
18
  const body = options.useFormData ? getFormDataBody(args) : await getJsonBody(args);
19
19
  const response = await fetch(`${options.baseUrl}/uploadFile`, {
20
20
  method: "POST",
21
+ headers: {
22
+ "Content-Type": "application/json"
23
+ },
21
24
  body
22
25
  });
23
26
  return await response.json();
@@ -9,6 +9,7 @@ export default (options) => {
9
9
  const body = options.useFormData ? getFormDataBody(args) : await getJsonBody(args);
10
10
  const response = await fetch(`${options.baseUrl}/uploadFile`, {
11
11
  method: "POST",
12
+ headers: { "Content-Type": "application/json" },
12
13
  body
13
14
  });
14
15
  return await response.json();
@@ -12,16 +12,7 @@ function radsDbVite(options) {
12
12
  async configResolved(config) {
13
13
  await (0, _node.generateClient)(options);
14
14
  },
15
- configureServer(server) {
16
- server.middlewares.use((req, res, next) => {
17
- if (req.url?.includes("/_rads-db/")) {
18
- req.url += Date.now();
19
- res.setHeader("Expires", "0");
20
- res.setHeader("Pragma", "no-cache");
21
- }
22
- next();
23
- });
24
- }
15
+ configureServer(server) {}
25
16
  }];
26
17
  if (options?.exposeModulesInDev) result.push(exposeModulesPlugin(options.exposeModulesInDev));
27
18
  return result;
@@ -9,14 +9,6 @@ export function radsDbVite(options) {
9
9
  await generateClient(options);
10
10
  },
11
11
  configureServer(server) {
12
- server.middlewares.use((req, res, next) => {
13
- if (req.url?.includes("/_rads-db/")) {
14
- req.url += Date.now();
15
- res.setHeader("Expires", "0");
16
- res.setHeader("Pragma", "no-cache");
17
- }
18
- next();
19
- });
20
12
  }
21
13
  }
22
14
  ];
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "require": "./features/*.cjs"
41
41
  }
42
42
  },
43
- "version": "0.1.81",
43
+ "version": "0.1.83",
44
44
  "description": "Say goodbye to boilerplate code and hello to efficient and elegant syntax.",
45
45
  "keywords": [],
46
46
  "author": "",