Add node modules and compiled JavaScript from main
This commit is contained in:
parent
1021f818b9
commit
feeb5f7b58
7748 changed files with 1825934 additions and 2 deletions
21
node_modules/istanbul-lib-source-maps/lib/transform-utils.js
generated
vendored
Normal file
21
node_modules/istanbul-lib-source-maps/lib/transform-utils.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
Copyright 2015, Yahoo Inc.
|
||||
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
function getUniqueKey(pathname) {
|
||||
return pathname.replace(/[\\/]/g, '_');
|
||||
}
|
||||
|
||||
function getOutput(cache) {
|
||||
return Object.values(cache).reduce(
|
||||
(output, { file, mappedCoverage }) => ({
|
||||
...output,
|
||||
[file]: mappedCoverage
|
||||
}),
|
||||
{}
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = { getUniqueKey, getOutput };
|
Loading…
Add table
Add a link
Reference in a new issue