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.3.0 to 1.3.1

4

dist/sign.js
const VALID_ALGORITMS = ["rsa-sha256", "rsa-sha384", "rsa-sha512"];
const utf8TextDecoder = new TextDecoder("utf8");
export function getRequestLine(options) {

@@ -58,6 +57,5 @@ if (!options.url) {

}, options.keyPair.privateKey, new TextEncoder().encode(signingString));
const utf8 = utf8TextDecoder.decode(signature);
const base64 = btoa(utf8);
const base64 = btoa(String.fromCharCode(...new Uint8Array(signature)));
return `Signature keyId=${options.keyId},algorithm="${options.algorithm || algorithm}",headers="${options.include.join(" ")}",signature="${base64}"`;
}
//# sourceMappingURL=sign.js.map
{
"name": "fetch-signature",
"version": "1.3.0",
"version": "1.3.1",
"main": "./dist/index.js",

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

@@ -14,4 +14,2 @@ const VALID_ALGORITMS = ["rsa-sha256", "rsa-sha384", "rsa-sha512"];

const utf8TextDecoder = new TextDecoder("utf8");
export function getRequestLine(options: SignOptions): string {

@@ -80,5 +78,4 @@ if (!options.url) {

);
const utf8 = utf8TextDecoder.decode(signature);
const base64 = btoa(utf8);
const base64 = btoa(String.fromCharCode(...new Uint8Array(signature)));
return `Signature keyId=${options.keyId},algorithm="${options.algorithm || algorithm}",headers="${options.include.join(" ")}",signature="${base64}"`;
}

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