musora-content-services 2.136.0 → 2.136.2

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,10 @@
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
+ ### [2.136.2](https://github.com/railroadmedia/musora-content-services/compare/v2.136.1...v2.136.2) (2026-02-19)
6
+
7
+ ### [2.136.1](https://github.com/railroadmedia/musora-content-services/compare/v2.136.0...v2.136.1) (2026-02-19)
8
+
5
9
  ## [2.136.0](https://github.com/railroadmedia/musora-content-services/compare/v2.135.3...v2.136.0) (2026-02-19)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.136.0",
3
+ "version": "2.136.2",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/publish.sh CHANGED
@@ -13,7 +13,7 @@ fi
13
13
  npm run release
14
14
 
15
15
  # Push the changes and tags to the remote repository
16
- git push --follow-tags origin project-v2
16
+ git push --follow-tags origin main
17
17
 
18
18
  # Publish the package to npm
19
19
  npm publish
@@ -1496,13 +1496,13 @@ export async function fetchSanity(
1496
1496
  if (result.result) {
1497
1497
  let results = isList ? result.result : result.result[0]
1498
1498
  if (!results) {
1499
- throw new Error('No results found')
1499
+ return null
1500
1500
  }
1501
1501
  results = processNeedAccess ? await needsAccessDecorator(results, userPermissions) : results
1502
1502
  results = processPageType ? pageTypeDecorator(results) : results
1503
1503
  return customPostProcess ? customPostProcess(results) : results
1504
1504
  } else {
1505
- throw new Error('No results found')
1505
+ return null
1506
1506
  }
1507
1507
  } catch (error) {
1508
1508
  console.error('fetchSanity: Fetch error:', { error, query })
@@ -1656,7 +1656,7 @@ export async function fetchMetadata(brand, type, options = {}) {
1656
1656
  export async function fetchChatAndLiveEnvent(brand, forcedId = null) {
1657
1657
  const liveEvent =
1658
1658
  forcedId !== null ? await fetchByRailContentIds([forcedId]) : [await fetchLiveEvent(brand)]
1659
- if (liveEvent.length === 0 || (liveEvent.length === 1 && liveEvent[0] === undefined)) {
1659
+ if (liveEvent.length === 0 || (liveEvent.length === 1 && !liveEvent[0])) {
1660
1660
  return null
1661
1661
  }
1662
1662
  let url = `/content/live-chat?brand=${brand}`