Home

tailwind-ctp-intellisense @19a550d0de1f3bfbc2a49297e9f7e0c53cfc1ca6 - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / packages / tailwindcss-language-service / src / util / semver.ts
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
import semverGte from 'semver/functions/gte'
import semverLte from 'semver/functions/lte'

export function gte(v1: string, v2: string): boolean {
  if (v1.startsWith('0.0.0-insiders')) {
    return true
  }
  return semverGte(v1, v2)
}

export function lte(v1: string, v2: string): boolean {
  if (v1.startsWith('0.0.0-insiders')) {
    return false
  }
  return semverLte(v1, v2)
}