New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

screenshotone-api-sdk

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screenshotone-api-sdk - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

3

dist/@types/main.d.ts

@@ -7,3 +7,4 @@ /**

private readonly secretKey;
constructor(accessKey: string, secretKey: string);
private readonly apiBaseUrl;
constructor(accessKey: string, secretKey: string, apiBaseUrl?: string);
/**

@@ -10,0 +11,0 @@ * Generates an URL that can be used to send GET requests for taking screenshots.

@@ -17,3 +17,3 @@ "use strict";

class Client {
constructor(accessKey, secretKey) {
constructor(accessKey, secretKey, apiBaseUrl) {
if (!accessKey || !secretKey) {

@@ -24,2 +24,3 @@ throw new Error("Both non-empty access and secret keys are required");

this.secretKey = secretKey;
this.apiBaseUrl = apiBaseUrl ? apiBaseUrl : API_BASE_URL;
}

@@ -38,3 +39,3 @@ /**

let queryString = query.toString();
return `${API_BASE_URL}${API_TAKE_PATH}?${queryString}`;
return `${this.apiBaseUrl}${API_TAKE_PATH}?${queryString}`;
}

@@ -54,3 +55,3 @@ /**

queryString += "&signature=" + signature;
return `${API_BASE_URL}${API_TAKE_PATH}?${queryString}`;
return `${this.apiBaseUrl}${API_TAKE_PATH}?${queryString}`;
}

@@ -70,3 +71,3 @@ /**

queryString += "&signature=" + signature;
return `${API_BASE_URL}${API_ANIMATE_PATH}?${queryString}`;
return `${this.apiBaseUrl}${API_ANIMATE_PATH}?${queryString}`;
}

@@ -73,0 +74,0 @@ /**

{
"name": "screenshotone-api-sdk",
"homepage": "https://screenshotone.com",
"version": "1.1.6",
"version": "1.1.7",
"description": "Use ScreenshotOne.com API to generate screenshots of any website.",

@@ -6,0 +6,0 @@ "repository": {

@@ -15,4 +15,5 @@ import Big from "big.js";

private readonly secretKey: string;
private readonly apiBaseUrl: string;
constructor(accessKey: string, secretKey: string) {
constructor(accessKey: string, secretKey: string, apiBaseUrl?: string) {
if (!accessKey || !secretKey) {

@@ -26,2 +27,3 @@ throw new Error(

this.secretKey = secretKey;
this.apiBaseUrl = apiBaseUrl ? apiBaseUrl : API_BASE_URL;
}

@@ -42,3 +44,3 @@

return `${API_BASE_URL}${API_TAKE_PATH}?${queryString}`;
return `${this.apiBaseUrl}${API_TAKE_PATH}?${queryString}`;
}

@@ -61,3 +63,3 @@

return `${API_BASE_URL}${API_TAKE_PATH}?${queryString}`;
return `${this.apiBaseUrl}${API_TAKE_PATH}?${queryString}`;
}

@@ -80,3 +82,3 @@

return `${API_BASE_URL}${API_ANIMATE_PATH}?${queryString}`;
return `${this.apiBaseUrl}${API_ANIMATE_PATH}?${queryString}`;
}

@@ -147,5 +149,5 @@

acl?: "public-read" | "",
storageClass?: string,
storageClass?: string,
accessKeyId?: string,
secretAccessKey?: string,
secretAccessKey?: string
): Promise<{ bucket: string | null; key: string | null }> {

@@ -164,6 +166,6 @@ options.store(true).storagePath(path).responseType("empty");

if (accessKeyId) {
options.storageAccessKeyId(accessKeyId)
options.storageAccessKeyId(accessKeyId);
}
if (secretAccessKey) {
options.storageSecretAccessKey(secretAccessKey)
options.storageSecretAccessKey(secretAccessKey);
}

@@ -170,0 +172,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc