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.2.0 to 1.2.1

2

dist/sign.js

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

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