fetch-signature
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23458