web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
764 B

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
  4. const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.');
  5. const MAJOR_VERSION = parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
  6. const MINOR_VERSION = parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
  7. const SUPPORTED_MAJOR_VERSION = 10;
  8. const SUPPORTED_MINOR_VERSION = 10;
  9. const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
  10. const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
  11. /**
  12. * IS `true` for Node.js 10.10 and greater.
  13. */
  14. exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;