UNPKG

ctrip-apollo

Version:

The most delightful and handy Node.js client for ctrip apollo configuration service

21 lines (15 loc) 394 B
const { AVAILABLE_OPTIONS, DEFAULT_POLLING_RETRY_POLICY } = require('./options') const ApolloApplication = require('./application') const apollo = options => new ApolloApplication(options) Object.defineProperties(apollo, { DEFAULT_POLLING_RETRY_POLICY: { value: DEFAULT_POLLING_RETRY_POLICY }, AVAILABLE_OPTIONS: { value: AVAILABLE_OPTIONS } }) module.exports = apollo