[Backport 7.x] Prereleases in meta header should be displayed as p (#1390)

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2021-01-19 08:11:57 +01:00
committed by GitHub
parent 2be23c0946
commit 5eab7e9c75
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 => {