musora-content-services 1.0.118 → 1.0.120

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 (56) hide show
  1. package/.github/workflows/node.js.yml +0 -0
  2. package/CHANGELOG.md +4 -0
  3. package/README.md +0 -0
  4. package/babel.config.js +0 -0
  5. package/docs/config.js.html +2 -1
  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 +1 -1
  25. package/docs/module-Config.html +42 -2
  26. package/docs/module-Railcontent-Services.html +1 -1
  27. package/docs/module-Sanity-Services.html +153 -48
  28. package/docs/railcontent.js.html +25 -13
  29. package/docs/sanity.js.html +183 -84
  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/contentMetaData.js +0 -0
  45. package/src/contentTypeConfig.js +5 -0
  46. package/src/filterBuilder.js +2 -1
  47. package/src/index.d.ts +0 -0
  48. package/src/index.js +0 -0
  49. package/src/services/config.js +0 -0
  50. package/src/services/sanity.js +4 -1
  51. package/src/services/userContext.js +0 -0
  52. package/test/localStorageMock.js +0 -0
  53. package/test/log.js +0 -0
  54. package/test/sanityQueryService.test.js +11 -0
  55. package/test/userContext.test.js +0 -0
  56. package/tools/generate-index.js +0 -0
File without changes
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.120](https://github.com/railroadmedia/musora-content-services/compare/v1.0.119...v1.0.120) (2024-09-30)
6
+
7
+ ### [1.0.119](https://github.com/railroadmedia/musora-content-services/compare/v1.0.118...v1.0.119) (2024-09-27)
8
+
5
9
  ### [1.0.118](https://github.com/railroadmedia/musora-content-services/compare/v1.0.117...v1.0.118) (2024-09-27)
6
10
 
7
11
  ### [1.0.117](https://github.com/railroadmedia/musora-content-services/compare/v1.0.115...v1.0.117) (2024-09-27)
package/README.md CHANGED
File without changes
package/babel.config.js CHANGED
File without changes
@@ -66,6 +66,7 @@ let globalConfig = {
66
66
  * @param {string} config.sanityConfig.version - The API version to use.
67
67
  * @param {boolean} [config.sanityConfig.debug=false] - Optional flag to enable debug mode.
68
68
  * @param {boolean} [config.sanityConfig.useCachedAPI=true] - Optional flag to enable or disable the use of the cached API.
69
+ * @param {boolean} [config.sanityConfig.useDummyRailContentMethods=false] - Optional flag to use test harness for railcontent methods. Should only be used by jest tests.
69
70
  * @param {Object} config.railcontentConfig - Configuration for user services.
70
71
  * @param {string} config.railcontentConfig.token - The token for authenticating user-specific requests.
71
72
  * @param {string} config.railcontentConfig.userId - The user ID for fetching user-specific data.
@@ -114,7 +115,7 @@ module.exports = {
114
115
  <br class="clear">
115
116
 
116
117
  <footer>
117
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Sep 24 2024 20:13:55 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
118
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Fri Sep 27 2024 21:58:51 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
118
119
  </footer>
119
120
 
120
121
  <script>prettyPrint();</script>
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
@@ -149,7 +149,7 @@ with <code>npm test -- -t=&quot;userContext&quot;</code> or just the contentLike
149
149
  <br class="clear">
150
150
 
151
151
  <footer>
152
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Sep 24 2024 20:13:55 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
152
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Fri Sep 27 2024 21:58:51 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
153
153
  </footer>
154
154
 
155
155
  <script>prettyPrint();</script>
@@ -101,7 +101,7 @@ This function must be called before using any other functions in this library.</
101
101
 
102
102
  <dt class="tag-source">Source:</dt>
103
103
  <dd class="tag-source"><ul class="dummy"><li>
104
- <a href="config.js.html">config.js</a>, <a href="config.js.html#line46">line 46</a>
104
+ <a href="config.js.html">config.js</a>, <a href="config.js.html#line47">line 47</a>
105
105
  </li></ul></dd>
106
106
 
107
107
 
@@ -504,6 +504,46 @@ initializeService({
504
504
  </tr>
505
505
 
506
506
 
507
+
508
+ <tr>
509
+
510
+ <td class="name"><code>useDummyRailContentMethods</code></td>
511
+
512
+
513
+ <td class="type">
514
+
515
+
516
+ <span class="param-type">boolean</span>
517
+
518
+
519
+
520
+
521
+ </td>
522
+
523
+
524
+ <td class="attributes">
525
+
526
+ &lt;optional><br>
527
+
528
+
529
+
530
+
531
+
532
+ </td>
533
+
534
+
535
+
536
+ <td class="default">
537
+
538
+ <code>false</code>
539
+
540
+ </td>
541
+
542
+
543
+ <td class="description last">Optional flag to use test harness for railcontent methods. Should only be used by jest tests.</td>
544
+ </tr>
545
+
546
+
507
547
  </tbody>
508
548
  </table>
509
549
 
@@ -681,7 +721,7 @@ initializeService({
681
721
  <br class="clear">
682
722
 
683
723
  <footer>
684
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Sep 24 2024 20:13:55 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
724
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Fri Sep 27 2024 21:58:51 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
685
725
  </footer>
686
726
 
687
727
  <script>prettyPrint();</script>
@@ -1518,7 +1518,7 @@
1518
1518
  <br class="clear">
1519
1519
 
1520
1520
  <footer>
1521
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Sep 24 2024 20:13:55 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1521
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Fri Sep 27 2024 21:58:51 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1522
1522
  </footer>
1523
1523
 
1524
1524
  <script>prettyPrint();</script>