src/sap.ui.core/src/sap/ui/VersionInfo.js
function transformVersionInfo() {

		// get the transitive dependencies of the given libs from the sap.ui.versioninfo
		// only do this once if mKnownLibs is not created yet
		if (sap.ui.versioninfo && sap.ui.versioninfo.libraries && !mKnownLibs) {
			// flatten dependency lists for all libs
			mKnownLibs = {};
			sap.ui.versioninfo.libraries.forEach(function(oLib, i) {
				mKnownLibs[oLib.name] = {};

				var mDeps = oLib.manifestHints && oLib.manifestHints.dependencies &&
							oLib.manifestHints.dependencies.libs;
				for (var sDep in mDeps) {
					if (!mDeps[sDep].lazy) {
						mKnownLibs[oLib.name][sDep] = true;
					}
				}
			});
		}

		// get transitive dependencies for a component
		if (sap.ui.versioninfo && sap.ui.versioninfo.components && !mKnownComponents) {
			mKnownComponents = {};

			Object.keys(sap.ui.versioninfo.components).forEach(function(sComponentName) {
				var oComponentInfo = sap.ui.versioninfo.components[sComponentName];

				mKnownComponents[sComponentName] = {
					library: oComponentInfo.library,
					dependencies: []
				};

				var mDeps = oComponentInfo.manifestHints && oComponentInfo.manifestHints.dependencies &&
							oComponentInfo.manifestHints.dependencies.libs;
				for (var sDep in mDeps) {
					if (!mDeps[sDep].lazy) {
						mKnownComponents[sComponentName].dependencies.push(sDep);
					}
				}
			});
		}
	}
function transformVersionInfo() {

		// get the transitive dependencies of the given libs from the sap.ui.versioninfo
		// only do this once if mKnownLibs is not created yet
		if (sap.ui.versioninfo && sap.ui.versioninfo.libraries && !mKnownLibs) {
			// flatten dependency lists for all libs
			mKnownLibs = {};
			sap.ui.versioninfo.libraries.forEach(function(oLib, i) {
				mKnownLibs[oLib.name] = {};

				var mDeps = oLib.manifestHints && oLib.manifestHints.dependencies &&
							oLib.manifestHints.dependencies.libs;
				for (var sDep in mDeps) {
					if (!mDeps[sDep].lazy) {
						mKnownLibs[oLib.name][sDep] = true;
					}
				}
			});
		}

		// get transitive dependencies for a component
		if (sap.ui.versioninfo && sap.ui.versioninfo.components && !mKnownComponents) {
			mKnownComponents = {};

			Object.keys(sap.ui.versioninfo.components).forEach(function(sComponentName) {
				var oComponentInfo = sap.ui.versioninfo.components[sComponentName];

				mKnownComponents[sComponentName] = {
					library: oComponentInfo.library,
					dependencies: []
				};

				var mDeps = oComponentInfo.manifestHints && oComponentInfo.manifestHints.dependencies &&
							oComponentInfo.manifestHints.dependencies.libs;
				for (var sDep in mDeps) {
					if (!mDeps[sDep].lazy) {
						mKnownComponents[sComponentName].dependencies.push(sDep);
					}
				}
			});
		}
	}
function transformVersionInfo ( ) { // get the transitive dependencies of the given libs from the sap.ui.versioninfo // only do this once if mKnownLibs is not created yet if ( sap . ui . versioninfo && sap . ui . versioninfo . libraries && ! mKnownLibs ) { // flatten dependency lists for all libs mKnownLibs = { } ; sap . ui . versioninfo . libraries . forEach ( function ( oLib , i ) { mKnownLibs [ oLib . name ] = { } ; var mDeps = oLib . manifestHints && oLib . manifestHints . dependencies && oLib . manifestHints . dependencies . libs ; for ( var sDep in mDeps ) { if ( ! mDeps [ sDep ] . lazy ) { mKnownLibs [ oLib . name ] [ sDep ] = true ; } } } ) ; } // get transitive dependencies for a component if ( sap . ui . versioninfo && sap . ui . versioninfo . components && ! mKnownComponents ) { mKnownComponents = { } ; Object . keys ( sap . ui . versioninfo . components ) . forEach ( function ( sComponentName ) { var oComponentInfo = sap . ui . versioninfo . components [ sComponentName ] ; mKnownComponents [ sComponentName ] = { library : oComponentInfo . library , dependencies : [ ] } ; var mDeps = oComponentInfo . manifestHints && oComponentInfo . manifestHints . dependencies && oComponentInfo . manifestHints . dependencies . libs ; for ( var sDep in mDeps ) { if ( ! mDeps [ sDep ] . lazy ) { mKnownComponents [ sComponentName ] . dependencies . push ( sDep ) ; } } } ) ; } }
Transforms the sap.ui.versioninfo to an easier consumable map.
Transforms the sap . ui . versioninfo to an easier consumable map .