Sha256: 8f06f98786fda840cf270895fc9ca5427d3f39ce5663201e6ba37a3f3af150c9

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.hasMinVersion = hasMinVersion;

var _semver = require("semver");

function hasMinVersion(minVersion, runtimeVersion) {
  if (!runtimeVersion) return true;
  if (_semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`;
  return !_semver.intersects(`<${minVersion}`, runtimeVersion) && !_semver.intersects(`>=8.0.0`, runtimeVersion);
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/@babel/plugin-transform-runtime/lib/helpers.js
disco_app-0.15.2 test/dummy/node_modules/@babel/plugin-transform-runtime/lib/helpers.js
disco_app-0.18.4 test/dummy/node_modules/@babel/plugin-transform-runtime/lib/helpers.js
disco_app-0.18.1 test/dummy/node_modules/@babel/plugin-transform-runtime/lib/helpers.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/plugin-transform-runtime/lib/helpers.js
disco_app-0.14.0 test/dummy/node_modules/@babel/plugin-transform-runtime/lib/helpers.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/plugin-transform-runtime/lib/helpers.js