Add node modules and new code for release
This commit is contained in:
parent
a10d84bc2e
commit
90f63cb10d
7655 changed files with 1763577 additions and 14 deletions
24
node_modules/istanbul-reports/index.js
generated
vendored
Normal file
24
node_modules/istanbul-reports/index.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
'use strict';
|
||||
/*
|
||||
Copyright 2012-2015, Yahoo Inc.
|
||||
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
||||
*/
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
create(name, cfg) {
|
||||
cfg = cfg || {};
|
||||
let Cons;
|
||||
try {
|
||||
Cons = require(path.join(__dirname, 'lib', name));
|
||||
} catch (e) {
|
||||
if (e.code !== 'MODULE_NOT_FOUND') {
|
||||
throw e;
|
||||
}
|
||||
|
||||
Cons = require(name);
|
||||
}
|
||||
|
||||
return new Cons(cfg);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue