Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Move client/index.js to client.js and server/index.js to server.js an…

…d corresponding requires
  • Loading branch information...
commit 4e9270f8c9810de49de83591f500f10f0f63ab74 1 parent ab3a997
Tedde Lundgren authored September 21, 2012
8  lib/client/index.js → lib/client.js
... ...
@@ -1,5 +1,5 @@
1  
-var Server = require('../server');
2  
-var utils = require('../utils');
  1
+var Server = require('./server');
  2
+var utils = require('./utils');
3 3
 var events = require('events');
4 4
 
5 5
 /**
@@ -36,14 +36,14 @@ module.exports = Client;
36 36
  * @type HttpClient
37 37
  * @static
38 38
  */
39  
-Client.http = require('./http');
  39
+Client.http = require('./client/http');
40 40
 
41 41
 /**
42 42
  * Fork client constructor
43 43
  * @type ForkClient
44 44
  * @static
45 45
  */
46  
-Client.fork = require('./fork');
  46
+Client.fork = require('./client/fork');
47 47
 
48 48
 /**
49 49
  *  Creates a request and dispatches it if given a callback.
2  lib/client/fork.js
... ...
@@ -1,5 +1,5 @@
1 1
 var utils = require('../utils');
2  
-var Client = require('./');
  2
+var Client = require('../client');
3 3
 
4 4
 /**
5 5
  *  Constructor for a Jayson HTTP Client
2  lib/client/http.js
... ...
@@ -1,6 +1,6 @@
1 1
 var http = require('http');
2 2
 var utils = require('../utils');
3  
-var Client = require('./index');
  3
+var Client = require('../client');
4 4
 
5 5
 /**
6 6
  *  Constructor for a Jayson HTTP Client
12  lib/server/index.js → lib/server.js
... ...
@@ -1,6 +1,6 @@
1  
-var jayson = require('../');
  1
+var jayson = require('./');
2 2
 var events = require('events');
3  
-var utils = require('../utils');
  3
+var utils = require('./utils');
4 4
 
5 5
 /**
6 6
  *  Constructor for a Jayson server
@@ -56,9 +56,9 @@ module.exports = Server;
56 56
  * @static
57 57
  */
58 58
 Server.interfaces = {
59  
-  http: require('./http'),
60  
-  https: require('./https'),
61  
-  middleware: require('./middleware')
  59
+  http: require('./server/http'),
  60
+  https: require('./server/https'),
  61
+  middleware: require('./server/middleware')
62 62
 };
63 63
 
64 64
 /**
@@ -66,7 +66,7 @@ Server.interfaces = {
66 66
  * @type ForkServer
67 67
  * @static
68 68
  */
69  
-Server.fork = require('./fork');
  69
+Server.fork = require('./server/fork');
70 70
 
71 71
 /**
72 72
  * JSON-RPC specification errors that map to a integer code
2  lib/server/fork.js
... ...
@@ -1,7 +1,7 @@
1 1
 var utils = require('../utils');
2 2
 var fork = require('child_process').fork;
3 3
 var path = require('path');
4  
-var JaysonServer = require('./index');
  4
+var JaysonServer = require('../server');
5 5
 
6 6
 /**
7 7
  *  Constructor for a Jayson JSON-RPC Fork Server

0 notes on commit 4e9270f

Please sign in to comment.
Something went wrong with that request. Please try again.