screenshotone-api-sdk 1.0.36 → 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.
- package/.vscode/settings.json +3 -0
- package/dist/@types/main.d.ts +4 -0
- package/dist/main.js +7 -0
- package/package.json +1 -1
- package/src/main.ts +9 -0
package/dist/@types/main.d.ts
CHANGED
|
@@ -148,6 +148,10 @@ export declare class TakeOptions {
|
|
|
148
148
|
* Sets response format, one of: "png", "jpeg", "webp" or "jpg".
|
|
149
149
|
*/
|
|
150
150
|
format(format: string): TakeOptions;
|
|
151
|
+
/**
|
|
152
|
+
* Sets IP country code.
|
|
153
|
+
*/
|
|
154
|
+
ipCountryCode(format: string): TakeOptions;
|
|
151
155
|
/**
|
|
152
156
|
* Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
|
|
153
157
|
*/
|
package/dist/main.js
CHANGED
|
@@ -327,6 +327,13 @@ class TakeOptions {
|
|
|
327
327
|
this.put("format", format);
|
|
328
328
|
return this;
|
|
329
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* Sets IP country code.
|
|
332
|
+
*/
|
|
333
|
+
ipCountryCode(format) {
|
|
334
|
+
this.put("ip_country_code", format);
|
|
335
|
+
return this;
|
|
336
|
+
}
|
|
330
337
|
/**
|
|
331
338
|
* Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
|
|
332
339
|
*/
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -368,6 +368,15 @@ export class TakeOptions {
|
|
|
368
368
|
return this;
|
|
369
369
|
}
|
|
370
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
|
+
|
|
371
380
|
/**
|
|
372
381
|
* Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
|
|
373
382
|
*/
|