@mercurjs/client 2.0.0-canary.2 → 2.0.0-canary.21

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/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { MedusaResponse } from '@medusajs/framework/http';
1
+ import { MedusaResponse } from '@medusajs/framework';
2
2
 
3
3
  type DecrementDepth = [never, 0, 1, 2, 3, 4, 5, 6];
4
4
  type PrettifyDeep<T, Depth extends number = 4> = Depth extends never ? T : T extends (...args: any[]) => any ? T : T extends Array<infer U> ? Array<PrettifyDeep<U, DecrementDepth[Depth]>> : T extends Date ? T : T extends object ? {
package/dist/index.mjs CHANGED
@@ -51,7 +51,7 @@ var __async = (__this, __arguments, generator) => {
51
51
  };
52
52
 
53
53
  // src/index.ts
54
- import { stringify } from "qs";
54
+ import qs from "qs";
55
55
 
56
56
  // src/create-proxy.ts
57
57
  function createRecursiveProxy(callback, path = []) {
@@ -108,7 +108,7 @@ function createClient(options) {
108
108
  const url = new URL(fullPath, base.origin);
109
109
  let body;
110
110
  if (method === "GET" && Object.keys(rest).length > 0) {
111
- url.search = stringify(rest, { skipNulls: true });
111
+ url.search = qs.stringify(rest, { skipNulls: true });
112
112
  } else if (method !== "GET" && Object.keys(rest).length > 0) {
113
113
  body = JSON.stringify(rest);
114
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/client",
3
- "version": "2.0.0-canary.2",
3
+ "version": "2.0.0-canary.21",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@tanstack/react-query": "^5.64.2",
31
- "qs": "^6.14.0"
31
+ "qs": "^6.12.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@medusajs/framework": "^2.13.0",