| Software: Apache. PHP/5.3.29 uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 
 Safe-mode: OFF (not secure) /opt/alt/alt-nodejs18/root/usr/lib/node_modules/npm/node_modules.bundled/semver/functions/   drwxr-xr-x | |
| Viewing file: Select action/file-type: const eq = require('./eq')
const neq = require('./neq')
const gt = require('./gt')
const gte = require('./gte')
const lt = require('./lt')
const lte = require('./lte')
const cmp = (a, op, b, loose) => {
  switch (op) {
    case '===':
      if (typeof a === 'object') {
        a = a.version
      }
      if (typeof b === 'object') {
        b = b.version
      }
      return a === b
    case '!==':
      if (typeof a === 'object') {
        a = a.version
      }
      if (typeof b === 'object') {
        b = b.version
      }
      return a !== b
    case '':
    case '=':
    case '==':
      return eq(a, b, loose)
    case '!=':
      return neq(a, b, loose)
    case '>':
      return gt(a, b, loose)
    case '>=':
      return gte(a, b, loose)
    case '<':
      return lt(a, b, loose)
    case '<=':
      return lte(a, b, loose)
    default:
      throw new TypeError(`Invalid operator: ${op}`)
  }
}
module.exports = cmp
 | 
| :: Command execute :: | |
| --[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0086 ]-- |