* fix: node badges are missing descriptions #4871 * fix: node badges are missing descriptions #4871 * fix: node badges are missing descriptions #4871 * Update services/node/node-lts.service.js Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com> * Update services/node/node-current.service.js Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com> * Update services/node/node-base.js Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com> Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
27 lines
556 B
JavaScript
27 lines
556 B
JavaScript
'use strict'
|
|
|
|
const NodeVersionBase = require('./node-base')
|
|
const { versionColorForRangeLts } = require('./node-version-color')
|
|
|
|
module.exports = class NodeLtsVersion extends NodeVersionBase {
|
|
static get path() {
|
|
return 'v-lts'
|
|
}
|
|
|
|
static get defaultBadgeData() {
|
|
return { label: 'node-lts' }
|
|
}
|
|
|
|
static get type() {
|
|
return 'lts'
|
|
}
|
|
|
|
static get colorResolver() {
|
|
return versionColorForRangeLts
|
|
}
|
|
|
|
static get documentation() {
|
|
return `This badge indicates whether the package supports <b>all</b> LTS node versions`
|
|
}
|
|
}
|