runtimeSupportsUploads.js 737 B

1234567891011121314151617181920
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const isNodeLike_1 = __importDefault(require("./isNodeLike"));
  7. const runtimeSupportsUploads = (() => {
  8. if (isNodeLike_1.default) {
  9. const [nodeMajor, nodeMinor] = process.versions.node
  10. .split('.', 2)
  11. .map(segment => parseInt(segment, 10));
  12. if (nodeMajor < 8 || (nodeMajor === 8 && nodeMinor < 5)) {
  13. return false;
  14. }
  15. return true;
  16. }
  17. return false;
  18. })();
  19. exports.default = runtimeSupportsUploads;
  20. //# sourceMappingURL=runtimeSupportsUploads.js.map