jsaddle-warp 0.9.6.0 → 0.9.7.0
raw patch · 2 files changed
+5/−5 lines, 2 filesdep ~timedep ~webdriverPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: time, webdriver
API changes (from Hackage documentation)
Files
jsaddle-warp.cabal view
@@ -1,5 +1,5 @@ name: jsaddle-warp-version: 0.9.6.0+version: 0.9.7.0 cabal-version: >=1.10 build-type: Simple license: MIT@@ -10,7 +10,7 @@ This package provides an EDSL for calling JavaScript that can be used both from GHCJS and GHC. When using GHC the application is run using Warp and WebSockets to- drive a small JavaScipt helper.+ drive a small JavaScript helper. category: Web, Javascript author: Hamish Mackenzie @@ -35,7 +35,7 @@ jsaddle >=0.9.4.0 && <0.10, stm >=2.4.4 && <2.6, text >=1.2.1.3 && <1.3,- time >=1.5.0.1 && <1.9,+ time >=1.5.0.1 && <1.10, transformers >=0.4.2.0 && <0.6, wai >=3.0.3.0 && <3.3, wai-websockets >=3.0.0.6 && <3.1,@@ -81,7 +81,7 @@ wai -any, wai-websockets -any, warp -any,- webdriver >=0.8.4 && <0.9,+ webdriver >=0.8.4 && <1.0, websockets -any type: exitcode-stdio-1.0 main-is: DocTest.hs
src/Language/Javascript/JSaddle/WebSockets.hs view
@@ -176,7 +176,7 @@ -- sed -e 's|\\|\\\\|g' -e 's|^| \\|' -e 's|$|\\n\\|' -e 's|"|\\"|g' data/jsaddle.js | pbcopy jsaddleJs' :: Maybe ByteString -> Bool -> ByteString jsaddleJs' jsaddleUri refreshOnLoad = "\- \if(typeof global !== \"undefined\") {\n\+ \if(typeof global !== \"undefined\" && typeof require === \"function\") {\n\ \ global.window = global;\n\ \ global.WebSocket = require('ws');\n\ \}\n\