Prereleases in meta header should be displayed as p (#1381)

This commit is contained in:
Tomas Della Vedova
2021-01-19 08:10:27 +01:00
committed by GitHub
parent b0769bec11
commit 618b244473
4 changed files with 18 additions and 4 deletions

View File

@ -26,7 +26,10 @@ const intoStream = require('into-stream')
const { Client, ConnectionPool, Transport, Connection, errors } = require('../../index')
const { CloudConnectionPool } = require('../../lib/pool')
const { buildServer } = require('../utils')
const clientVersion = require('../../package.json').version
let clientVersion = require('../../package.json').version
if (clientVersion.includes('-')) {
clientVersion = clientVersion.slice(0, clientVersion.indexOf('-')) + 'p'
}
const nodeVersion = process.versions.node
test('Configure host', t => {