New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mesh-ioc

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mesh-ioc - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

out/main/decorators/dep.d.ts

6

out/main/index.d.ts

@@ -1,6 +0,6 @@

export * from './bindings';
export * from './decorators';
export * from './decorators/dep';
export * from './decorators/service';
export * from './errors';
export * from './mesh';
export * from './metadata';
export * from './scope';
export * from './types';

@@ -13,7 +13,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./bindings"), exports);
__exportStar(require("./decorators"), exports);
__exportStar(require("./decorators/dep"), exports);
__exportStar(require("./decorators/service"), exports);
__exportStar(require("./errors"), exports);
__exportStar(require("./mesh"), exports);
__exportStar(require("./metadata"), exports);
__exportStar(require("./scope"), exports);
__exportStar(require("./types"), exports);

@@ -1,4 +0,3 @@

import { Binding } from './bindings';
import { Scope } from './scope';
import { AbstractClass, Middleware, ServiceConstructor, ServiceKey } from './types';
import { AbstractClass, Binding, Middleware, ServiceConstructor, ServiceKey } from './types';
export declare const MESH_REF: unique symbol;

@@ -5,0 +4,0 @@ export declare class Mesh {

@@ -1,4 +0,2 @@

import { Binding } from './bindings';
import { AbstractClass, ServiceConstructor, ServiceKey } from './types';
export declare const MESH_REF: unique symbol;
import { AbstractClass, Binding, ServiceConstructor, ServiceKey } from './types';
export declare class Scope {

@@ -5,0 +3,0 @@ readonly name: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Scope = exports.MESH_REF = void 0;
exports.Scope = void 0;
const errors_1 = require("./errors");
const util_1 = require("./util");
exports.MESH_REF = Symbol.for('MESH_REF');
class Scope {

@@ -8,0 +7,0 @@ constructor(name, bindings = []) {

@@ -13,1 +13,25 @@ export declare type Constructor<T> = {

export declare type Middleware = (instance: any) => any;
export declare type Binding<T> = ConstantBinding<T> | ServiceBinding<T> | AliasBinding;
export declare type ConstantBinding<T> = {
type: 'constant';
value: T;
};
export declare type ServiceBinding<T> = {
type: 'service';
class: ServiceConstructor<T>;
};
export declare type AliasBinding = {
type: 'alias';
key: string;
};
export interface DepMetadata {
className: string;
propertyName: string;
designTypeName: string;
key: string;
}
export interface ServiceMetadata {
class: ServiceConstructor<any>;
alias?: string;
metadata?: any;
}
{
"name": "mesh-ioc",
"version": "1.0.0",
"version": "1.1.0",
"description": "Mesh: Powerful and Lightweight IoC Library",

@@ -5,0 +5,0 @@ "main": "out/main/index.js",

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