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

reactive-di

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-di - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

7

dist/index.js
'use strict';
exports.__esModule = true;
exports.defaultPlugins = exports.createManagerFactory = exports.BaseProvider = exports.SimpleMap = exports.SimpleSet = exports.createDummyRelationUpdater = exports.createHotRelationUpdater = exports.annotationDriver = exports.fastCreateObject = exports.fastCall = undefined;
exports.defaultPlugins = exports.createManagerFactory = exports.BaseProvider = exports.SimpleMap = exports.SimpleSet = exports.createDummyRelationUpdater = exports.createHotRelationUpdater = exports.annotationDriver = exports.DisposableCollection = exports.fastCreateObject = exports.fastCall = undefined;

@@ -38,2 +38,6 @@ var _BaseProvider = require('./core/BaseProvider');

var _DisposableCollection = require('./utils/DisposableCollection');
var _DisposableCollection2 = _interopRequireDefault(_DisposableCollection);
var _fastCall = require('./utils/fastCall');

@@ -45,2 +49,3 @@

exports.fastCreateObject = _fastCall.fastCreateObject;
exports.DisposableCollection = _DisposableCollection2.default;
exports.annotationDriver = _annotationDriver2.default;

@@ -47,0 +52,0 @@ exports.createHotRelationUpdater = _createHotRelationUpdater2.default;

51

lib/reactive-di.js
/* @flow */
import type {
ProviderManager,
Disposable,
Collection,
Container,

@@ -13,4 +14,2 @@ Tag,

RelationUpdater,
CreateContainer,
Resolver,
CreateContainerManager,

@@ -26,32 +25,48 @@ ContainerManager

declare function fastCall<T>(fn: Function, args: Array<any>): T;
declare function fastCreateObject<T>(target: Class<T>, args: Array<any>): T;
declare var annotationDriver: AnnotationDriver;
declare function createConfigProvider(
declare function createManagerFactory(
pluginsConfig?: Array<Plugin>,
createUpdater?: () => RelationUpdater,
createContainer?: CreateContainer
): CreateContainerManager;
declare function createDefaultContainer(
providerManager: ProviderManager,
middlewares: Map<DependencyKey|Tag, Array<DependencyKey>>,
parent: ?Container
): Container;
createUpdater?: () => RelationUpdater
): (config?: Array<Annotation>) => ContainerManager;
declare function createHotRelationUpdater(): RelationUpdater;
declare function createDummyRelationUpdater(): RelationUpdater;
declare var defaultPlugins: Array<Plugin>;
declare class DisposableCollection<T: Disposable> {
items: Array<T>;
add(item: T): void;
}
declare class SimpleMap<K, V> extends Map<K, V> {}
declare class BaseProvider<Ann: Annotation> {
declare class SimpleSet<V> extends Set<V> {}
declare class BaseProvider<V, Ann: Annotation, P: Provider> {
kind: any;
displayName: string;
tags: Array<Tag>;
annotation: Ann;
getDependencies(): Array<Provider>;
addDependency(dependency: Provider): void;
value: V;
getDependants(): Array<Provider>;
addDependant(dependant: Provider): void;
isDisposed: boolean;
isCached: boolean;
createResolver(container: Container): Resolver;
dependencies: Array<Provider|P>;
dependants: Collection<Provider|P>;
constructor(annotation: Ann): void;
init(container: Container): void;
dispose(): void;
update(): void;
addDependency(dependency: P): void;
addDependant(dependant: P): void;
}
}
{
"name": "reactive-di",
"version": "1.0.6",
"version": "1.0.7",
"description": "Reactive dependency injection",

@@ -5,0 +5,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

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