From fd31af58dc51d8809900fa2c454be5cb2480b467 Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Mon, 12 Dec 2016 23:49:01 -0500 Subject: [PATCH] chore(dep): "most", upgrade to latest Closes #17 --- package.json | 3 ++- source/main.js | 6 +++--- yarn.lock | 34 ++++++++++++++++++++++++++-------- 3 files changed, 31 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index a5e84ba..f5aa681 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,9 @@ "prepublish": "npm run build" }, "dependencies": { + "@most/create": "^2.0.1", "axios": "^0.15.3", - "most": "^0.16.0" + "most": "^1.1.1" }, "repository": { "type": "git", diff --git a/source/main.js b/source/main.js index a46eb26..3d054d0 100644 --- a/source/main.js +++ b/source/main.js @@ -1,8 +1,8 @@ -import FRP from "most" +import * as FRP from "most" +import { create as createStream } from "@most/create" import HTTPClient, { CancelToken } from "axios" - /* Event Constructor */ // Event :: String -> Object -> Event @@ -42,7 +42,7 @@ const ping = (config) => ( // create :: String, Maybe Integer -> UriMonitor const create = (uri, checkIntervalMs = 1000) => { - const stream = FRP.create((add) => { + const stream = createStream((add) => { const state = { wasResponsive: null, diff --git a/yarn.lock b/yarn.lock index 725f69a..d0a16a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,22 @@ # yarn lockfile v1 +"@most/create@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@most/create/-/create-2.0.1.tgz#29156589638fa4ed12620203c7a698d6951a348f" + dependencies: + "@most/multicast" "^1.2.4" + +"@most/multicast@^1.2.3", "@most/multicast@^1.2.4": + version "1.2.5" + resolved "https://registry.yarnpkg.com/@most/multicast/-/multicast-1.2.5.tgz#ba5abc997f9a6511094bec117914f4959720a8fb" + dependencies: + "@most/prelude" "^1.4.0" + +"@most/prelude@^1.4.0": + version "1.4.1" + resolved "https://registry.yarnpkg.com/@most/prelude/-/prelude-1.4.1.tgz#b940b5563096f27637401618a5351f42466ea8f3" + abbrev@1: version "1.0.9" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135" @@ -1654,11 +1670,13 @@ mocha@^3.2.0: mkdirp "0.5.1" supports-color "3.1.2" -most@^0.16.0: - version "0.16.0" - resolved "https://registry.yarnpkg.com/most/-/most-0.16.0.tgz#a062ed4858d06d170349ae90b2a642190833bb9d" +most@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/most/-/most-1.1.1.tgz#75ccbb4c61a086b6794c378583ae0113b20fc7b5" dependencies: - when "^3.7.0" + "@most/multicast" "^1.2.3" + "@most/prelude" "^1.4.0" + symbol-observable "^1.0.2" ms@0.7.1: version "0.7.1" @@ -2157,6 +2175,10 @@ supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" +symbol-observable@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d" + table@^3.7.8: version "3.8.3" resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f" @@ -2271,10 +2293,6 @@ verror@1.3.6: dependencies: extsprintf "1.0.2" -when@^3.7.0: - version "3.7.7" - resolved "https://registry.yarnpkg.com/when/-/when-3.7.7.tgz#aba03fc3bb736d6c88b091d013d8a8e590d84718" - wide-align@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad"