'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;
