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.
- package/.github/workflows/node.js.yml +0 -0
- package/CHANGELOG.md +6 -0
- package/README.md +0 -0
- package/babel.config.js +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/docs/scripts/collapse.js +0 -0
- package/docs/scripts/commonNav.js +0 -0
- package/docs/scripts/linenumber.js +0 -0
- package/docs/scripts/nav.js +0 -0
- package/docs/scripts/polyfill.js +0 -0
- package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
- package/docs/scripts/prettify/lang-css.js +0 -0
- package/docs/scripts/prettify/prettify.js +0 -0
- package/docs/scripts/search.js +0 -0
- package/docs/styles/jsdoc.css +0 -0
- package/docs/styles/prettify.css +0 -0
- package/jest.config.js +0 -0
- package/jsdoc.json +0 -0
- package/link_mcs.sh +0 -0
- package/package.json +1 -1
- package/src/contentMetaData.js +1 -1
- package/src/contentTypeConfig.js +8 -5
- package/src/services/contentLikes.js +0 -0
- package/src/services/lastUpdated.js +0 -0
- package/src/services/userPermissions.js +0 -0
- package/test/contentLikes.test.js +0 -0
- package/test/initializeTests.js +0 -0
- package/test/lastUpdated.test.js +0 -0
- package/test/localStorageMock.js +0 -0
- package/test/log.js +0 -0
- package/test/userPermissions.test.js +0 -0
- 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
|
package/docs/scripts/collapse.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/nav.js
CHANGED
|
File without changes
|
package/docs/scripts/polyfill.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/search.js
CHANGED
|
File without changes
|
package/docs/styles/jsdoc.css
CHANGED
|
File without changes
|
package/docs/styles/prettify.css
CHANGED
|
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
package/src/contentMetaData.js
CHANGED
package/src/contentTypeConfig.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
|
|
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
|
package/test/initializeTests.js
CHANGED
|
File without changes
|
package/test/lastUpdated.test.js
CHANGED
|
File without changes
|
package/test/localStorageMock.js
CHANGED
|
File without changes
|
package/test/log.js
CHANGED
|
File without changes
|
|
File without changes
|
package/tools/generate-index.js
CHANGED
|
File without changes
|