screenshotone-api-sdk 1.0.30 → 1.0.31
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/main.js +6 -1
- package/package.json +1 -1
- package/src/main.ts +5 -1
package/dist/main.js
CHANGED
|
@@ -611,7 +611,12 @@ class AnimateOptions {
|
|
|
611
611
|
}
|
|
612
612
|
put(key, ...values) {
|
|
613
613
|
for (const value of values) {
|
|
614
|
-
|
|
614
|
+
if (values.length == 1) {
|
|
615
|
+
this.query.set(key, value);
|
|
616
|
+
}
|
|
617
|
+
else {
|
|
618
|
+
this.query.append(key, value);
|
|
619
|
+
}
|
|
615
620
|
}
|
|
616
621
|
}
|
|
617
622
|
;
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -734,7 +734,11 @@ export class AnimateOptions {
|
|
|
734
734
|
|
|
735
735
|
private put(key: string, ...values: string[]) {
|
|
736
736
|
for (const value of values) {
|
|
737
|
-
|
|
737
|
+
if (values.length == 1) {
|
|
738
|
+
this.query.set(key, value);
|
|
739
|
+
} else {
|
|
740
|
+
this.query.append(key, value);
|
|
741
|
+
}
|
|
738
742
|
}
|
|
739
743
|
};
|
|
740
744
|
|