musora-content-services 1.0.216 → 1.0.217

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 (63) hide show
  1. package/.github/workflows/node.js.yml +0 -0
  2. package/CHANGELOG.md +2 -0
  3. package/README.md +0 -0
  4. package/babel.config.js +0 -0
  5. package/docs/config.js.html +0 -0
  6. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  7. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  8. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  9. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  10. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  11. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  14. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  15. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  16. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  17. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  24. package/docs/index.html +0 -0
  25. package/docs/module-Config.html +0 -0
  26. package/docs/module-Railcontent-Services.html +0 -0
  27. package/docs/module-Sanity-Services.html +0 -0
  28. package/docs/railcontent.js.html +0 -0
  29. package/docs/sanity.js.html +0 -0
  30. package/docs/scripts/collapse.js +0 -0
  31. package/docs/scripts/commonNav.js +0 -0
  32. package/docs/scripts/linenumber.js +0 -0
  33. package/docs/scripts/nav.js +0 -0
  34. package/docs/scripts/polyfill.js +0 -0
  35. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
  36. package/docs/scripts/prettify/lang-css.js +0 -0
  37. package/docs/scripts/prettify/prettify.js +0 -0
  38. package/docs/scripts/search.js +0 -0
  39. package/docs/styles/jsdoc.css +0 -0
  40. package/docs/styles/prettify.css +0 -0
  41. package/jest.config.js +0 -0
  42. package/jsdoc.json +0 -0
  43. package/package.json +1 -1
  44. package/src/filterBuilder.js +0 -0
  45. package/src/index.d.ts +0 -0
  46. package/src/services/config.js +0 -0
  47. package/src/services/contentLikes.js +0 -0
  48. package/src/services/contentProgress.js +0 -0
  49. package/src/services/dataContext.js +0 -0
  50. package/src/services/lastUpdated.js +0 -0
  51. package/src/services/railcontent.js +12 -7
  52. package/src/services/userPermissions.js +0 -0
  53. package/test/contentLikes.test.js +0 -0
  54. package/test/contentProgress.test.js +0 -0
  55. package/test/initializeTests.js +0 -0
  56. package/test/lastUpdated.test.js +0 -0
  57. package/test/live/contentProgressLive.test.js +0 -0
  58. package/test/live/railcontentLive.test.js +0 -0
  59. package/test/localStorageMock.js +0 -0
  60. package/test/log.js +0 -0
  61. package/test/sanityQueryService.test.js +0 -0
  62. package/test/userPermissions.test.js +0 -0
  63. package/tools/generate-index.js +0 -0
File without changes
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
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.217](https://github.com/railroadmedia/musora-content-services/compare/v1.0.216...v1.0.217) (2024-12-05)
6
+
5
7
  ### [1.0.216](https://github.com/railroadmedia/musora-content-services/compare/v1.0.215...v1.0.216) (2024-12-04)
6
8
 
7
9
  ### [1.0.215](https://github.com/railroadmedia/musora-content-services/compare/v1.0.214...v1.0.215) (2024-12-04)
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
package/docs/index.html 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
package/jest.config.js CHANGED
File without changes
package/jsdoc.json CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.216",
3
+ "version": "1.0.217",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
File without changes
package/src/index.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -254,20 +254,25 @@ async function postDataHandler(url, data) {
254
254
  }
255
255
 
256
256
  export async function fetchHandler(url, method = "get", dataVersion = null, body = null) {
257
- const params = new URLSearchParams(window.location.search);
258
257
  let headers = {
259
258
  'Content-Type': 'application/json',
260
259
  'X-CSRF-TOKEN': globalConfig.railcontentConfig.token,
261
260
  };
261
+
262
+ if (!globalConfig.isMA) {
263
+ const params = new URLSearchParams(window.location.search);
264
+ if (params.get('testNow')) {
265
+ headers['testNow'] = params.get('testNow');
266
+ }
267
+ if (params.get('timezone')) {
268
+ headers['M-Client-Timezone'] = params.get('timezone');
269
+ }
270
+ }
271
+
262
272
  if (globalConfig.railcontentConfig.authToken) {
263
273
  headers['Authorization'] = `Bearer ${globalConfig.railcontentConfig.authToken}`;
264
274
  }
265
- if (params.get('testNow')) {
266
- headers['testNow'] = params.get('testNow');
267
- }
268
- if (params.get('timezone')) {
269
- headers['M-Client-Timezone'] = params.get('timezone');
270
- }
275
+
271
276
  if (dataVersion) headers['Data-Version'] = dataVersion;
272
277
  const options = {
273
278
  method,
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/test/log.js CHANGED
File without changes
File without changes
File without changes
File without changes