Skip to content

Commit

Permalink
Merge pull request #2418 from storybooks/update-deps
Browse files Browse the repository at this point in the history
Major updates for devDependencies
  • Loading branch information
Hypnosphi authored Dec 4, 2017
2 parents 1446b47 + 2645a0f commit ed8ea6e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 23 deletions.
1 change: 0 additions & 1 deletion app/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"json-stringify-safe": "^5.0.1",
"json5": "^0.5.1",
"lodash.flattendeep": "^4.4.0",
"lodash.pick": "^4.4.0",
"postcss-flexbugs-fixes": "^3.2.0",
"postcss-loader": "^2.0.9",
"prop-types": "^15.6.0",
Expand Down
1 change: 0 additions & 1 deletion app/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"json-loader": "^0.5.7",
"json-stringify-safe": "^5.0.1",
"json5": "^0.5.1",
"lodash.pick": "^4.4.0",
"postcss-flexbugs-fixes": "^3.2.0",
"postcss-loader": "^2.0.9",
"prop-types": "^15.6.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"generate-addon-jest-testresults": "jest src/stories/addon-jest.test.js --env=jsdom --json --outputFile=src/stories/addon-jest.testresults.json"
},
"dependencies": {
"eventemitter3": "^2.0.3",
"eventemitter3": "^3.0.0",
"format-json": "^1.0.3",
"glamor": "^2.20.40",
"glamorous": "^4.11.0",
Expand Down
14 changes: 7 additions & 7 deletions examples/cra-kitchen-sink/src/stories/Logger.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import json from 'format-json';
import PropTypes from 'prop-types';
import EventEmiter from 'eventemitter3';
import EventEmitter from 'eventemitter3';

import uuid from 'uuid/v4';

Expand Down Expand Up @@ -29,20 +29,20 @@ const styles = {

export default class Logger extends Component {
static propTypes = {
emiter: PropTypes.instanceOf(EventEmiter).isRequired,
emitter: PropTypes.instanceOf(EventEmitter).isRequired,
};

state = {
events: [],
};

componentWillMount() {
const { emiter } = this.props;
const { emitter } = this.props;

emiter.on(EVENTS.TEST_EVENT_1, this.onEventHandler(EVENTS.TEST_EVENT_1));
emiter.on(EVENTS.TEST_EVENT_2, this.onEventHandler(EVENTS.TEST_EVENT_2));
emiter.on(EVENTS.TEST_EVENT_3, this.onEventHandler(EVENTS.TEST_EVENT_3));
emiter.on(EVENTS.TEST_EVENT_4, this.onEventHandler(EVENTS.TEST_EVENT_4));
emitter.on(EVENTS.TEST_EVENT_1, this.onEventHandler(EVENTS.TEST_EVENT_1));
emitter.on(EVENTS.TEST_EVENT_2, this.onEventHandler(EVENTS.TEST_EVENT_2));
emitter.on(EVENTS.TEST_EVENT_3, this.onEventHandler(EVENTS.TEST_EVENT_3));
emitter.on(EVENTS.TEST_EVENT_4, this.onEventHandler(EVENTS.TEST_EVENT_4));
}

onEventHandler = name => payload => {
Expand Down
8 changes: 4 additions & 4 deletions examples/cra-kitchen-sink/src/stories/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import EventEmiter from 'eventemitter3';
import EventEmitter from 'eventemitter3';

import { storiesOf } from '@storybook/react';
import { setOptions } from '@storybook/addon-options';
Expand All @@ -21,8 +21,8 @@ const EVENTS = {
TEST_EVENT_4: 'test-event-4',
};

const emiter = new EventEmiter();
const emit = emiter.emit.bind(emiter);
const emitter = new EventEmitter();
const emit = emitter.emit.bind(emitter);

const InfoButton = () => (
<span
Expand Down Expand Up @@ -157,4 +157,4 @@ storiesOf('WithEvents', module)
{getStory()}
</WithEvents>
))
.add('Logger', () => <Logger emiter={emiter} />);
.add('Logger', () => <Logger emitter={emitter} />);
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"jest-enzyme": "^4.0.1",
"jest-image-snapshot": "^2.2.0",
"lerna": "^2.5.1",
"lint-staged": "^5.0.0",
"lint-staged": "^6.0.0",
"lodash": "^4.17.4",
"nodemon": "^1.12.1",
"npmlog": "^4.1.2",
Expand Down Expand Up @@ -112,8 +112,7 @@
"yarn lint:js --fix",
"git add"
]
},
"verbose": true
}
},
"pr-log": {
"skipLabels": [
Expand Down
13 changes: 7 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4298,9 +4298,9 @@ [email protected]:
version "1.2.0"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508"

eventemitter3@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-2.0.3.tgz#b5e1079b59fb5e1ba2771c0a993be060a58c99ba"
eventemitter3@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.0.0.tgz#fc29ecf233bd19fbd527bb4089bbf665dc90c1e3"

events@^1.0.0, events@^1.1.1:
version "1.1.1"
Expand Down Expand Up @@ -7051,14 +7051,15 @@ levn@^0.3.0, levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"

lint-staged@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-5.0.0.tgz#f1c670e03e2fdf3f3d0eb81f72d3bcf658770e54"
lint-staged@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-6.0.0.tgz#7ab7d345f2fe302ff196f1de6a005594ace03210"
dependencies:
app-root-path "^2.0.0"
chalk "^2.1.0"
commander "^2.11.0"
cosmiconfig "^3.1.0"
debug "^3.1.0"
dedent "^0.7.0"
execa "^0.8.0"
find-parent-dir "^0.3.0"
Expand Down

0 comments on commit ed8ea6e

Please sign in to comment.