musora-content-services 1.0.224 → 1.0.226
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 +4 -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/services/config.js +3 -0
- package/src/services/contentLikes.js +0 -0
- package/src/services/lastUpdated.js +0 -0
- package/src/services/railcontent.js +4 -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,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.226](https://github.com/railroadmedia/musora-content-services/compare/v1.0.225...v1.0.226) (2024-12-06)
|
|
6
|
+
|
|
7
|
+
### [1.0.225](https://github.com/railroadmedia/musora-content-services/compare/v1.0.224...v1.0.225) (2024-12-06)
|
|
8
|
+
|
|
5
9
|
### [1.0.224](https://github.com/railroadmedia/musora-content-services/compare/v1.0.223...v1.0.224) (2024-12-06)
|
|
6
10
|
|
|
7
11
|
### [1.0.223](https://github.com/railroadmedia/musora-content-services/compare/v1.0.222...v1.0.223) (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/services/config.js
CHANGED
|
@@ -7,6 +7,7 @@ let globalConfig = {
|
|
|
7
7
|
railcontentConfig: {},
|
|
8
8
|
localStorage: null,
|
|
9
9
|
isMA: false,
|
|
10
|
+
localTimezoneString: null, // In format: America/Vancouver
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -36,6 +37,7 @@ const excludeFromGeneratedIndex = [];
|
|
|
36
37
|
* @param {string} config.railcontentConfig.authToken - The bearer authorization token.
|
|
37
38
|
* @param {Object} config.localStorage - Cache to use for localStorage
|
|
38
39
|
* @param {boolean} config.isMA - Variable that tells if the library is used by MA or FEW
|
|
40
|
+
* @param {string} config.localTimezoneString - The local timezone string in format: America/Vancouver
|
|
39
41
|
|
|
40
42
|
*
|
|
41
43
|
* @example
|
|
@@ -63,6 +65,7 @@ function initializeService(config) {
|
|
|
63
65
|
globalConfig.railcontentConfig = config.railcontentConfig;
|
|
64
66
|
globalConfig.localStorage = config.localStorage;
|
|
65
67
|
globalConfig.isMA = config.isMA || false;
|
|
68
|
+
globalConfig.localTimezoneString = config.localTimezoneString || null;
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
// Export both the initialization function and the config object
|
|
File without changes
|
|
File without changes
|
|
@@ -306,6 +306,10 @@ export async function fetchHandler(url, method = "get", dataVersion = null, body
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
if (globalConfig.localTimezoneString) {
|
|
310
|
+
headers['M-Client-Timezone'] = globalConfig.localTimezoneString;
|
|
311
|
+
}
|
|
312
|
+
|
|
309
313
|
if (globalConfig.railcontentConfig.authToken) {
|
|
310
314
|
headers['Authorization'] = `Bearer ${globalConfig.railcontentConfig.authToken}`;
|
|
311
315
|
}
|
|
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
|