semantic-network
Version:
A utility library for manipulating a list of links that form a semantic interface to a network of resources.
16 lines • 641 B
JavaScript
import { TrackedRepresentationUtil } from '../trackedRepresentationUtil';
/**
* Simple match on the eTag in the header of a {@link Tracked}
*/
export const eTag = (lvalue, rvalue) => {
/*
if (instanceOfTrackedRepresentation(lvalue) && instanceOfTrackedRepresentation(rvalue)){
return TrackedRepresentationUtil.getETag(lvalue) === TrackedRepresentationUtil.getETag(rvalue);
} else {
// because both are not eTagged then treat them as the same
return true;
}
*/
return TrackedRepresentationUtil.getETag(lvalue) === TrackedRepresentationUtil.getETag(rvalue);
};
//# sourceMappingURL=eTag.js.map