Skip to content

Commit

Permalink
change arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutianski committed Sep 19, 2015
1 parent c273b1e commit f42af06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/meetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ var addOauthParams = function(req, params) {
var onStream = function(req, callback) {
// create stream
req.pipe(JSONStream.parse()).pipe(
evStream.map(function(data) {
evStream.map(data => {
// return data on event
callback(data);
})
Expand Down Expand Up @@ -299,7 +299,7 @@ APIRequest.ws = function(endpoint, params) {
// pass websocket events
this.on = function(event, callback) {
if (event === 'data') {
ws.on(event, function(data) {
ws.on(event, data => {
// parse buffer string to JSON and return to the callback
callback(JSON.parse(data.toString()));
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "meetup-api",
"description": "Meetup API library",
"version": "1.0.1",
"version": "1.0.2",
"license": "GPL-3.0",
"directories": {
"lib": "./lib",
Expand Down

0 comments on commit f42af06

Please sign in to comment.