UNPKG

semantic-network

Version:

A utility library for manipulating a list of links that form a semantic interface to a network of resources.

12 lines 638 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.canonicalOrSelf = exports.CanonicalOrSelf = void 0; var linkRelation_1 = require("../../linkRelation"); var equalityUtil_1 = require("../equalityUtil"); exports.CanonicalOrSelf = [linkRelation_1.LinkRelation.Canonical, linkRelation_1.LinkRelation.Self]; /** * Matches on the Canonical or Self link relation on the resources */ var canonicalOrSelf = function (lvalue, rvalue) { return equalityUtil_1.EqualityUtil.matches(lvalue, rvalue, exports.CanonicalOrSelf); }; exports.canonicalOrSelf = canonicalOrSelf; //# sourceMappingURL=canonicalOrSelf.js.map