Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121778124
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
Sun, Jul 13, 19:56
Size
384 B
Mime Type
text/x-c++
Expires
Tue, Jul 15, 19:56 (2 d)
Engine
blob
Format
Raw Data
Handle
27389474
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