Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

constants.js 710B

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