MCPcopy Index your code
hub / github.com/apache/echarts / getVersionFromSource

Function getVersionFromSource

test/runTest/client/client.js:153–167  ·  view source on GitHub ↗
(source, versions, nightlyVersions)

Source from the content-addressed store, hash-verified

151catch (e) {}
152
153function getVersionFromSource(source, versions, nightlyVersions) {
154 if (source === 'PR') {
155 // Default PR version can be empty since it needs to be manually selected
156 return '#';
157 }
158 else if (source === 'nightly') {
159 return nightlyVersions.length ? nightlyVersions[0] : null;
160 }
161 else if (source === 'local') {
162 return 'local';
163 }
164 else {
165 return versions.length ? versions[0] : null;
166 }
167}
168
169const app = new Vue({
170 el: '#app',

Callers 2

mountedFunction · 0.85
handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected