Unit Tests / test (pull_request) Successful in 12s
Bring dependency tree from 103 vulns (4 critical / 71 high) down to 4 moderate via npm audit fix, locked transitive overrides, and a CRA-compatible brace-expansion shim. Remaining moderates need react-router v7 and leaving Create React App.
16 lines
502 B
JavaScript
16 lines
502 B
JavaScript
'use strict';
|
|
|
|
// minimatch@3 and other CRA tooling expect module.exports to be the expand
|
|
// function (brace-expansion v1 API). Upstream 5.0.8 exports { expand } and
|
|
// includes the GHSA-mh99-v99m-4gvg DoS limits.
|
|
const safe = require('./lib');
|
|
|
|
function expandTop(str, options) {
|
|
return safe.expand(str, options);
|
|
}
|
|
|
|
module.exports = expandTop;
|
|
module.exports.expand = safe.expand;
|
|
module.exports.EXPANSION_MAX = safe.EXPANSION_MAX;
|
|
module.exports.EXPANSION_MAX_LENGTH = safe.EXPANSION_MAX_LENGTH;
|