musora-content-services 1.4.11 → 1.4.13

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.
Files changed (44) hide show
  1. package/.github/workflows/node.js.yml +0 -0
  2. package/.prettierignore +0 -0
  3. package/.prettierrc +0 -0
  4. package/CHANGELOG.md +4 -0
  5. package/README.md +0 -0
  6. package/babel.config.cjs +0 -0
  7. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  8. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  9. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  10. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  11. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  15. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  16. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  17. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  25. package/docs/scripts/collapse.js +0 -0
  26. package/docs/scripts/commonNav.js +0 -0
  27. package/docs/scripts/linenumber.js +0 -0
  28. package/docs/scripts/nav.js +0 -0
  29. package/docs/scripts/polyfill.js +0 -0
  30. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
  31. package/docs/scripts/prettify/lang-css.js +0 -0
  32. package/docs/scripts/prettify/prettify.js +0 -0
  33. package/docs/scripts/search.js +0 -0
  34. package/docs/styles/jsdoc.css +0 -0
  35. package/docs/styles/prettify.css +0 -0
  36. package/jest.config.js +0 -0
  37. package/link_mcs.sh +0 -0
  38. package/package.json +1 -1
  39. package/src/services/imageSRCVerify.js +0 -0
  40. package/src/services/sanity.js +3 -3
  41. package/test/live/contentProgressLive.test.js +0 -0
  42. package/test/live/railcontentLive.test.js +0 -0
  43. package/test/localStorageMock.js +0 -0
  44. package/test/log.js +0 -0
File without changes
package/.prettierignore CHANGED
File without changes
package/.prettierrc CHANGED
File without changes
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
+ ### [1.4.13](https://github.com/railroadmedia/musora-content-services/compare/v1.4.12...v1.4.13) (2025-05-27)
6
+
7
+ ### [1.4.12](https://github.com/railroadmedia/musora-content-services/compare/v1.4.11...v1.4.12) (2025-05-15)
8
+
5
9
  ### [1.4.11](https://github.com/railroadmedia/musora-content-services/compare/v1.4.10...v1.4.11) (2025-04-30)
6
10
 
7
11
  ### [1.4.10](https://github.com/railroadmedia/musora-content-services/compare/v1.4.9...v1.4.10) (2025-04-30)
package/README.md CHANGED
File without changes
package/babel.config.cjs CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/jest.config.js CHANGED
File without changes
package/link_mcs.sh CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
File without changes
@@ -383,7 +383,8 @@ export async function fetchUpcomingEvents(brand, { page = 1, limit = 10 } = {})
383
383
  published_on,
384
384
  "type": _type,
385
385
  web_url_path,
386
- "permission_id": permission[]->railcontent_id,`
386
+ "permission_id": permission[]->railcontent_id,
387
+ event_calendar_unique_key`
387
388
  const query = buildRawQuery(
388
389
  `_type in ${typesString} && brand == '${brand}' && published_on > '${now}' && status == 'scheduled'`,
389
390
  fields,
@@ -1967,9 +1968,8 @@ function needsAccessDecorator(results, userPermissions, isAdmin) {
1967
1968
  result.lessons.forEach((lesson) => {
1968
1969
  lesson['need_access'] = doesUserNeedAccessToContent(lesson, userPermissions, isAdmin) // Updated to check lesson access
1969
1970
  })
1970
- } else {
1971
- result['need_access'] = doesUserNeedAccessToContent(result, userPermissions, isAdmin)
1972
1971
  }
1972
+ result['need_access'] = doesUserNeedAccessToContent(result, userPermissions, isAdmin)
1973
1973
  })
1974
1974
  } else if (results.related_lessons && Array.isArray(results.related_lessons)) {
1975
1975
  results.related_lessons.forEach((result) => {
File without changes
File without changes
File without changes
package/test/log.js CHANGED
File without changes