packages feed

wai-middleware-static 0.9.0 → 0.9.1

raw patch · 4 files changed

+12/−9 lines, 4 filesdep ~textdep ~time

Dependency ranges changed: text, time

Files

Network/Wai/Middleware/Static.hs view
@@ -28,7 +28,7 @@  import Caching.ExpiringCacheMap.HashECM (newECMIO, lookupECM, CacheSettings(..), consistentDuration) import Control.Monad-import Data.List+import qualified Data.List as L #if !(MIN_VERSION_base(4,8,0)) import Data.Monoid (Monoid(..)) #endif@@ -139,19 +139,19 @@  -- | Accept only URIs with given suffix hasSuffix :: String -> Policy-hasSuffix = predicate . isSuffixOf+hasSuffix = predicate . L.isSuffixOf  -- | Accept only URIs with given prefix hasPrefix :: String -> Policy-hasPrefix = predicate . isPrefixOf+hasPrefix = predicate . L.isPrefixOf  -- | Accept only URIs containing given string contains :: String -> Policy-contains = predicate . isInfixOf+contains = predicate . L.isInfixOf  -- | Reject URIs containing \"..\" noDots :: Policy-noDots = predicate (not . isInfixOf "..")+noDots = predicate (not . L.isInfixOf "..")  -- | Reject URIs that are absolute paths isNotAbsolute :: Policy
README.md view
@@ -1,3 +1,3 @@-# wai-middleware-static [![Build Status](https://travis-ci.org/scotty-web/wai-middleware-static.svg)](https://travis-ci.org/scotty-web/wai-middleware-static)+# wai-middleware-static [![Build Status](https://github.com/scotty-web/wai-middleware-static/workflows/Haskell-CI/badge.svg)](https://github.com/scotty-web/wai-middleware-static/actions?query=workflow%3AHaskell-CI)  WAI middleware that intercepts requests to static files and serves them if they exist.
changelog.md view
@@ -1,3 +1,6 @@+## 0.9.1 [2021.10.31]+* Always import `Data.List` qualified.+ ## 0.9.0 [2020.10.01] * Only serve static files on `HEAD` or `GET` requests. 
wai-middleware-static.cabal view
@@ -1,5 +1,5 @@ Name:                wai-middleware-static-Version:             0.9.0+Version:             0.9.1 Synopsis:            WAI middleware that serves requests to static files. Homepage:            https://github.com/scotty-web/wai-middleware-static Bug-reports:         https://github.com/scotty-web/wai-middleware-static/issues@@ -33,7 +33,7 @@   default-language:    Haskell2010   Build-depends:                        base               >= 4.6.0.1  && < 5,-                       bytestring         >= 0.10.0.2 && < 0.11,+                       bytestring         >= 0.10.0.2 && < 0.12,                        containers         >= 0.5.0.0  && < 0.7,                        cryptonite         >= 0.10     && < 1.0,                        memory             >= 0.10     && < 1.0,@@ -45,7 +45,7 @@                        old-locale         >= 1.0      && < 1.1,                        semigroups         >= 0.18     && < 1,                        text               >= 0.11.3.1 && < 1.3,-                       time               >= 1.4      && < 1.11,+                       time               >= 1.4      && < 1.12,                        wai                >= 3.0.0    && < 3.3    GHC-options: -Wall -fno-warn-orphans