musora-content-services 1.6.1 → 1.6.2

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,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.6.2](https://github.com/railroadmedia/musora-content-services/compare/v1.6.1...v1.6.2) (2025-06-11)
6
+
5
7
  ### [1.6.1](https://github.com/railroadmedia/musora-content-services/compare/v1.6.0...v1.6.1) (2025-06-11)
6
8
 
7
9
  ## [1.6.0](https://github.com/railroadmedia/musora-content-services/compare/v1.5.0...v1.6.0) (2025-06-04)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -11,8 +11,10 @@ const excludeFromGeneratedIndex = [
11
11
  'clearLastUpdatedTime',
12
12
  ]
13
13
 
14
- export function wasLastUpdateOlderThanXSeconds(seconds, key) {
15
- let lastUpdated = globalConfig.localStorage.getItem(key)
14
+ export async function wasLastUpdateOlderThanXSeconds(seconds, key) {
15
+ let lastUpdated = globalConfig.isMA
16
+ ? await globalConfig.localStorage.getItem(key)
17
+ : globalConfig.localStorage.getItem(key)
16
18
  if (!lastUpdated) return false
17
19
  const verifyServerTime = seconds * 1000
18
20
  return new Date().getTime() - lastUpdated > verifyServerTime