UNPKG
@glandjs/core
Version:
alpha (1.0.0-alpha.1)
beta (1.0.0-beta)
latest (1.0.3-beta)
1.0.3-beta
1.0.2-beta
1.0.1-beta
1.0.1-alpha
1.0.0-beta
1.0.0-alpha.1
1.0.0-alpha.0
1.0.0-alpha
Glands is a web framework for Node.js (@core)
github.com/glandjs/gland
glandjs/gland
@glandjs/core
/
injector
/
container
/
module-container.js
10 lines
(9 loc)
•
308 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
ModulesContainer
=
void
0
;
class
ModulesContainer
extends
Map
{
getByToken
(
token
) {
return
[...
this
.
values
()].
find
(
(
moduleRef
) =>
moduleRef.
token
=== token); } }
exports
.
ModulesContainer
=
ModulesContainer
;