Socket
Socket
Sign inDemoInstall

connect-history-api-fallback

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-history-api-fallback - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

3

CHANGELOG.md
# Changelog
## v1.4.0
- The `.` (DOT) rule should only check the last path element. Contributed by @ntkme.
## v1.3.0

@@ -4,0 +7,0 @@ - Allow disabling of the `.` (DOT) rule via the `disableDotRule` option.

3

lib/index.js

@@ -59,3 +59,4 @@ 'use strict';

if (parsedUrl.pathname.indexOf('.') !== -1 &&
var pathname = parsedUrl.pathname;
if (pathname.lastIndexOf('.') > pathname.lastIndexOf('/') &&
options.disableDotRule !== true) {

@@ -62,0 +63,0 @@ logger(

{
"name": "connect-history-api-fallback",
"version": "1.3.0",
"version": "1.4.0",
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.",

@@ -16,2 +16,3 @@ "keyswords": [

"main": "lib/index.js",
"files": ["lib"],
"scripts": {

@@ -18,0 +19,0 @@ "test": "eslint lib/index.js test/index_test.js && nodeunit test/index_test.js"

@@ -9,2 +9,18 @@ <h1 align="center">connect-history-api-fallback</h1>

<h2>Table of Contents</h2>
<!-- TOC depthFrom:2 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->
- [Introduction](#introduction)
- [Usage](#usage)
- [Options](#options)
- [index](#index)
- [rewrites](#rewrites)
- [verbose](#verbose)
- [htmlAcceptHeaders](#htmlacceptheaders)
- [disableDotRule](#disabledotrule)
<!-- /TOC -->
## Introduction

@@ -11,0 +27,0 @@

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