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 CHANGED
@@ -611,7 +611,12 @@ class AnimateOptions {
611
611
  }
612
612
  put(key, ...values) {
613
613
  for (const value of values) {
614
- this.query.append(key, value);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "screenshotone-api-sdk",
3
3
  "homepage": "https://screenshotone.com",
4
- "version": "1.0.30",
4
+ "version": "1.0.31",
5
5
  "description": "Use ScreenshotOne.com API to generate screenshots of any website.",
6
6
  "repository": {
7
7
  "type": "git",
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
- this.query.append(key, value);
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