lkd-web-kit 0.3.19 → 0.3.20

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const queryString = require('query-string');
5
+ const qs = require('qs');
6
6
 
7
7
  const newHref = (fn) => (args) => {
8
8
  const href = typeof fn === "string" ? fn : fn(
@@ -12,11 +12,10 @@ const newHref = (fn) => (args) => {
12
12
  }
13
13
  );
14
14
  if (args?.searchParams) {
15
- const qs = queryString.stringify(args.searchParams, {
16
- skipEmptyString: true,
17
- skipNull: true
15
+ const stringify = qs.stringify(args.searchParams, {
16
+ skipNulls: true
18
17
  });
19
- return `${href}${qs ? `?${qs}` : ""}`;
18
+ return `${href}${stringify ? `?${stringify}` : ""}`;
20
19
  }
21
20
  return href;
22
21
  };
@@ -1,4 +1,4 @@
1
- import queryString from 'query-string';
1
+ import qs from 'qs';
2
2
 
3
3
  const newHref = (fn) => (args) => {
4
4
  const href = typeof fn === "string" ? fn : fn(
@@ -8,11 +8,10 @@ const newHref = (fn) => (args) => {
8
8
  }
9
9
  );
10
10
  if (args?.searchParams) {
11
- const qs = queryString.stringify(args.searchParams, {
12
- skipEmptyString: true,
13
- skipNull: true
11
+ const stringify = qs.stringify(args.searchParams, {
12
+ skipNulls: true
14
13
  });
15
- return `${href}${qs ? `?${qs}` : ""}`;
14
+ return `${href}${stringify ? `?${stringify}` : ""}`;
16
15
  }
17
16
  return href;
18
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkd-web-kit",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "A template for creating React component libraries with Vite.",
5
5
  "author": "LKD",
6
6
  "license": "MIT",
@@ -32,6 +32,7 @@
32
32
  "@testing-library/react": "^16.3.0",
33
33
  "@testing-library/user-event": "^14.6.1",
34
34
  "@types/node": "^22.15.21",
35
+ "@types/qs": "^6.14.0",
35
36
  "@types/react": "^19.1.5",
36
37
  "@types/react-dom": "^19.1.5",
37
38
  "@typescript-eslint/eslint-plugin": "^8.32.1",
@@ -61,7 +62,7 @@
61
62
  "clsx": "^2.1.1",
62
63
  "ky": "^1.8.1",
63
64
  "next": "^15.3.3",
64
- "query-string": "^9.2.1",
65
+ "qs": "^6.14.0",
65
66
  "react": "^19.1.0",
66
67
  "react-dom": "^19.1.0",
67
68
  "react-hook-form": "^7.58.1",