index.js 2.3 KB

123456789101112131415161718192021222324252627282930313233
  1. "use strict";
  2. function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _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(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  31. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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 }; }