Initial Save
This commit is contained in:
14
node_modules/graphql/jsutils/invariant.js
generated
vendored
Normal file
14
node_modules/graphql/jsutils/invariant.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = invariant;
|
||||
|
||||
function invariant(condition, message) {
|
||||
var booleanCondition = Boolean(condition);
|
||||
|
||||
if (!booleanCondition) {
|
||||
throw new Error(message || 'Unexpected invariant triggered');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user