You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
416 B
JavaScript

"use strict";
const allowExtraProperties = require("@validatem/allow-extra-properties");
const isValue = require("@validatem/is-value");
const wrapError = require("@validatem/wrap-error");
const required = require("@validatem/required");
module.exports = wrapError("Must be a Modular Matrix session", "modular-matrix.is-session", [
allowExtraProperties({ _modularMatrixSession: [ required, isValue(true) ] })
]);