Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssl-redirect

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssl-redirect - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

.travis.yml

2

index.js

@@ -15,3 +15,2 @@

var STS = 'max-age=' + options.maxAge || '16070400'
var CC = STS
if (options.includeSubDomains !== false) STS += '; includeSubDomains'

@@ -23,3 +22,2 @@

res.setHeader('Cache-Control', CC) // not sure if this does anything
res.setHeader('Strict-Transport-Security', STS)

@@ -26,0 +24,0 @@

{
"name": "ssl-redirect",
"description": "redirect users to the SSL version of your app",
"version": "0.1.0",
"version": "0.2.0",
"author": {

@@ -12,3 +12,3 @@ "name": "Jonathan Ong",

"license": "MIT",
"repository": "expressjs/ssl-redirect",
"repository": "pillarjs/ssl-redirect",
"dependencies": {

@@ -19,2 +19,3 @@ "debug": "*",

"devDependencies": {
"istanbul": "0",
"mocha": "1",

@@ -24,4 +25,11 @@ "supertest": "0"

"scripts": {
"test": "mocha --reporter spec"
}
"test": "mocha --reporter spec",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
},
"keywords": [
"ssl",
"https",
"redirect"
]
}
# SSL Redirect
[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
Tiny server that redirects HTTP requests to SSL.

@@ -22,1 +29,18 @@ These is currently really rough and you probably shouldn't use it.

- `includeSubDomains: true` - for `Strict-Transport-Security`
[npm-image]: https://img.shields.io/npm/v/ssl-redirect.svg?style=flat-square
[npm-url]: https://npmjs.org/package/ssl-redirect
[github-tag]: http://img.shields.io/github/tag/pillarjs/ssl-redirect.svg?style=flat-square
[github-url]: https://github.com/pillarjs/ssl-redirect/tags
[travis-image]: https://img.shields.io/travis/pillarjs/ssl-redirect.svg?style=flat-square
[travis-url]: https://travis-ci.org/pillarjs/ssl-redirect
[coveralls-image]: https://img.shields.io/coveralls/pillarjs/ssl-redirect.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/pillarjs/ssl-redirect?branch=master
[david-image]: http://img.shields.io/david/pillarjs/ssl-redirect.svg?style=flat-square
[david-url]: https://david-dm.org/pillarjs/ssl-redirect
[license-image]: http://img.shields.io/npm/l/ssl-redirect.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/ssl-redirect.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/ssl-redirect
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
[gittip-url]: https://www.gittip.com/jonathanong/

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