Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-signature

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-signature - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

dist/sign.js

@@ -11,3 +11,3 @@ const VALID_ALGORITMS = ["rsa-sha256", "rsa-sha384", "rsa-sha512"];

const url = new URL(options.url);
return `${options.request.method.toLowerCase()} ${url.pathname} ${options.version}`;
return `${(options.request.method || "get").toLowerCase()} ${url.pathname} ${options.version}`;
}

@@ -19,3 +19,3 @@ export function getRequestTarget(options) {

const url = new URL(options.url);
return `(request-target): ${options.request.method.toLowerCase()} ${url.pathname}`;
return `(request-target): ${(options.request.method || "get").toLowerCase()} ${url.pathname}`;
}

@@ -22,0 +22,0 @@ export function getSigningString(options) {

{
"name": "fetch-signature",
"version": "1.1.0",
"version": "1.2.0",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",

@@ -23,3 +23,3 @@ const VALID_ALGORITMS = ["rsa-sha256", "rsa-sha384", "rsa-sha512"];

const url = new URL(options.url);
return `${options.request.method.toLowerCase()} ${url.pathname} ${options.version}`;
return `${(options.request.method || "get").toLowerCase()} ${url.pathname} ${options.version}`;
}

@@ -32,3 +32,3 @@

const url = new URL(options.url);
return `(request-target): ${options.request.method.toLowerCase()} ${url.pathname}`;
return `(request-target): ${(options.request.method || "get").toLowerCase()} ${url.pathname}`;
}

@@ -35,0 +35,0 @@

Sorry, the diff of this file is not supported yet

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