Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102500104
SelfModuleFactory.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 21, 08:50
Size
384 B
Mime Type
text/x-c++
Expires
Sun, Feb 23, 08:50 (2 d)
Engine
blob
Format
Raw Data
Handle
24335334
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
SelfModuleFactory.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict"
;
class
SelfModuleFactory
{
constructor
(
moduleGraph
)
{
this
.
moduleGraph
=
moduleGraph
;
}
create
(
data
,
callback
)
{
const
module
=
this
.
moduleGraph
.
getParentModule
(
data
.
dependencies
[
0
]);
callback
(
null
,
{
module
});
}
}
module
.
exports
=
SelfModuleFactory
;
Event Timeline
Log In to Comment