Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cheap-di

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheap-di - npm Package Compare versions

Comparing version 4.0.0-rc-3 to 4.0.0-rc-5

2

package.json
{
"name": "cheap-di",
"description": "TypeScript dependency injection like Autofac in .Net",
"version": "4.0.0-rc-3",
"version": "4.0.0-rc-5",
"scripts": {

@@ -6,0 +6,0 @@ "compile": "tsc --build tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json",

@@ -36,20 +36,2 @@ # cheap-di

* With cheap-di-ts-transform here will be added information about Service dependencies.
* It will looks like:
* @example
* import { findOrCreateMetadata } from 'cheap-di';
*
* // for Logger
* try {
* const metadata = findOrCreateMetadata(Logger);
*
* // only classes may be instantiated with DI, other parameters can be filled with argument injection
* metadata.dependencies = ["unknown"];
* } catch {}
*
* // for Service
* try {
* const metadata = findOrCreateMetadata(Service);
*
* metadata.dependencies = [Logger];
* } catch {}
* */

@@ -56,0 +38,0 @@

@@ -9,1 +9,21 @@ export * from './cheapDiSymbol.js';

export * from './types.js';
import { cheapDiSymbol } from './cheapDiSymbol.js';
import { CircularDependencyError } from './CircularDependencyError.js';
import { container, ContainerImpl } from './ContainerImpl.js';
import { inject } from './decorators/inject.js';
import { findMetadata, findOrCreateMetadata } from './findMetadata.js';
import { isSingleton } from './isSingleton.js';
import { Trace } from './Trace.js';
export default {
cheapDiSymbol,
CircularDependencyError,
container,
ContainerImpl,
inject,
findMetadata,
findOrCreateMetadata,
isSingleton,
Trace,
};
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc