|
|
@ -17,7 +17,7 @@ This is a generalized solution to the problem of modular plumbing, and should al
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = function createVersionedSpecialMatcher({ markerProperty, versionProperty, friendlyName, expectedVersions }) {
|
|
|
|
module.exports = function createVersionedSpecialMatcher({ markerProperty, versionProperty, friendlyName, expectedVersions }) {
|
|
|
|
return function isSpecial(value) {
|
|
|
|
return function isSpecial(value) {
|
|
|
|
if (value[markerProperty]) {
|
|
|
|
if (value != null && value[markerProperty]) {
|
|
|
|
if (expectedVersions.includes(value[versionProperty])) {
|
|
|
|
if (expectedVersions.includes(value[versionProperty])) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|