/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import e from"../../../request.js";async function r(r,t){let n=null;const a="string"==typeof t?t:t.path;if(!r.has(a)){const s=await e(a.replace(/\/VersionManagementServer/i,"/FeatureServer"),{query:{f:"json"}});n={serverVersion:Number(s.data.currentVersion),featureServerUrl:a.replace(/\/VersionManagementServer/i,"/FeatureServer")},r.set(t,n)}}export{r as addServerVersion};
