Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Migrate to new fusion-plugin api
Browse files Browse the repository at this point in the history
  • Loading branch information
ganemone authored and fusion-bot[bot] committed Feb 2, 2018
1 parent ebd6be5 commit 402ad4b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 31 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@
"eslint-plugin-cup": "1.0.0",
"eslint-plugin-flowtype": "2.42.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-prettier": "2.5.0",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.6.1",
"flow-bin": "0.64.0",
"fusion-core": "0.3.0",
"fusion-plugin-universal-events": "0.3.0",
"fusion-core": "^0.3.3",
"fusion-plugin-universal-events": "0.3.3",
"fusion-test-utils": "0.4.2",
"fusion-tokens": "0.0.5",
"fusion-tokens": "^0.0.6",
"nyc": "11.4.1",
"prettier": "1.10.2",
"tape-cup": "4.7.1",
"unitest": "2.1.1"
},
"peerDependencies": {
"fusion-core": "^0.3.0-4",
"fusion-tokens": "0.0.5"
"fusion-core": "^0.3.3",
"fusion-tokens": "^0.0.6"
},
"scripts": {
"clean": "rm -rf dist",
Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default __NODE__ &&
createPlugin({
deps: {
emitter: UniversalEventsToken,
config: UniversalLoggerConfigToken,
config: UniversalLoggerConfigToken.optional,
},
provides: ({emitter, config}) => {
const logger = new Logger(config);
Expand Down
7 changes: 3 additions & 4 deletions src/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {createOptionalToken} from 'fusion-tokens';
import {createToken} from 'fusion-core';

export const UniversalLoggerConfigToken = createOptionalToken(
'UniversalLoggerConfigToken',
null
export const UniversalLoggerConfigToken = createToken(
'UniversalLoggerConfigToken'
);
40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ acorn-jsx@^3.0.0:
acorn "^3.0.4"

acorn@>=2.5.2, acorn@^5.0.0, acorn@^5.2.1:
version "5.3.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.3.0.tgz#7446d39459c54fb49a80e6ee6478149b940ec822"
version "5.4.1"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.4.1.tgz#fdc58d9d17f4a4e98d102ded826a9b9759125102"

acorn@^3.0.4:
version "3.3.0"
Expand Down Expand Up @@ -1683,8 +1683,8 @@ [email protected]:
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"

electron-to-chromium@^1.3.30:
version "1.3.31"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.31.tgz#00d832cba9fe2358652b0c48a8816c8e3a037e9f"
version "1.3.32"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.32.tgz#11d0684c0840e003c4be8928f8ac5f35dbc2b4e6"

elliptic@^6.0.0:
version "6.4.0"
Expand Down Expand Up @@ -1896,9 +1896,9 @@ eslint-plugin-import@^2.8.0:
minimatch "^3.0.3"
read-pkg-up "^2.0.0"

eslint-plugin-prettier@2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.5.0.tgz#39a91dd7528eaf19cd42c0ee3f2c1f684606a05f"
eslint-plugin-prettier@2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.0.tgz#33e4e228bdb06142d03c560ce04ec23f6c767dd7"
dependencies:
fast-diff "^1.1.1"
jest-docblock "^21.0.0"
Expand Down Expand Up @@ -2264,18 +2264,18 @@ functional-red-black-tree@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"

[email protected].0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/fusion-core/-/fusion-core-0.3.0.tgz#0ce2a5b17c2e1948f05fbcdee808c7bcf5d8eadf"
fusion-core@^0.3.3:
version "0.3.3"
resolved "https://registry.yarnpkg.com/fusion-core/-/fusion-core-0.3.3.tgz#2be141a18afe93963469998c3076ac9ed99f798a"
dependencies:
koa "^2.3.0"
koa-compose "^4.0.0"
node-mocks-http "^1.6.6"
toposort "^1.0.6"

[email protected].0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/fusion-plugin-universal-events/-/fusion-plugin-universal-events-0.3.0.tgz#fb88370679b36ae70a6140ac89f84a1e2009ddd1"
[email protected].3:
version "0.3.3"
resolved "https://registry.yarnpkg.com/fusion-plugin-universal-events/-/fusion-plugin-universal-events-0.3.3.tgz#54f3a24778498f4dfe31f0a585fc4289fd43fdcb"
dependencies:
koa-bodyparser "4.2.0"

Expand All @@ -2287,9 +2287,9 @@ [email protected]:
koa "^2.4.1"
node-mocks-http "^1.6.6"

[email protected].5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/fusion-tokens/-/fusion-tokens-0.0.5.tgz#71af057ab696046c43e89ca06dfe47cdbaeac6d8"
fusion-tokens@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/fusion-tokens/-/fusion-tokens-0.0.6.tgz#71606a0109918dc098eb43cc0a3b877beb111d4d"

gauge@~2.7.3:
version "2.7.4"
Expand Down Expand Up @@ -3219,8 +3219,8 @@ mime@^1.3.4:
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"

mimic-fn@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18"
version "1.2.0"
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022"

minimalistic-assert@^1.0.0:
version "1.0.0"
Expand Down Expand Up @@ -4043,8 +4043,8 @@ rollup-pluginutils@^2.0.1:
micromatch "^2.3.11"

rollup@^0.55.1:
version "0.55.1"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.55.1.tgz#baf4f23abe3014b29e56dea7d72d9946e56ac7dd"
version "0.55.3"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.55.3.tgz#0af082a766d51c3058430c8372442ff5207d8736"

run-async@^2.2.0:
version "2.3.0"
Expand Down

0 comments on commit 402ad4b

Please sign in to comment.