lib/jsdoc/transform-apijson-for-sdk.js
function extractComponentAndDocuindexUrl(oChainObject) {
		oChainObject.modules = [];

		if (oChainObject.libraryFileData) {
			let $ = cheerio.load(oChainObject.libraryFileData, {
				ignoreWhitespace: true,
				xmlMode: true,
				lowerCaseTags: false
			});

			// Extract documentation URL
			oChainObject.docuPath = $("appData documentation").attr("indexUrl");

			// Extract components
			$("ownership > component").each((i, oComponent) => {

				if (oComponent.children) {
					if (oComponent.children.length === 1) {
						oChainObject.defaultComponent = $(oComponent).text();
					} else {
						let sCurrentComponentName = $(oComponent).find("name").text();
						let aCurrentModules = [];
						$(oComponent).find("module").each((a, oC) => {
							aCurrentModules.push($(oC).text().replace(/\//g, "."));
						});

						oChainObject.modules.push({
							componentName: sCurrentComponentName,
							modules: aCurrentModules
						});
					}
				}

			});

		}

		return oChainObject;
	}
function extractComponentAndDocuindexUrl(oChainObject) {
		oChainObject.modules = [];

		if (oChainObject.libraryFileData) {
			let $ = cheerio.load(oChainObject.libraryFileData, {
				ignoreWhitespace: true,
				xmlMode: true,
				lowerCaseTags: false
			});

			// Extract documentation URL
			oChainObject.docuPath = $("appData documentation").attr("indexUrl");

			// Extract components
			$("ownership > component").each((i, oComponent) => {

				if (oComponent.children) {
					if (oComponent.children.length === 1) {
						oChainObject.defaultComponent = $(oComponent).text();
					} else {
						let sCurrentComponentName = $(oComponent).find("name").text();
						let aCurrentModules = [];
						$(oComponent).find("module").each((a, oC) => {
							aCurrentModules.push($(oC).text().replace(/\//g, "."));
						});

						oChainObject.modules.push({
							componentName: sCurrentComponentName,
							modules: aCurrentModules
						});
					}
				}

			});

		}

		return oChainObject;
	}
function extractComponentAndDocuindexUrl ( oChainObject ) { oChainObject . modules = [ ] ; if ( oChainObject . libraryFileData ) { let $ = cheerio . load ( oChainObject . libraryFileData , { ignoreWhitespace : true , xmlMode : true , lowerCaseTags : false } ) ; // Extract documentation URL oChainObject . docuPath = $ ( "appData documentation" ) . attr ( "indexUrl" ) ; // Extract components $ ( "ownership > component" ) . each ( ( i , oComponent ) => { if ( oComponent . children ) { if ( oComponent . children . length === 1 ) { oChainObject . defaultComponent = $ ( oComponent ) . text ( ) ; } else { let sCurrentComponentName = $ ( oComponent ) . find ( "name" ) . text ( ) ; let aCurrentModules = [ ] ; $ ( oComponent ) . find ( "module" ) . each ( ( a , oC ) => { aCurrentModules . push ( $ ( oC ) . text ( ) . replace ( / \/ / g , "." ) ) ; } ) ; oChainObject . modules . push ( { componentName : sCurrentComponentName , modules : aCurrentModules } ) ; } } } ) ; } return oChainObject ; }
Extracts components list and docuindex.json relative path from .library file data
@param {object} oChainObject chain object
@returns {object} chain object
Extracts components list and docuindex . json relative path from . library file data