@book000/pixivts 0.56.1 → 0.56.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/dist/index.cjs CHANGED
@@ -695,7 +695,7 @@ function buildSearchParams(params) {
695
695
  for (const [key, value] of Object.entries(params)) {
696
696
  if (value === null || value === void 0) continue;
697
697
  if (Array.isArray(value)) {
698
- for (const item of value) usp.append(key, String(item));
698
+ for (const item of value) usp.append(`${key}[]`, String(item));
699
699
  } else {
700
700
  usp.set(key, String(value));
701
701
  }
package/dist/index.js CHANGED
@@ -693,7 +693,7 @@ function buildSearchParams(params) {
693
693
  for (const [key, value] of Object.entries(params)) {
694
694
  if (value === null || value === void 0) continue;
695
695
  if (Array.isArray(value)) {
696
- for (const item of value) usp.append(key, String(item));
696
+ for (const item of value) usp.append(`${key}[]`, String(item));
697
697
  } else {
698
698
  usp.set(key, String(value));
699
699
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@book000/pixivts",
3
- "version": "0.56.1",
3
+ "version": "0.56.2",
4
4
  "description": "pixiv Unofficial API Library for TypeScript",
5
5
  "keywords": [
6
6
  "pixiv",