Skip to content

Commit

Permalink
[fix] Remove parsejson dependency (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Grande authored and darrachequesne committed Sep 27, 2017
1 parent b949abc commit 0b26bc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var debug = require('debug')('engine.io-client:socket');
var index = require('indexof');
var parser = require('engine.io-parser');
var parseuri = require('parseuri');
var parsejson = require('parsejson');
var parseqs = require('parseqs');

/**
Expand Down Expand Up @@ -439,7 +438,7 @@ Socket.prototype.onPacket = function (packet) {

switch (packet.type) {
case 'open':
this.onHandshake(parsejson(packet.data));
this.onHandshake(JSON.parse(packet.data));
break;

case 'pong':
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"engine.io-parser": "~2.1.1",
"has-cors": "1.1.0",
"indexof": "0.0.1",
"parsejson": "0.0.3",
"parseqs": "0.0.5",
"parseuri": "0.0.5",
"ws": "~2.3.1",
Expand Down

0 comments on commit 0b26bc3

Please sign in to comment.