Comparing version 1.16.0-beta.0 to 1.16.0-beta.1
{ | ||
"name": "kafkajs", | ||
"version": "1.16.0-beta.0", | ||
"version": "1.16.0-beta.1", | ||
"description": "A modern Apache Kafka client for node.js", | ||
@@ -83,5 +83,5 @@ "author": "Tulio Ornelas <ornelas.tulio@gmail.com>", | ||
"kafkajs": { | ||
"sha": "c2a91d4b5fcd35ec966723a8d1b67f8d26f2fc03", | ||
"compare": "https://github.com/tulios/kafkajs/compare/v1.15.0...c2a91d4b5fcd35ec966723a8d1b67f8d26f2fc03" | ||
"sha": "e1cefda9c952b281112b78b319b5d5cb770b9af6", | ||
"compare": "https://github.com/tulios/kafkajs/compare/v1.15.0...e1cefda9c952b281112b78b319b5d5cb770b9af6" | ||
} | ||
} |
const pkgJson = require('../package.json') | ||
const { bugs } = pkgJson | ||
@@ -198,3 +199,3 @@ class KafkaJSError extends Error { | ||
const issueUrl = pkgJson.bugs.url | ||
const issueUrl = bugs ? bugs.url : null | ||
@@ -207,4 +208,6 @@ class KafkaJSInvariantViolation extends KafkaJSNonRetriableError { | ||
const issueTitle = encodeURIComponent(`Invariant violation: ${message}`) | ||
this.helpUrl = `${issueUrl}/new?assignees=&labels=bug&template=bug_report.md&title=${issueTitle}` | ||
if (issueUrl !== null) { | ||
const issueTitle = encodeURIComponent(`Invariant violation: ${message}`) | ||
this.helpUrl = `${issueUrl}/new?assignees=&labels=bug&template=bug_report.md&title=${issueTitle}` | ||
} | ||
} | ||
@@ -211,0 +214,0 @@ } |
672429
19886