JSPM

  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q50249F
  • License MIT

Dependency injection framework

Package Exports

  • @makerdao/services-core
  • @makerdao/services-core/dist/index.js
  • @makerdao/services-core/dist/services-core.umd.production.min.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@makerdao/services-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@makerdao/services-core

A dependency injection framework used in dai.js.

TODO

  • create full usage example

Usage (TODO)

class MyService extends PrivateService {
  constructor(name = 'serviceRoleName') {
    super(name, dependencyRoleNames);
  }

  initialize(settings) {
    // initialize() for all its dependencies will run first
  }

  connect() {
    // connect() for all its dependencies will run first
  }

  authenticate() {
    // authenticate() for all its dependencies will run first
  }
}