UNPKG

627 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.extractODataEtagV2 = exports.extractODataEtag = void 0;
4/**
5 * Extractor for the ETag for OData v2 responses used in [[entityDeserializer]].
6 * @param json - Response data from which the ETag is extracted.
7 * @returns The ETag.
8 */
9function extractODataEtag(json) {
10 var _a;
11 return (_a = json === null || json === void 0 ? void 0 : json.__metadata) === null || _a === void 0 ? void 0 : _a.etag;
12}
13exports.extractODataEtag = extractODataEtag;
14exports.extractODataEtagV2 = extractODataEtag;
15//# sourceMappingURL=extract-odata-etag.js.map
\No newline at end of file