musora-content-services 1.4.4 → 1.4.7

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 (46) 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 +24 -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/contentTypeConfig.js +1 -0
  40. package/src/services/contentLikes.js +0 -0
  41. package/src/services/contentProgress.js +0 -0
  42. package/src/services/sanity.js +4 -1
  43. package/test/live/contentProgressLive.test.js +0 -0
  44. package/test/live/railcontentLive.test.js +0 -0
  45. package/test/localStorageMock.js +0 -0
  46. 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,30 @@
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.7](https://github.com/railroadmedia/musora-content-services/compare/v1.4.4...v1.4.7) (2025-04-08)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **BR-178:** fix url routing to genres on song-tutorial page ([#209](https://github.com/railroadmedia/musora-content-services/issues/209)) ([d32e37a](https://github.com/railroadmedia/musora-content-services/commit/d32e37af4fe53c1d7c5c1fd4eb646df54e007f95))
11
+ * **TP-833:** mod comments missing content ([#222](https://github.com/railroadmedia/musora-content-services/issues/222)) ([55e6e0c](https://github.com/railroadmedia/musora-content-services/commit/55e6e0c4f602d336b99c32f231265a94e35ace4f))
12
+
13
+ ### [1.4.6](https://github.com/railroadmedia/musora-content-services/compare/v1.4.4...v1.4.6) (2025-04-08)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **BR-178:** fix url routing to genres on song-tutorial page ([#209](https://github.com/railroadmedia/musora-content-services/issues/209)) ([d32e37a](https://github.com/railroadmedia/musora-content-services/commit/d32e37af4fe53c1d7c5c1fd4eb646df54e007f95))
19
+ * **TP-833:** mod comments missing content ([#222](https://github.com/railroadmedia/musora-content-services/issues/222)) ([55e6e0c](https://github.com/railroadmedia/musora-content-services/commit/55e6e0c4f602d336b99c32f231265a94e35ace4f))
20
+
21
+ ### [1.4.5](https://github.com/railroadmedia/musora-content-services/compare/v1.4.4...v1.4.5) (2025-04-08)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **BR-178:** fix url routing to genres on song-tutorial page ([#209](https://github.com/railroadmedia/musora-content-services/issues/209)) ([d32e37a](https://github.com/railroadmedia/musora-content-services/commit/d32e37af4fe53c1d7c5c1fd4eb646df54e007f95))
27
+ * **TP-833:** mod comments missing content ([#222](https://github.com/railroadmedia/musora-content-services/issues/222)) ([55e6e0c](https://github.com/railroadmedia/musora-content-services/commit/55e6e0c4f602d336b99c32f231265a94e35ace4f))
28
+
5
29
  ### [1.4.4](https://github.com/railroadmedia/musora-content-services/compare/v1.4.3...v1.4.4) (2025-03-31)
6
30
 
7
31
  ### [1.4.3](https://github.com/railroadmedia/musora-content-services/compare/v1.4.2...v1.4.3) (2025-03-31)
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.4",
3
+ "version": "1.4.7",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -154,6 +154,7 @@ export let contentTypeConfig = {
154
154
  isOneToOne: true,
155
155
  },
156
156
  },
157
+ slug: 'song-tutorials',
157
158
  },
158
159
  'song-tutorial-children': {
159
160
  fields: [`"resources": ${resourcesField}`],
File without changes
File without changes
@@ -1852,13 +1852,16 @@ function populateHierarchyLookups(currentLevel, data, parentId) {
1852
1852
  * @returns {Promise<Object|null>} - A promise that resolves to an object containing the data
1853
1853
  */
1854
1854
  export async function fetchCommentModContentData(ids) {
1855
+ if (!ids) {
1856
+ return []
1857
+ }
1855
1858
  const idsString = ids.join(',')
1856
1859
  const fields = `"id": railcontent_id, "type": _type, title, "url": web_url_path, "parent": *[^._id in child[]._ref]{"id": railcontent_id, title}`
1857
1860
  const query = await buildQuery(
1858
1861
  `railcontent_id in [${idsString}]`,
1859
1862
  { bypassPermissions: true },
1860
1863
  fields,
1861
- { end: 50 }
1864
+ { end: ids.length }
1862
1865
  )
1863
1866
  let data = await fetchSanity(query, true)
1864
1867
  let mapped = {}
File without changes
File without changes
File without changes
package/test/log.js CHANGED
File without changes