ForestAdmin/toolbelt

View on GitHub
src/context/utils-plan.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
/* eslint-disable global-require */
module.exports = plan =>
  plan
    .addUsingClass('keyGenerator', () => require('../utils/key-generator'))
    .addUsingClass('logger', () => require('../services/logger'))
    .addUsingClass('eventSender', () => require('../utils/event-sender'))
    .addUsingFunction('terminator', require('../utils/terminator'))
    .addValue('messages', require('../utils/messages'))
    .addFunction('toValidPackageName', require('../utils/to-valid-package-name'))
    .addFunction('buildDatabaseUrl', require('../utils/database-url').default)
    .addFunction('isDatabaseLocal', require('../utils/database-url').isDatabaseLocal)
    .addUsingClass('strings', () => require('../utils/strings').default);