index.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.createInstrumenter = createInstrumenter;
  6. Object.defineProperty(exports, "programVisitor", {
  7. enumerable: true,
  8. get: function () {
  9. return _visitor.default;
  10. }
  11. });
  12. Object.defineProperty(exports, "readInitialCoverage", {
  13. enumerable: true,
  14. get: function () {
  15. return _readCoverage.default;
  16. }
  17. });
  18. exports.defaultOpts = void 0;
  19. var _schema = require("@istanbuljs/schema");
  20. var _instrumenter = _interopRequireDefault(require("./instrumenter"));
  21. var _visitor = _interopRequireDefault(require("./visitor"));
  22. var _readCoverage = _interopRequireDefault(require("./read-coverage"));
  23. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24. /**
  25. * createInstrumenter creates a new instrumenter with the
  26. * supplied options.
  27. * @param {Object} opts - instrumenter options. See the documentation
  28. * for the Instrumenter class.
  29. */
  30. function createInstrumenter(opts) {
  31. return new _instrumenter.default(opts);
  32. }
  33. const defaultOpts = _schema.defaults.instrumenter;
  34. exports.defaultOpts = defaultOpts;