@@ -10,2 +10,3 @@ "use strict"; | ||
// TODO: Create intensive docs on each check. | ||
if (!record) return false; | ||
@@ -16,6 +17,6 @@ if (!record._meta) return false; | ||
if (fieldToCheck._archived) return true; | ||
if (fieldToCheck._related) return true; | ||
if (!fieldToCheck._related) return true; | ||
return false; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb25zdHJhaW50cy91dGlscy9pc0hhc09uZVZhbGlkLmpzIl0sIm5hbWVzIjpbInJlY29yZCIsImZpZWxkIiwiZmllbGRUb0NoZWNrIiwiX21ldGEiLCJfYXJjaGl2ZWQiLCJfcmVsYXRlZCJdLCJtYXBwaW5ncyI6Ijs7Ozs7O2tCQUFlLFVBQUNBLE1BQUQsRUFBU0MsS0FBVCxFQUFtQjtBQUNoQyxNQUFNQyxlQUFlRixPQUFPQyxLQUFQLENBQXJCOztBQUVBLE1BQUksQ0FBQ0QsTUFBTCxFQUFhLE9BQU8sS0FBUDtBQUNiLE1BQUksQ0FBQ0EsT0FBT0csS0FBWixFQUFtQixPQUFPLEtBQVA7QUFDbkIsTUFBSUgsT0FBT0csS0FBUCxDQUFhQyxTQUFqQixFQUE0QixPQUFPLEtBQVA7QUFDNUIsTUFBSSxDQUFDRixZQUFMLEVBQW1CLE9BQU8sSUFBUDtBQUNuQixNQUFJQSxhQUFhRSxTQUFqQixFQUE0QixPQUFPLElBQVA7QUFDNUIsTUFBSUYsYUFBYUcsUUFBakIsRUFBMkIsT0FBTyxJQUFQOztBQUUzQixTQUFPLEtBQVA7QUFDRCxDIiwiZmlsZSI6ImlzSGFzT25lVmFsaWQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCAocmVjb3JkLCBmaWVsZCkgPT4ge1xuICBjb25zdCBmaWVsZFRvQ2hlY2sgPSByZWNvcmRbZmllbGRdO1xuXG4gIGlmICghcmVjb3JkKSByZXR1cm4gZmFs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GlkLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgKHJlY29yZCwgZmllbGQpID0+IHtcbiAgY29uc3QgZmllbGRUb0NoZWNrID0gcmVjb3JkW2ZpZWxkXTtcblxuICAvLyBUT0RPOiBDcmVhdGUgaW50ZW5zaXZlIGRvY3Mgb24gZWFjaCBjaGVjay5cbiAgaWYgKCFyZWNvcmQpIHJldHVybiBmYWxzZTtcbiAgaWYgKCFyZWNvcmQuX21ldGEpIHJldHVybiBmYWxzZTtcbiAgaWYgKHJlY29yZC5fbWV0YS5fYXJjaGl2ZWQpIHJldHVybiBmYWxzZTtcbiAgaWYgKCFmaWVsZFRvQ2hlY2spIHJldHVybiB0cnVlO1xuICBpZiAoZmllbGRUb0NoZWNrLl9hcmNoaXZlZCkgcmV0dXJuIHRydWU7XG4gIGlmICghZmllbGRUb0NoZWNrLl9yZWxhdGVkKSByZXR1cm4gdHJ1ZTtcblxuICByZXR1cm4gZmFsc2U7XG59O1xuIl19 |
{ | ||
"name": "redink", | ||
"version": "3.0.0-alpha.6", | ||
"version": "3.0.0-alpha.7", | ||
"description": "RethinkDB model layer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
327697
0.04%3014
0.03%