File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
sudo : false
3
3
node_js :
4
- - ' 0.10'
5
- - ' 0.12'
6
4
- ' 4'
7
5
- ' node'
8
6
notifications :
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
var debug = require ( 'debug' ) ( 'socket.io-parser' ) ;
7
- var json = require ( 'json3' ) ;
8
7
var Emitter = require ( 'component-emitter' ) ;
9
8
var binary = require ( './binary' ) ;
10
9
var isBuf = require ( './is-buffer' ) ;
@@ -166,7 +165,7 @@ function encodeAsString(obj) {
166
165
167
166
// json data
168
167
if ( null != obj . data ) {
169
- str += json . stringify ( obj . data ) ;
168
+ str += JSON . stringify ( obj . data ) ;
170
169
}
171
170
172
171
debug ( 'encoded %j as %s' , obj , str ) ;
@@ -323,7 +322,7 @@ function decodeString(str) {
323
322
324
323
function tryParse ( p , str ) {
325
324
try {
326
- p . data = json . parse ( str ) ;
325
+ p . data = JSON . parse ( str ) ;
327
326
} catch ( e ) {
328
327
return error ( ) ;
329
328
}
Original file line number Diff line number Diff line change 13
13
],
14
14
"dependencies" : {
15
15
"debug" : " 2.3.3" ,
16
- "json3" : " 3.3.2" ,
17
16
"component-emitter" : " 1.2.1" ,
18
17
"isarray" : " 0.0.1"
19
18
},
You can’t perform that action at this time.
0 commit comments