Socket
Socket
Sign inDemoInstall

awilix

Package Overview
Dependencies
23
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
57
9Next

2.11.0

Diff

Changelog

Source

2.11.0

  • Add support for container.build() - see relevant docs
jeffijoe
published 2.10.0 •

Changelog

Source

2.10.0

  • Add support for Object.keys() on the cradle; now returns the names of available modules that can be resolved by accessing them.
    • There's a gotcha though; Object.getOwnPropertyDescriptor() will return a gibberish descriptor. This is required for the keys to show up in the result.
  • Fix iterating over cradle - generator now yields registration names, thanks @neerfri! (#40)
jeffijoe
published 2.9.0 •

Changelog

Source

2.9.0

  • Fix issue with console.log on the cradle throwing an error. (#7)
    • This should not break anything, but just to be safe I did a minor version bump.
  • Add support for Symbols (although not recommended).
jeffijoe
published 2.8.4 •

Changelog

Source

2.8.4

  • Change RegistrationOptions typing to union of string and options
jeffijoe
published 2.8.3 •

Changelog

Source

2.8.3

  • Fix typing for REGISTRATION symbol
jeffijoe
published 2.8.2 •

Changelog

Source

2.8.2

  • Fix typing for loadModules — it didn't allow the shortcut version of ['glob.js', Lifetime.SCOPED]
  • Add Prettier formatting as well as lint-staged to keep the tests passing and the code fresh before committing.
jeffijoe
published 2.8.1 •

Changelog

Source

2.8.1

  • Remove is-plain-object and is-string, use simple checks instead. Trying to keep the dependencies as thin as possible.
jeffijoe
published 2.8.0 •

Changelog

Source

2.8.0

  • [NEW]: Support inline registration options (#34)
jeffijoe
published 2.7.1 •

Changelog

Source

2.7.1

  • [FIXED]: container.loadModules() typing fix, thanks @dboune!
jeffijoe
published 2.7.0 •

Changelog

Source

2.7.0

  • [BREAKING]: Custom isClass function that will treat function Capital () {} as a class due to the capital first letter of the function name. This is to improve compatibility with Babel's ES5 code generator, and is also a pretty commonly accepted standard naming convention. (#28)
  • [NEW]: Added support for passing in a register function to loadModules. (#28)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc