index.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. "use strict";
  2. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  3. Object.defineProperty(exports, "__esModule", {
  4. value: true
  5. });
  6. Object.defineProperty(exports, "patchFs", {
  7. enumerable: true,
  8. get: function get() {
  9. return _patchFs["default"];
  10. }
  11. });
  12. Object.defineProperty(exports, "patchRequire", {
  13. enumerable: true,
  14. get: function get() {
  15. return _patchRequire["default"];
  16. }
  17. });
  18. Object.defineProperty(exports, "unixify", {
  19. enumerable: true,
  20. get: function get() {
  21. return _correctPath.unixify;
  22. }
  23. });
  24. exports.util = void 0;
  25. var _patchFs = _interopRequireDefault(require("./patchFs"));
  26. var _patchRequire = _interopRequireDefault(require("./patchRequire"));
  27. var _correctPath = require("./correctPath");
  28. var util = _interopRequireWildcard(require("./util/lists"));
  29. exports.util = util;
  30. function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
  31. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  32. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }