musora-content-services 1.3.3 → 1.3.7
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/.prettierignore +0 -0
- package/.prettierrc +0 -0
- package/CHANGELOG.md +8 -0
- package/README.md +0 -0
- package/babel.config.cjs +0 -0
- package/docs/config.js.html +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/index.html +0 -0
- package/docs/module-Config.html +0 -0
- package/docs/module-Railcontent-Services.html +0 -0
- package/docs/module-Sanity-Services.html +0 -0
- package/docs/railcontent.js.html +0 -0
- package/docs/sanity.js.html +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/package.json +1 -1
- package/src/contentMetaData.js +90 -0
- package/src/contentTypeConfig.js +24 -0
- package/src/filterBuilder.js +0 -0
- package/src/index.d.ts +250 -227
- package/src/index.js +249 -226
- package/src/services/config.js +0 -0
- package/src/services/contentLikes.js +0 -0
- package/src/services/contentProgress.js +0 -0
- package/src/services/dataContext.js +0 -0
- package/src/services/lastUpdated.js +0 -0
- package/src/services/railcontent.js +1 -1
- package/src/services/sanity.js +112 -10
- package/src/services/userPermissions.js +0 -0
- package/test/contentLikes.test.js +0 -0
- package/test/contentProgress.test.js +0 -0
- package/test/initializeTests.js +0 -0
- package/test/lastUpdated.test.js +0 -0
- package/test/live/contentProgressLive.test.js +0 -0
- package/test/live/railcontentLive.test.js +0 -0
- package/test/localStorageMock.js +0 -0
- package/test/log.js +0 -0
- package/test/sanityQueryService.test.js +23 -0
- package/test/userPermissions.test.js +0 -0
- package/tools/generate-index.cjs +0 -0
- package/.yarnrc.yml +0 -1
package/test/localStorageMock.js
CHANGED
|
File without changes
|
package/test/log.js
CHANGED
|
File without changes
|
|
@@ -14,6 +14,9 @@ import { fetchOwnedChallenges } from '../src'
|
|
|
14
14
|
const {
|
|
15
15
|
fetchSongById,
|
|
16
16
|
fetchArtists,
|
|
17
|
+
fetchReturning,
|
|
18
|
+
fetchLeaving,
|
|
19
|
+
fetchComingSoon,
|
|
17
20
|
fetchSongArtistCount,
|
|
18
21
|
fetchRelatedSongs,
|
|
19
22
|
fetchNewReleases,
|
|
@@ -56,6 +59,26 @@ describe('Sanity Queries', function () {
|
|
|
56
59
|
expect(response.id).toBe(id)
|
|
57
60
|
})
|
|
58
61
|
|
|
62
|
+
test('fetchReturning', async () => {
|
|
63
|
+
const brand = 'guitareo'
|
|
64
|
+
const page = 1
|
|
65
|
+
const response = await fetchReturning(brand, {pageNumber: 1})
|
|
66
|
+
expect(response).toBeDefined()
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
test('fetchLeaving', async () => {
|
|
70
|
+
const brand = 'guitareo'
|
|
71
|
+
const response = await fetchLeaving(brand, {pageNumber: 1})
|
|
72
|
+
expect(response).toBeDefined()
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
test('fetchComingSoon', async () => {
|
|
76
|
+
const brand = 'guitareo'
|
|
77
|
+
const response = await fetchComingSoon(brand, {pageNumber: 2, contentPerPage: 20})
|
|
78
|
+
expect(response).toBeDefined()
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
|
|
59
82
|
test('fetchArtists', async () => {
|
|
60
83
|
const response = await fetchArtists('drumeo')
|
|
61
84
|
const artistNames = response.map((x) => x.name)
|
|
File without changes
|
package/tools/generate-index.cjs
CHANGED
|
File without changes
|
package/.yarnrc.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodeLinker: node-modules
|