UNPKG

ctrip-apollo-ex

Version:

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

18 lines (13 loc) 417 B
const {AVAILABLE_OPTIONS} = require('./options') const {DEFAULT_POLLING_RETRY_POLICY} = require('./polling') 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