()
| 573 | } |
| 574 | |
| 575 | function addParseCloud() { |
| 576 | const ParseCloud = require('./cloud-code/Parse.Cloud'); |
| 577 | const ParseServer = require('./cloud-code/Parse.Server'); |
| 578 | Object.defineProperty(Parse, 'Server', { |
| 579 | get() { |
| 580 | const conf = Config.get(Parse.applicationId); |
| 581 | return { ...conf, ...ParseServer }; |
| 582 | }, |
| 583 | set(newVal) { |
| 584 | newVal.appId = Parse.applicationId; |
| 585 | Config.put(newVal); |
| 586 | }, |
| 587 | configurable: true, |
| 588 | }); |
| 589 | Object.assign(Parse.Cloud, ParseCloud); |
| 590 | global.Parse = Parse; |
| 591 | } |
| 592 | |
| 593 | function injectDefaults(options: ParseServerOptions) { |
| 594 | Object.keys(defaults).forEach(key => { |
no outgoing calls
no test coverage detected