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.3 to 1.1.4

4

dist/signature.js

@@ -7,3 +7,5 @@ "use strict";

async function signQueryString(queryString, secretKey) {
const webCrypto = crypto ? crypto : new webcrypto_1.Crypto();
const webCrypto = typeof globalThis.crypto !== "undefined"
? globalThis.crypto
: new webcrypto_1.Crypto();
let algorithm = { name: "HMAC", hash: "SHA-256" };

@@ -10,0 +12,0 @@ let key = await webCrypto.subtle.importKey("raw", encoder.encode(secretKey), algorithm, false, ["sign", "verify"]);

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

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

@@ -6,3 +6,6 @@ import { Crypto } from "@peculiar/webcrypto";

export async function signQueryString(queryString: string, secretKey: string) {
const webCrypto = crypto ? crypto : new Crypto();
const webCrypto =
typeof globalThis.crypto !== "undefined"
? globalThis.crypto
: new Crypto();

@@ -9,0 +12,0 @@ let algorithm = { name: "HMAC", hash: "SHA-256" };

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