screenshotone-api-sdk 1.1.25 → 1.2.0

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.
@@ -269,10 +269,6 @@ export declare class TakeOptions {
269
269
  * Sets IP country code.
270
270
  */
271
271
  ipCountryCode(countryCode: string): TakeOptions;
272
- /**
273
- * Sets the ScreenshotOne server region used for the request.
274
- */
275
- serversRegion(region: string): TakeOptions;
276
272
  /**
277
273
  * Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
278
274
  */
@@ -358,10 +354,6 @@ export declare class TakeOptions {
358
354
  * Blocks chats.
359
355
  */
360
356
  blockChats(block: boolean): TakeOptions;
361
- /**
362
- * Blocks social widgets.
363
- */
364
- blockSocials(block: boolean): TakeOptions;
365
357
  /**
366
358
  * Blocks trackers.
367
359
  */
package/dist/main.js CHANGED
@@ -674,13 +674,6 @@ class TakeOptions {
674
674
  this.put("ip_country_code", countryCode);
675
675
  return this;
676
676
  }
677
- /**
678
- * Sets the ScreenshotOne server region used for the request.
679
- */
680
- serversRegion(region) {
681
- this.put("servers_region", region);
682
- return this;
683
- }
684
677
  /**
685
678
  * Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
686
679
  */
@@ -826,13 +819,6 @@ class TakeOptions {
826
819
  this.put("block_chats", block ? "true" : "false");
827
820
  return this;
828
821
  }
829
- /**
830
- * Blocks social widgets.
831
- */
832
- blockSocials(block) {
833
- this.put("block_socials", block ? "true" : "false");
834
- return this;
835
- }
836
822
  /**
837
823
  * Blocks trackers.
838
824
  */
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.1.25",
4
+ "version": "1.2.0",
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
@@ -888,15 +888,6 @@ export class TakeOptions {
888
888
  return this;
889
889
  }
890
890
 
891
- /**
892
- * Sets the ScreenshotOne server region used for the request.
893
- */
894
- serversRegion(region: string): TakeOptions {
895
- this.put("servers_region", region);
896
-
897
- return this;
898
- }
899
-
900
891
  /**
901
892
  * Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
902
893
  */
@@ -1088,15 +1079,6 @@ export class TakeOptions {
1088
1079
  return this;
1089
1080
  }
1090
1081
 
1091
- /**
1092
- * Blocks social widgets.
1093
- */
1094
- blockSocials(block: boolean): TakeOptions {
1095
- this.put("block_socials", block ? "true" : "false");
1096
-
1097
- return this;
1098
- }
1099
-
1100
1082
  /**
1101
1083
  * Blocks trackers.
1102
1084
  */
@@ -74,8 +74,6 @@ describe("testing client", () => {
74
74
  .fullPageSlices(true)
75
75
  .fullPageSliceHeight(3000)
76
76
  .fullPageSliceOverlapHeight(500)
77
- .serversRegion("us-east")
78
- .blockSocials(true)
79
77
  .proxy("http://proxy.example.com")
80
78
  .proxyBypassHosts(
81
79
  "cdn.example.com",
@@ -113,8 +111,6 @@ describe("testing client", () => {
113
111
  full_page_slices: ["true"],
114
112
  full_page_slice_height: ["3000"],
115
113
  full_page_slice_overlap_height: ["500"],
116
- servers_region: ["us-east"],
117
- block_socials: ["true"],
118
114
  proxy: ["http://proxy.example.com"],
119
115
  proxy_bypass_hosts: [
120
116
  "cdn.example.com",