summaryrefslogtreecommitdiff
path: root/includes/external/school/node_modules/graphql/jsutils/instanceOf.mjs
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-22 23:06:12 +0200
committerRaindropsSys <contact@minteck.org>2023-06-22 23:06:12 +0200
commit23563c7188e089929b60f9e10721c6fc43a220ff (patch)
treeedfe2b009c82900d4ac27db02222d2f68dcad846 /includes/external/school/node_modules/graphql/jsutils/instanceOf.mjs
parent7a7a49332df7c852abbaa33c7e8e87f93d064d61 (diff)
downloadpluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.tar.gz
pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.tar.bz2
pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.zip
Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated)
Diffstat (limited to 'includes/external/school/node_modules/graphql/jsutils/instanceOf.mjs')
-rw-r--r--includes/external/school/node_modules/graphql/jsutils/instanceOf.mjs35
1 files changed, 0 insertions, 35 deletions
diff --git a/includes/external/school/node_modules/graphql/jsutils/instanceOf.mjs b/includes/external/school/node_modules/graphql/jsutils/instanceOf.mjs
deleted file mode 100644
index ff46fca..0000000
--- a/includes/external/school/node_modules/graphql/jsutils/instanceOf.mjs
+++ /dev/null
@@ -1,35 +0,0 @@
-function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
-import inspect from "./inspect.mjs";
-/**
- * A replacement for instanceof which includes an error warning when multi-realm
- * constructors are detected.
- */
-
-// See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
-// See: https://webpack.js.org/guides/production/
-export default process.env.NODE_ENV === 'production' ? // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-// eslint-disable-next-line no-shadow
-function instanceOf(value, constructor) {
- return value instanceof constructor;
-} : // eslint-disable-next-line no-shadow
-function instanceOf(value, constructor) {
- if (value instanceof constructor) {
- return true;
- }
-
- if (_typeof(value) === 'object' && value !== null) {
- var _value$constructor;
-
- var className = constructor.prototype[Symbol.toStringTag];
- var valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.
- Symbol.toStringTag in value ? value[Symbol.toStringTag] : (_value$constructor = value.constructor) === null || _value$constructor === void 0 ? void 0 : _value$constructor.name;
-
- if (className === valueClassName) {
- var stringifiedValue = inspect(value);
- throw new Error("Cannot use ".concat(className, " \"").concat(stringifiedValue, "\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results."));
- }
- }
-
- return false;
-};