Socket
Socket
Sign inDemoInstall

cookie-signature

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cookie-signature - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

14

History.md

@@ -0,1 +1,15 @@

1.2.1 / 2022-02-27
==================
* update annotations for allowed secret key types (#44, thanks @jyasskin!)
1.2.0 / 2022-02-17
==================
* allow buffer and other node-supported types as key (#33)
* be pickier about extra content after signed portion (#40)
* some internal code clarity/cleanup improvements (#26)
1.1.0 / 2018-01-18

@@ -2,0 +16,0 @@ ==================

4

index.js

@@ -11,3 +11,3 @@ /**

* @param {String} val
* @param {String} secret
* @param {String|NodeJS.ArrayBufferView|crypto.KeyObject} secret
* @return {String}

@@ -32,3 +32,3 @@ * @api private

* @param {String} input
* @param {String} secret
* @param {String|NodeJS.ArrayBufferView|crypto.KeyObject} secret
* @return {String|Boolean}

@@ -35,0 +35,0 @@ * @api private

{
"name": "cookie-signature",
"version": "1.2.0",
"version": "1.2.1",
"description": "Sign and unsign cookies",

@@ -5,0 +5,0 @@ "keywords": ["cookie", "sign", "unsign"],

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