From 0423b523c5cd014779acd8bf01919263e7a40c0e Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Sat, 9 Oct 2021 12:19:33 -0700 Subject: [PATCH] add namespace to package version --- package.json | 2 +- src/communication.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.45.2