@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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
696
|
+
for (const item of value) usp.append(`${key}[]`, String(item));
|
|
697
697
|
} else {
|
|
698
698
|
usp.set(key, String(value));
|
|
699
699
|
}
|