musora-content-services 1.0.201 → 1.0.203

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
+ ### [1.0.203](https://github.com/railroadmedia/musora-content-services/compare/v1.0.202...v1.0.203) (2024-12-01)
6
+
7
+ ### [1.0.202](https://github.com/railroadmedia/musora-content-services/compare/v1.0.201...v1.0.202) (2024-11-30)
8
+
5
9
  ### [1.0.201](https://github.com/railroadmedia/musora-content-services/compare/v1.0.200...v1.0.201) (2024-11-29)
6
10
 
7
11
  ### [1.0.200](https://github.com/railroadmedia/musora-content-services/compare/v1.0.199...v1.0.200) (2024-11-29)
package/README.md CHANGED
File without changes
package/jest.config.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.201",
3
+ "version": "1.0.203",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -20,6 +20,7 @@ const DEFAULT_FIELDS = [
20
20
  'status',
21
21
  "'slug' : slug.current",
22
22
  "'permission_id': permission[]->railcontent_id",
23
+ "xp"
23
24
  ];
24
25
 
25
26
  const descriptionField = 'description[0].children[0].text';
File without changes
File without changes
File without changes
@@ -1094,7 +1094,7 @@ export async function fetchNextPreviousLesson(railcontentId) {
1094
1094
  * .catch(error => console.error(error));
1095
1095
  */
1096
1096
  export async function fetchLessonContent(railContentId) {
1097
- const filterParams = {isSingle: true};
1097
+ const filterParams = {isSingle: true, pullFutureContent: true};
1098
1098
  // Format changes made to the `fields` object may also need to be reflected in Musora-web-platform SanityGateway.php $fields object
1099
1099
  // Currently only for challenges and challenge lessons
1100
1100
  // If you're unsure, message Adrian, or just add them.
@@ -1943,7 +1943,7 @@ function buildRawQuery(
1943
1943
 
1944
1944
  async function buildQuery(
1945
1945
  baseFilter = '',
1946
- filterParams = {},
1946
+ filterParams = {pullFutureContent: false},
1947
1947
  fields = '...',
1948
1948
  {
1949
1949
  sortOrder = 'published_on desc',
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