Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

@ogre-tools/injectable-extension-for-auto-registration

Package Overview
Dependencies
0
Maintainers
2
Versions
31
Issues
File Explorer

Advanced tools

@ogre-tools/injectable-extension-for-auto-registration

Auto-registration of injectables for Injectable in Ogre Tools

    15.2.1latest
    GitHub

Version published
Maintainers
2
Weekly downloads
1,112
decreased by-10.25%

Weekly downloads

Changelog

Source

15.2.1 (2023-03-31)

Bug Fixes

  • Change the typing of injectionDecoratorToken (e0b8871)

Readme

Source

Auto-registration for Injectable in Ogre Tools

Auto register injectables from default exports of files that match a require.context.

Usage

$ npm install @ogre-tools/injectable $ npm install @ogre-tools/injectable-extension-for-auto-registration ... const di = createContainer(); autoRegister({ di, requireContexts: [ require.context("./some-directory", true, /\.injectable\.(ts|tsx)$/), require.context("./some-other-directory", true, /\.injectable\.(ts|tsx)$/), ], });

Documentation

Check unit tests for documentation.

Keywords

FAQs

Last updated on 31 Mar 2023

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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