From 9cfb1a04673debf4f374fb626cd5b23c33673b33 Mon Sep 17 00:00:00 2001 From: justinwoo Date: Sun, 27 May 2018 03:17:09 +0300 Subject: [PATCH] update packages --- .travis.yml | 6 ++++++ bower.json | 14 +++++++------- package.json | 9 ++++----- src/Node/HTTP/Client.purs | 4 ++-- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 969f56d..a79fb8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,13 @@ language: node_js dist: trusty sudo: required node_js: 6 +env: + - PATH=$HOME/purescript:$PATH install: + - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p') + - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz + - tar -xvf $HOME/purescript.tar.gz -C $HOME/ + - chmod a+x $HOME/purescript - npm install -g bower - npm install script: diff --git a/bower.json b/bower.json index b0b2f5b..e792e47 100644 --- a/bower.json +++ b/bower.json @@ -12,15 +12,15 @@ "url": "git://github.com/purescript-node/purescript-node-http.git" }, "devDependencies": { - "purescript-console": "#compiler/0.12" + "purescript-console": "^4.1.0" }, "dependencies": { - "purescript-node-streams": "#compiler/0.12", - "purescript-node-url": "#compiler/0.12", - "purescript-options": "#compiler/0.12", - "purescript-node-buffer": "#compiler/0.12", + "purescript-node-streams": "^4.0.0", + "purescript-node-url": "^4.0.0", + "purescript-options": "^4.0.0", + "purescript-node-buffer": "^5.0.0", "purescript-arraybuffer-types": "^2.0.0", - "purescript-foreign-object": "#compiler/0.12", - "purescript-unsafe-coerce": "#compiler/0.12" + "purescript-foreign-object": "^1.0.0", + "purescript-unsafe-coerce": "^4.0.0" } } diff --git a/package.json b/package.json index 003e694..1161eb8 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,9 @@ }, "devDependencies": { "jscs": "^3.0.7", - "jshint": "^2.9.4", - "pulp": "^11.0.0", - "purescript": "^0.11.1", - "purescript-psa": "^0.5.0", - "rimraf": "^2.6.1" + "jshint": "^2.9.5", + "pulp": "^12.2.0", + "purescript-psa": "^0.6.0", + "rimraf": "^2.6.2" } } diff --git a/src/Node/HTTP/Client.purs b/src/Node/HTTP/Client.purs index b24917d..8b35f88 100644 --- a/src/Node/HTTP/Client.purs +++ b/src/Node/HTTP/Client.purs @@ -35,7 +35,7 @@ import Data.Functor.Contravariant ((>$<)) import Data.Maybe (Maybe) import Data.Options (Option, Options, opt, options) import Effect (Effect) -import Foreign (Foreign, toForeign) +import Foreign (Foreign, unsafeToForeign) import Foreign.Object (Object) import Foreign.Object as Object import Node.Stream (Readable, Writable) @@ -115,7 +115,7 @@ request = requestImpl <<< options -- | Make a HTTP request from a URI string and response callback. requestFromURI :: String -> (Response -> Effect Unit) -> Effect Request -requestFromURI = requestImpl <<< toForeign <<< URL.parse +requestFromURI = requestImpl <<< unsafeToForeign <<< URL.parse -- | Create a writable stream from a request object. requestAsStream :: forall r. Request -> Writable r