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
59
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

to
1.0.34

18

dist/main.js

@@ -108,4 +108,9 @@ "use strict";

}
const data = await response.json();
throw new Error(`failed to take screenshot, response returned ${response.status} ${response.statusText}: ${data?.message}`);
try {
const data = await response.json();
throw new Error(`failed to take screenshot, response returned ${response.status} ${response.statusText}: ${data?.message}`);
}
catch (e) {
throw new Error(`failed to take screenshot, response returned ${response.status} ${response.statusText}`);
}
}

@@ -124,4 +129,9 @@ /**

}
const data = await response.json();
throw new Error(`failed to take screenshot, response returned ${response.status} ${response.statusText}: ${data?.message}`);
try {
const data = await response.json();
throw new Error(`failed to generate animation, response returned ${response.status} ${response.statusText}: ${data?.message}`);
}
catch (e) {
throw new Error(`failed to generate animation, response returned ${response.status} ${response.statusText}`);
}
}

@@ -128,0 +138,0 @@ /**

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

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

@@ -95,5 +95,9 @@ import * as crypto from 'crypto';

const data = await response.json();
try {
const data = await response.json();
throw new Error(`failed to take screenshot, response returned ${response.status} ${response.statusText}: ${data?.message}`);
throw new Error(`failed to take screenshot, response returned ${response.status} ${response.statusText}: ${data?.message}`);
} catch (e) {
throw new Error(`failed to take screenshot, response returned ${response.status} ${response.statusText}`);
}
}

@@ -114,5 +118,9 @@

const data = await response.json();
try {
const data = await response.json();
throw new Error(`failed to take screenshot, response returned ${response.status} ${response.statusText}: ${data?.message}`);
throw new Error(`failed to generate animation, response returned ${response.status} ${response.statusText}: ${data?.message}`);
} catch (e) {
throw new Error(`failed to generate animation, response returned ${response.status} ${response.statusText}`);
}
}

@@ -119,0 +127,0 @@