How to use webiny-service-manager - 3 common examples

To help you get started, we’ve selected a few webiny-service-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / webiny-api / src / api.js View on Github external
constructor() {
        this.config = {};
        this.services = new ServiceManager();
        this.apps = [];
    }
github webiny / webiny-js / packages-client / webiny-client / src / app / index.js View on Github external
constructor() {
        this.configurators = [];
        this.modules = new ModuleLoader();
        this.services = new ServiceManager();
        this.router = new Router();
        this.initialized = false;
        this.configLoader = () => Promise.resolve({});

        axios.defaults.validateStatus = status => {
            return status >= 200 && status < 500;
        };

        axios.defaults.timeout = 6000;
    }
github webiny / webiny-js / packages / webiny-app / src / app / index.js View on Github external
constructor() {
        this.configurators = [];
        this.modules = new ModuleLoader();
        this.services = new ServiceManager();
        this.router = new Router();
        this.security = new Security();
        this.graphql = new GraphQLClient();
        this.initialized = false;
        this.configLoader = () => Promise.resolve({});

        registerDefaultModules(this);
    }

webiny-service-manager

A small library for managing your app services.

MIT
Latest version published 5 years ago

Package Health Score

63 / 100
Full package analysis

Popular webiny-service-manager functions

Similar packages