connect-history-api-fallback
Advanced tools
Comparing version 1.3.0 to 1.4.0
# 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. |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164
10978
5
98