@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
10 lines • 686 B
JavaScript
import { getThisFPSDigestValueFromUrl } from '../../../SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl';
import { createGroupsSource } from './createGroupsSource';
export async function createGroupsSourceWithDigest(webUrl, fpsSpService) {
const Source = createGroupsSource(webUrl, fpsSpService);
Source.digestValue = await getThisFPSDigestValueFromUrl(this._webAbsoluteUrl);
// Opted against this option since it may cause other issues... just adding to FPSFetchStatus
// Source.webRelativeLink = webRelativeLink.indexOf('/') === 0 ? webRelativeLink : `/${webRelativeLink}`;
return Source;
}
//# sourceMappingURL=createGroupsSourceWithDigest.js.map