mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-26 06:22:02 +02:00
Initial commit
This commit is contained in:
10
node_modules/helmet-csp/dist/lib/check-options/check-directive/boolean.js
generated
vendored
Normal file
10
node_modules/helmet-csp/dist/lib/check-options/check-directive/boolean.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
var is_boolean_1 = __importDefault(require("../../is-boolean"));
|
||||
module.exports = function (key, value) {
|
||||
if (!is_boolean_1.default(value)) {
|
||||
throw new Error("\"" + value + "\" is not a valid value for " + key + ". Use `true` or `false`.");
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user