screenshotone-api-sdk 1.0.35 → 1.0.37

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "cmake.configureOnOpen": false
3
+ }
@@ -140,10 +140,18 @@ export declare class TakeOptions {
140
140
  * Renders the full page.
141
141
  */
142
142
  fullPage(fullPage: boolean): TakeOptions;
143
+ /**
144
+ * Max height.
145
+ */
146
+ fullPageMaxHeight(maxHeight: number): TakeOptions;
143
147
  /**
144
148
  * Sets response format, one of: "png", "jpeg", "webp" or "jpg".
145
149
  */
146
150
  format(format: string): TakeOptions;
151
+ /**
152
+ * Sets IP country code.
153
+ */
154
+ ipCountryCode(format: string): TakeOptions;
147
155
  /**
148
156
  * Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
149
157
  */
package/dist/main.js CHANGED
@@ -313,6 +313,13 @@ class TakeOptions {
313
313
  this.put("full_page", fullPage ? "true" : "false");
314
314
  return this;
315
315
  }
316
+ /**
317
+ * Max height.
318
+ */
319
+ fullPageMaxHeight(maxHeight) {
320
+ this.put("full_page_max_height", maxHeight.toString());
321
+ return this;
322
+ }
316
323
  /**
317
324
  * Sets response format, one of: "png", "jpeg", "webp" or "jpg".
318
325
  */
@@ -320,6 +327,13 @@ class TakeOptions {
320
327
  this.put("format", format);
321
328
  return this;
322
329
  }
330
+ /**
331
+ * Sets IP country code.
332
+ */
333
+ ipCountryCode(format) {
334
+ this.put("ip_country_code", format);
335
+ return this;
336
+ }
323
337
  /**
324
338
  * Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
325
339
  */
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.35",
4
+ "version": "1.0.37",
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
@@ -349,6 +349,16 @@ export class TakeOptions {
349
349
  return this;
350
350
  }
351
351
 
352
+ /**
353
+ * Max height.
354
+ */
355
+ fullPageMaxHeight(maxHeight: number): TakeOptions {
356
+ this.put("full_page_max_height", maxHeight.toString());
357
+
358
+ return this;
359
+ }
360
+
361
+
352
362
  /**
353
363
  * Sets response format, one of: "png", "jpeg", "webp" or "jpg".
354
364
  */
@@ -358,6 +368,15 @@ export class TakeOptions {
358
368
  return this;
359
369
  }
360
370
 
371
+ /**
372
+ * Sets IP country code.
373
+ */
374
+ ipCountryCode(format: string): TakeOptions {
375
+ this.put("ip_country_code", format);
376
+
377
+ return this;
378
+ }
379
+
361
380
  /**
362
381
  * Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
363
382
  */