Comparing version 4.8.0 to 4.9.0
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "./constants/metadata_keys", "./container/container", "./constants/literal_types", "./container/container_module", "./annotation/injectable", "./annotation/tagged", "./annotation/named", "./annotation/inject", "./annotation/optional", "./annotation/unmanaged", "./annotation/multi_inject", "./annotation/target_name", "./annotation/post_construct", "./planning/metadata_reader", "./utils/guid", "./annotation/decorator_utils", "./syntax/constraint_helpers", "./utils/serialization"], function (require, exports, keys, container_1, literal_types_1, container_module_1, injectable_1, tagged_1, named_1, inject_1, optional_1, unmanaged_1, multi_inject_1, target_name_1, post_construct_1, metadata_reader_1, guid_1, decorator_utils_1, constraint_helpers_1, serialization_1) { | ||
define(["require", "exports", "./constants/metadata_keys", "./container/container", "./constants/literal_types", "./container/container_module", "./annotation/injectable", "./annotation/tagged", "./annotation/named", "./annotation/inject", "./annotation/optional", "./annotation/unmanaged", "./annotation/multi_inject", "./annotation/target_name", "./annotation/post_construct", "./planning/metadata_reader", "./utils/guid", "./annotation/decorator_utils", "./syntax/constraint_helpers", "./utils/serialization", "./utils/binding_utils"], function (require, exports, keys, container_1, literal_types_1, container_module_1, injectable_1, tagged_1, named_1, inject_1, optional_1, unmanaged_1, multi_inject_1, target_name_1, post_construct_1, metadata_reader_1, guid_1, decorator_utils_1, constraint_helpers_1, serialization_1, binding_utils_1) { | ||
"use strict"; | ||
@@ -27,2 +27,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getServiceIdentifierAsString = serialization_1.getServiceIdentifierAsString; | ||
exports.multiBindToService = binding_utils_1.multiBindToService; | ||
}); |
@@ -65,2 +65,5 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_types", "./binding_in_when_on_syntax", "./binding_when_on_syntax"], function (require, exports, ERROR_MSGS, literal_types_1, binding_in_when_on_syntax_1, binding_when_on_syntax_1) { | ||
}; | ||
BindingToSyntax.prototype.toService = function (service) { | ||
this.toDynamicValue(function (context) { return context.container.get(service); }); | ||
}; | ||
return BindingToSyntax; | ||
@@ -67,0 +70,0 @@ }()); |
@@ -214,2 +214,3 @@ declare namespace interfaces { | ||
toProvider<T2>(provider: ProviderCreator<T2>): BindingWhenOnSyntax<T>; | ||
toService(service: ServiceIdentifier<T>): void; | ||
} | ||
@@ -216,0 +217,0 @@ interface ConstraintFunction extends Function { |
@@ -21,1 +21,2 @@ import * as keys from "./constants/metadata_keys"; | ||
export { getServiceIdentifierAsString } from "./utils/serialization"; | ||
export { multiBindToService } from "./utils/binding_utils"; |
@@ -16,3 +16,4 @@ import { interfaces } from "../interfaces/interfaces"; | ||
toProvider<T2>(provider: interfaces.ProviderCreator<T2>): interfaces.BindingWhenOnSyntax<T>; | ||
toService(service: string | symbol | interfaces.Newable<T> | interfaces.Abstract<T>): void; | ||
} | ||
export { BindingToSyntax }; |
@@ -20,1 +20,2 @@ import * as keys from "./constants/metadata_keys"; | ||
export { getServiceIdentifierAsString } from "./utils/serialization"; | ||
export { multiBindToService } from "./utils/binding_utils"; |
@@ -66,4 +66,7 @@ import * as ERROR_MSGS from "../constants/error_msgs"; | ||
}; | ||
BindingToSyntax.prototype.toService = function (service) { | ||
this.toDynamicValue(function (context) { return context.container.get(service); }); | ||
}; | ||
return BindingToSyntax; | ||
}()); | ||
export { BindingToSyntax }; |
@@ -44,1 +44,3 @@ "use strict"; | ||
exports.getServiceIdentifierAsString = serialization_1.getServiceIdentifierAsString; | ||
var binding_utils_1 = require("./utils/binding_utils"); | ||
exports.multiBindToService = binding_utils_1.multiBindToService; |
@@ -68,4 +68,7 @@ "use strict"; | ||
}; | ||
BindingToSyntax.prototype.toService = function (service) { | ||
this.toDynamicValue(function (context) { return context.container.get(service); }); | ||
}; | ||
return BindingToSyntax; | ||
}()); | ||
exports.BindingToSyntax = BindingToSyntax; |
{ | ||
"name": "inversify", | ||
"version": "4.8.0", | ||
"version": "4.9.0", | ||
"description": "A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "lib/inversify.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
307401
177
6098