Skip to content

Commit

Permalink
Update to syntax of ladda-cache@0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Apr 23, 2017
1 parent ca39012 commit 24b68f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "ladda-logger",
"version": "0.2.0",
"version": "0.2.1",
"description": "Logger plugin for Ladda",
"main": "dist/bundle.js",
"dependencies": {
Expand All @@ -20,7 +20,7 @@
"eslint-config-airbnb-base": "^11.1.1",
"eslint-plugin-import": "^2.2.0",
"gitbook-cli": "^2.3.0",
"ladda-cache": "^0.2.0",
"ladda-cache": "^0.2.1",
"mocha": "^2.5.3",
"nyc": "^10.1.2",
"sinon": "^1.17.7",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -119,8 +119,8 @@ export const logger = ({
} = {}) => {
const l = createLogger(implementation, disable, collapse, colors, noFormat);

return ({ addListener, entityConfigs, config }) => {
addListener((change) => l.logChange(change));
return ({ addChangeListener, entityConfigs, config }) => {
addChangeListener((change) => l.logChange(change));
l.logSetup(entityConfigs, config);

return ({ entity, fn }) => {
Expand Down

0 comments on commit 24b68f1

Please sign in to comment.