From: Justin Wind Date: Sat, 9 Oct 2021 19:19:33 +0000 (-0700) Subject: add namespace to package version X-Git-Tag: v1.3.0^2~3 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0423b523c5cd014779acd8bf01919263e7a40c0e;p=websub-hub add namespace to package version --- diff --git a/package.json b/package.json index 893bb20..7ec14c5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "websub-hub", + "name": "@squeep/websub-hub", "version": "1.2.2", "description": "A WebSub Hub server implementation.", "main": "server.js", diff --git a/src/communication.js b/src/communication.js index b112377..03cc670 100644 --- a/src/communication.js +++ b/src/communication.js @@ -57,7 +57,7 @@ class Communication { static userAgentString(userAgentConfig) { // eslint-disable-next-line security/detect-object-injection const _conf = (field, def) => (userAgentConfig && field in userAgentConfig) ? userAgentConfig[field] : def; - const product = _conf('product', packageName); + const product = _conf('product', packageName).split('/').pop(); const version = _conf('version', packageVersion); let implementation = _conf('implementation', Enum.Specification); if (implementation) {