fetch-signature
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -46,3 +46,3 @@ const VALID_ALGORITMS = ["rsa-sha256", "rsa-sha384", "rsa-sha512"]; | ||
const hash = algorithm.hash.name.split("-").join(""); | ||
return `${type}-${hash}`.toLowerCase(); | ||
return `${type[0]}-${hash}`.toLowerCase(); | ||
} | ||
@@ -49,0 +49,0 @@ export async function sign(options) { |
{ | ||
"name": "fetch-signature", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
@@ -61,3 +61,3 @@ const VALID_ALGORITMS = ["rsa-sha256", "rsa-sha384", "rsa-sha512"]; | ||
const hash = algorithm.hash.name.split("-").join(""); | ||
return `${type}-${hash}`.toLowerCase(); | ||
return `${type[0]}-${hash}`.toLowerCase(); | ||
} | ||
@@ -64,0 +64,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
23479