@@ -79,7 +79,7 @@ addParseCloud();
79
79
// "javascriptKey": optional key from Parse dashboard
80
80
// "push": optional key from configure push
81
81
82
- export default class ParseServer {
82
+ class ParseServer {
83
83
84
84
constructor ( {
85
85
appId = requiredParameter ( 'You must provide an appId!' ) ,
@@ -270,25 +270,25 @@ export default class ParseServer {
270
270
return api ;
271
271
}
272
272
273
- static ParseServer ( options ) {
274
- let server = new ParseServer ( options ) ;
275
- return server . app ;
276
- }
277
-
278
273
static createLiveQueryServer ( httpServer , config ) {
279
274
return new ParseLiveQueryServer ( httpServer , config ) ;
280
275
}
281
276
}
282
277
278
+ // Factory function
279
+ let _ParseServer = function ( options ) {
280
+ let server = new ParseServer ( options ) ;
281
+ return server . app ;
282
+ }
283
+ // Mount the create liveQueryServer
284
+ _ParseServer . createLiveQueryServer = ParseServer . createLiveQueryServer ;
285
+
283
286
function addParseCloud ( ) {
284
287
const ParseCloud = require ( "./cloud-code/Parse.Cloud" ) ;
285
288
Object . assign ( Parse . Cloud , ParseCloud ) ;
286
289
global . Parse = Parse ;
287
290
}
288
291
289
- let runServer = function ( options ) {
290
- return ParseServer . ParseServer ( options ) ;
291
- }
292
-
292
+ export default ParseServer ;
293
293
export { S3Adapter , GCSAdapter , FileSystemAdapter } ;
294
- export { runServer as ParseServer } ;
294
+ export { _ParseServer as ParseServer } ;
0 commit comments