@makerdao/services-core
TypeScript icon, indicating that this package has built-in type declarations

0.11.4 • Public • Published

@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
  }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.11.45latest
0.11.0-beta.10beta
0.11.0-alpha.90alpha

Version History

VersionDownloads (Last 7 Days)Published
0.11.45
0.11.4-alpha.00
0.11.30
0.11.20
0.11.00
0.11.0-alpha.90
0.11.0-alpha.80
0.11.0-alpha.40
0.11.0-alpha.30
0.11.0-alpha.20
0.11.0-alpha.10
0.11.0-alpha.00
0.11.0-beta.10
0.10.01
0.9.9160
0.9.81
0.9.70
0.9.60
0.9.51
0.9.41
0.9.20

Package Sidebar

Install

npm i @makerdao/services-core

Weekly Downloads

169

Version

0.11.4

License

MIT

Unpacked Size

525 kB

Total Files

11

Last publish

Collaborators

  • adamgoth
  • b-pmcg
  • krzkaczor
  • tyler17