Socket
Socket
Sign inDemoInstall

expect-ct

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expect-ct - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

CHANGELOG.md

50

package.json

@@ -5,3 +5,3 @@ {

"description": "Middleware to set the Expect-CT header",
"version": "0.1.1",
"version": "0.2.0",
"license": "MIT",

@@ -15,2 +15,3 @@ "keywords": [

],
"homepage": "https://helmetjs.github.io/docs/expect-ct/",
"repository": {

@@ -20,18 +21,41 @@ "type": "git",

},
"bugs": "https://github.com/helmetjs/expect-ct/issues",
"bugs": {
"url": "https://github.com/helmetjs/expect-ct/issues",
"email": "me@evanhahn.com"
},
"engines": {
"node": ">=4.0.0"
},
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
"README.md",
"dist/index.js",
"dist/index.d.ts"
],
"scripts": {
"pretest": "standard",
"test": "mocha"
"pretest": "npm run lint",
"prepublishOnly": "npm run build",
"lint": "eslint --fix '**/*.ts'",
"test": "jest --config test/jest-config.json",
"clean": "rm -rf dist",
"build": "npm run clean && tsc"
},
"devDependencies": {
"mocha": "^4.1.0",
"standard": "^11.0.1"
"@types/connect": "^3.4.32",
"@types/jest": "^24.0.12",
"@types/supertest": "^2.0.7",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"connect": "^3.6.6",
"eslint": "^5.16.0",
"eslint-config-helmet": "^0.2.0",
"jest": "^24.7.1",
"supertest": "^4.0.2",
"ts-jest": "^24.0.2",
"typescript": "^3.4.5"
},
"standard": {
"globals": [
"describe",
"beforeEach",
"it"
]
}
"dependencies": {}
}
Expect-CT
=========
[![Build Status](https://travis-ci.org/helmetjs/expect-ct.svg?branch=master)](https://travis-ci.org/helmetjs/expect-ct)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[_Looking for a changelog?_](https://github.com/helmetjs/helmet/blob/master/HISTORY.md)
The `Expect-CT` HTTP header tells browsers to expect Certificate Transparency. For more, see [this blog post](https://scotthelme.co.uk/a-new-security-header-expect-ct/) and the [article on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT).

@@ -13,3 +10,3 @@

```javascript
var expectCt = require('expect-ct')
const expectCt = require('expect-ct')

@@ -25,8 +22,8 @@ // Sets Expect-CT: max-age=123

// Sets Expect-CT: enforce, max-age=30, report-uri="http://example.com/report"
// Sets Expect-CT: enforce, max-age=30, report-uri="https://example.com/report"
app.use(expectCt({
enforce: true,
maxAge: 30,
reportUri: 'http://example.com/report'
reportUri: 'https://example.com/report'
}))
```

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