musora-content-services 2.3.17 → 2.3.18
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 +7 -0
- package/link_mcs.sh +0 -0
- package/package.json +1 -1
- package/src/contentMetaData.js +1 -1
- package/src/index.d.ts +17 -36
- package/src/index.js +17 -36
- package/src/services/content-org/playlists-types.js +4 -4
- package/src/services/content-org/playlists.js +369 -16
- package/src/services/railcontent.js +12 -461
- package/src/services/sanity.js +1 -1
- package/src/services/userActivity.js +70 -40
- package/tools/generate-index.cjs +2 -2
package/tools/generate-index.cjs
CHANGED
|
@@ -17,8 +17,8 @@ const fileExports = {}
|
|
|
17
17
|
function extractExportedFunctions(filePath) {
|
|
18
18
|
const fileContent = fs.readFileSync(filePath, 'utf-8')
|
|
19
19
|
|
|
20
|
-
const exportFunctionRegex =
|
|
21
|
-
const exportVariableRegex =
|
|
20
|
+
const exportFunctionRegex = /\nexport\s+(async\s+)?function\s+(\w+)/g
|
|
21
|
+
const exportVariableRegex = /\nexport\s+(let|const|var)\s+(globalConfig)\s+/g
|
|
22
22
|
const moduleExportsRegex = /module\.exports\s*=\s*{\s*([\s\S]+?)\s*};/g
|
|
23
23
|
|
|
24
24
|
let matches = [...fileContent.matchAll(exportFunctionRegex)].map((match) => match[2])
|