musora-content-services 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.6.1](https://github.com/railroadmedia/musora-content-services/compare/v1.6.0...v1.6.1) (2025-06-11)
6
+
5
7
  ## [1.6.0](https://github.com/railroadmedia/musora-content-services/compare/v1.5.0...v1.6.0) (2025-06-04)
6
8
 
7
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -2,7 +2,7 @@
2
2
  * @module Search-Engine-Services
3
3
  */
4
4
 
5
- import { globalConfig } from './config'
5
+ import { globalConfig } from './config.js'
6
6
  import { algoliasearch } from 'algoliasearch'
7
7
 
8
8
  /**
@@ -41,6 +41,10 @@ export async function sendAlgoliaClickEvent(index, queryId, objectIDs, positions
41
41
  region: 'us',
42
42
  })
43
43
 
44
+ const token = globalConfig.railcontentConfig.authToken
45
+ ? globalConfig.railcontentConfig.authToken.replace('|', '-')
46
+ : globalConfig.railcontentConfig.token
47
+
44
48
  try {
45
49
  await searchEngine.pushEvents({
46
50
  events: [
@@ -49,7 +53,7 @@ export async function sendAlgoliaClickEvent(index, queryId, objectIDs, positions
49
53
  eventName: 'Content Clicked',
50
54
  index: index,
51
55
  userToken: globalConfig.railcontentConfig.userId.toString(),
52
- authenticatedUserToken: globalConfig.railcontentConfig.authToken,
56
+ authenticatedUserToken: token,
53
57
  timestamp: new Date().getTime(),
54
58
  objectIDs: objectIDs,
55
59
  queryID: queryId,