musora-content-services 1.0.226 → 1.0.229

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 (49) hide show
  1. package/.github/workflows/node.js.yml +0 -0
  2. package/CHANGELOG.md +6 -0
  3. package/README.md +0 -0
  4. package/babel.config.js +0 -0
  5. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  6. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  7. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  8. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  9. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  10. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  11. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  13. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  14. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  15. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  16. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  17. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  23. package/docs/scripts/collapse.js +0 -0
  24. package/docs/scripts/commonNav.js +0 -0
  25. package/docs/scripts/linenumber.js +0 -0
  26. package/docs/scripts/nav.js +0 -0
  27. package/docs/scripts/polyfill.js +0 -0
  28. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
  29. package/docs/scripts/prettify/lang-css.js +0 -0
  30. package/docs/scripts/prettify/prettify.js +0 -0
  31. package/docs/scripts/search.js +0 -0
  32. package/docs/styles/jsdoc.css +0 -0
  33. package/docs/styles/prettify.css +0 -0
  34. package/jest.config.js +0 -0
  35. package/jsdoc.json +0 -0
  36. package/link_mcs.sh +0 -0
  37. package/package.json +1 -1
  38. package/src/contentMetaData.js +1 -1
  39. package/src/contentTypeConfig.js +8 -5
  40. package/src/services/contentLikes.js +0 -0
  41. package/src/services/lastUpdated.js +0 -0
  42. package/src/services/userPermissions.js +0 -0
  43. package/test/contentLikes.test.js +0 -0
  44. package/test/initializeTests.js +0 -0
  45. package/test/lastUpdated.test.js +0 -0
  46. package/test/localStorageMock.js +0 -0
  47. package/test/log.js +0 -0
  48. package/test/userPermissions.test.js +0 -0
  49. package/tools/generate-index.js +0 -0
File without changes
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
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.0.229](https://github.com/railroadmedia/musora-content-services/compare/v1.0.228...v1.0.229) (2024-12-09)
6
+
7
+ ### [1.0.228](https://github.com/railroadmedia/musora-content-services/compare/v1.0.227...v1.0.228) (2024-12-09)
8
+
9
+ ### [1.0.227](https://github.com/railroadmedia/musora-content-services/compare/v1.0.226...v1.0.227) (2024-12-08)
10
+
5
11
  ### [1.0.226](https://github.com/railroadmedia/musora-content-services/compare/v1.0.225...v1.0.226) (2024-12-06)
6
12
 
7
13
  ### [1.0.225](https://github.com/railroadmedia/musora-content-services/compare/v1.0.224...v1.0.225) (2024-12-06)
package/README.md CHANGED
File without changes
package/babel.config.js 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/jsdoc.json 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.0.226",
3
+ "version": "1.0.229",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -219,7 +219,7 @@ const commonMetadata ={
219
219
  name: 'In Progress',
220
220
  short_name: 'IN PROGRESS',
221
221
  is_group_by: false,
222
- value: 'inProgress',
222
+ value: 'in progress',
223
223
  },
224
224
  {
225
225
  name: 'Completed',
@@ -437,13 +437,16 @@ function getFieldsForContentType(contentType, asQueryString = true) {
437
437
  * @returns {string} - A string that can be used in a groq query
438
438
  */
439
439
  function filtersToGroq(filters, selectedFilters = []) {
440
+ if (!filters) {
441
+ filters = [];
442
+ }
440
443
 
441
444
  //Account for multiple railcontent id's
442
- const multipleIdFilters = [];
445
+ let multipleIdFilters = '';
443
446
  filters.forEach(item => {
444
- if(item.includes('railcontent_id in')) {
447
+ if (item.includes('railcontent_id in')) {
445
448
  filters.pop(item);
446
- multipleIdFilters.push(item);
449
+ multipleIdFilters += ` && ${item} `;
447
450
  }
448
451
  })
449
452
 
@@ -504,12 +507,12 @@ function filtersToGroq(filters, selectedFilters = []) {
504
507
  }).filter(Boolean).join(' ');
505
508
 
506
509
  //Return
507
- return `&& ${multipleIdFilters} ${filterClauses}`;
510
+ return `${multipleIdFilters} ${filterClauses}`;
508
511
  }
509
512
 
510
513
  function groupFilters(filters) {
511
514
  if (filters.length === 0) return {};
512
-
515
+
513
516
  return filters.reduce((acc, filter) => {
514
517
  const [category, value] = filter.split(',');
515
518
  if (!acc[category]) acc[category] = [];
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/test/log.js CHANGED
File without changes
File without changes
File without changes