Compare commits

...

2 Commits

@ -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 }) {
return function isSpecial(value) {
if (value[markerProperty]) {
if (value != null && value[markerProperty]) {
if (expectedVersions.includes(value[versionProperty])) {
return true;
} else {

@ -1,7 +1,7 @@
{
"name": "@validatem/match-versioned-special",
"description": "Utility for checking whether something is a special (plumbing) object with a particular version",
"version": "0.1.0",
"version": "0.1.1",
"main": "index.js",
"repository": "http://git.cryto.net/validatem/match-versioned-special.git",
"author": "Sven Slootweg <admin@cryto.net>",

Loading…
Cancel
Save