New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hpkp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hpkp - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

6

index.js

@@ -44,3 +44,3 @@ var badArgumentsError = new Error('hpkp must be called with a maxAge and at least two SHA-256s (one actually used and another kept as a backup).')

sha256s: sha256s,
includeSubdomains: options.includeSubdomains,
includeSubDomains: options.includeSubDomains || options.includeSubdomains,
reportUri: options.reportUri,

@@ -65,4 +65,4 @@ reportOnly: options.reportOnly,

result.push('max-age=' + Math.round(options.maxAge / 1000))
if (options.includeSubdomains) {
result.push('includeSubdomains')
if (options.includeSubDomains) {
result.push('includeSubDomains')
}

@@ -69,0 +69,0 @@ if (options.reportUri) {

@@ -10,3 +10,3 @@ {

"description": "HTTP Public Key Pinning (HPKP) middleware",
"version": "1.1.0",
"version": "1.2.0",
"keywords": [

@@ -28,9 +28,10 @@ "helmet",

"scripts": {
"test": "standard && mocha"
"pretest": "standard",
"test": "mocha"
},
"devDependencies": {
"connect": "^3.4.1",
"mocha": "^2.4.5",
"standard": "^6.0.7",
"supertest": "^1.2.0"
"connect": "^3.5.0",
"mocha": "^3.1.0",
"standard": "^8.3.0",
"supertest": "^2.0.0"
},

@@ -37,0 +38,0 @@ "standard": {

@@ -22,3 +22,3 @@ HTTP Public Key Pinning (HPKP) middleware

sha256s: ['AbCdEf123=', 'ZyXwVu456='],
includeSubdomains: true, // optional
includeSubDomains: true, // optional
reportUri: 'http://example.com', // optional

@@ -25,0 +25,0 @@ reportOnly: false, // optional

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