* 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
569 B
JavaScript
27 lines
569 B
JavaScript
'use strict'
|
|
|
|
const NodeVersionBase = require('./node-base')
|
|
const { versionColorForRangeCurrent } = require('./node-version-color')
|
|
|
|
module.exports = class NodeCurrentVersion extends NodeVersionBase {
|
|
static get path() {
|
|
return 'v'
|
|
}
|
|
|
|
static get defaultBadgeData() {
|
|
return { label: 'node' }
|
|
}
|
|
|
|
static get type() {
|
|
return 'current'
|
|
}
|
|
|
|
static get colorResolver() {
|
|
return versionColorForRangeCurrent
|
|
}
|
|
|
|
static get documentation() {
|
|
return `This badge indicates whether the package supports the <b>latest</b> release of node`
|
|
}
|
|
}
|