summaryrefslogtreecommitdiff
path: root/alarm/node_modules/graphql/polyfills
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-10 14:54:04 +0100
committerMinteck <contact@minteck.org>2023-01-10 14:54:04 +0100
commit99c1d9af689e5325f3cf535c4007b3aeb8325229 (patch)
treee663b3c2ebdbd67c818ac0c5147f0ce1d2463cda /alarm/node_modules/graphql/polyfills
parent9871b03912fc28ad38b4037ebf26a78aa937baba (diff)
downloadpluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.tar.gz
pluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.tar.bz2
pluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.zip
Update - This is an automated commit
Diffstat (limited to 'alarm/node_modules/graphql/polyfills')
-rw-r--r--alarm/node_modules/graphql/polyfills/arrayFrom.js57
-rw-r--r--alarm/node_modules/graphql/polyfills/arrayFrom.js.flow58
-rw-r--r--alarm/node_modules/graphql/polyfills/arrayFrom.mjs49
-rw-r--r--alarm/node_modules/graphql/polyfills/find.js22
-rw-r--r--alarm/node_modules/graphql/polyfills/find.js.flow20
-rw-r--r--alarm/node_modules/graphql/polyfills/find.mjs14
-rw-r--r--alarm/node_modules/graphql/polyfills/isFinite.js15
-rw-r--r--alarm/node_modules/graphql/polyfills/isFinite.js.flow13
-rw-r--r--alarm/node_modules/graphql/polyfills/isFinite.mjs7
-rw-r--r--alarm/node_modules/graphql/polyfills/isInteger.js15
-rw-r--r--alarm/node_modules/graphql/polyfills/isInteger.js.flow16
-rw-r--r--alarm/node_modules/graphql/polyfills/isInteger.mjs7
-rw-r--r--alarm/node_modules/graphql/polyfills/objectEntries.js17
-rw-r--r--alarm/node_modules/graphql/polyfills/objectEntries.js.flow11
-rw-r--r--alarm/node_modules/graphql/polyfills/objectEntries.mjs9
-rw-r--r--alarm/node_modules/graphql/polyfills/objectValues.js17
-rw-r--r--alarm/node_modules/graphql/polyfills/objectValues.js.flow10
-rw-r--r--alarm/node_modules/graphql/polyfills/objectValues.mjs9
-rw-r--r--alarm/node_modules/graphql/polyfills/symbols.js17
-rw-r--r--alarm/node_modules/graphql/polyfills/symbols.js.flow20
-rw-r--r--alarm/node_modules/graphql/polyfills/symbols.mjs8
21 files changed, 0 insertions, 411 deletions
diff --git a/alarm/node_modules/graphql/polyfills/arrayFrom.js b/alarm/node_modules/graphql/polyfills/arrayFrom.js
deleted file mode 100644
index 0f2eab2..0000000
--- a/alarm/node_modules/graphql/polyfills/arrayFrom.js
+++ /dev/null
@@ -1,57 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-var _symbols = require("./symbols.js");
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound]
-var arrayFrom = Array.from || function (obj, mapFn, thisArg) {
- if (obj == null) {
- throw new TypeError('Array.from requires an array-like object - not null or undefined');
- } // Is Iterable?
-
-
- var iteratorMethod = obj[_symbols.SYMBOL_ITERATOR];
-
- if (typeof iteratorMethod === 'function') {
- var iterator = iteratorMethod.call(obj);
- var result = [];
- var step;
-
- for (var i = 0; !(step = iterator.next()).done; ++i) {
- result.push(mapFn.call(thisArg, step.value, i)); // Infinite Iterators could cause forEach to run forever.
- // After a very large number of iterations, produce an error.
- // istanbul ignore if (Too big to actually test)
-
- if (i > 9999999) {
- throw new TypeError('Near-infinite iteration.');
- }
- }
-
- return result;
- } // Is Array like?
-
-
- var length = obj.length;
-
- if (typeof length === 'number' && length >= 0 && length % 1 === 0) {
- var _result = [];
-
- for (var _i = 0; _i < length; ++_i) {
- if (Object.prototype.hasOwnProperty.call(obj, _i)) {
- _result.push(mapFn.call(thisArg, obj[_i], _i));
- }
- }
-
- return _result;
- }
-
- return [];
-};
-
-var _default = arrayFrom;
-exports.default = _default;
diff --git a/alarm/node_modules/graphql/polyfills/arrayFrom.js.flow b/alarm/node_modules/graphql/polyfills/arrayFrom.js.flow
deleted file mode 100644
index 73093b7..0000000
--- a/alarm/node_modules/graphql/polyfills/arrayFrom.js.flow
+++ /dev/null
@@ -1,58 +0,0 @@
-// @flow strict
-import { SYMBOL_ITERATOR } from './symbols';
-
-declare function arrayFrom<T>(arrayLike: Iterable<T>): Array<T>;
-// eslint-disable-next-line no-redeclare
-declare function arrayFrom<T: mixed>(
- arrayLike: mixed,
- mapFn?: (elem: mixed, index: number) => T,
- thisArg?: mixed,
-): Array<T>;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound]
-const arrayFrom =
- Array.from ||
- function (obj, mapFn, thisArg) {
- if (obj == null) {
- throw new TypeError(
- 'Array.from requires an array-like object - not null or undefined',
- );
- }
-
- // Is Iterable?
- const iteratorMethod = obj[SYMBOL_ITERATOR];
- if (typeof iteratorMethod === 'function') {
- const iterator = iteratorMethod.call(obj);
- const result = [];
- let step;
-
- for (let i = 0; !(step = iterator.next()).done; ++i) {
- result.push(mapFn.call(thisArg, step.value, i));
- // Infinite Iterators could cause forEach to run forever.
- // After a very large number of iterations, produce an error.
- // istanbul ignore if (Too big to actually test)
- if (i > 9999999) {
- throw new TypeError('Near-infinite iteration.');
- }
- }
- return result;
- }
-
- // Is Array like?
- const length = obj.length;
- if (typeof length === 'number' && length >= 0 && length % 1 === 0) {
- const result = [];
-
- for (let i = 0; i < length; ++i) {
- if (Object.prototype.hasOwnProperty.call(obj, i)) {
- result.push(mapFn.call(thisArg, obj[i], i));
- }
- }
- return result;
- }
-
- return [];
- };
-
-export default arrayFrom;
diff --git a/alarm/node_modules/graphql/polyfills/arrayFrom.mjs b/alarm/node_modules/graphql/polyfills/arrayFrom.mjs
deleted file mode 100644
index 1ea59f0..0000000
--- a/alarm/node_modules/graphql/polyfills/arrayFrom.mjs
+++ /dev/null
@@ -1,49 +0,0 @@
-import { SYMBOL_ITERATOR } from "./symbols.mjs";
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound]
-var arrayFrom = Array.from || function (obj, mapFn, thisArg) {
- if (obj == null) {
- throw new TypeError('Array.from requires an array-like object - not null or undefined');
- } // Is Iterable?
-
-
- var iteratorMethod = obj[SYMBOL_ITERATOR];
-
- if (typeof iteratorMethod === 'function') {
- var iterator = iteratorMethod.call(obj);
- var result = [];
- var step;
-
- for (var i = 0; !(step = iterator.next()).done; ++i) {
- result.push(mapFn.call(thisArg, step.value, i)); // Infinite Iterators could cause forEach to run forever.
- // After a very large number of iterations, produce an error.
- // istanbul ignore if (Too big to actually test)
-
- if (i > 9999999) {
- throw new TypeError('Near-infinite iteration.');
- }
- }
-
- return result;
- } // Is Array like?
-
-
- var length = obj.length;
-
- if (typeof length === 'number' && length >= 0 && length % 1 === 0) {
- var _result = [];
-
- for (var _i = 0; _i < length; ++_i) {
- if (Object.prototype.hasOwnProperty.call(obj, _i)) {
- _result.push(mapFn.call(thisArg, obj[_i], _i));
- }
- }
-
- return _result;
- }
-
- return [];
-};
-
-export default arrayFrom;
diff --git a/alarm/node_modules/graphql/polyfills/find.js b/alarm/node_modules/graphql/polyfills/find.js
deleted file mode 100644
index fb14137..0000000
--- a/alarm/node_modules/graphql/polyfills/find.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound]
-var find = Array.prototype.find ? function (list, predicate) {
- return Array.prototype.find.call(list, predicate);
-} : function (list, predicate) {
- for (var _i2 = 0; _i2 < list.length; _i2++) {
- var value = list[_i2];
-
- if (predicate(value)) {
- return value;
- }
- }
-};
-var _default = find;
-exports.default = _default;
diff --git a/alarm/node_modules/graphql/polyfills/find.js.flow b/alarm/node_modules/graphql/polyfills/find.js.flow
deleted file mode 100644
index 4ed151c..0000000
--- a/alarm/node_modules/graphql/polyfills/find.js.flow
+++ /dev/null
@@ -1,20 +0,0 @@
-// @flow strict
-declare function find<T>(
- list: $ReadOnlyArray<T>,
- predicate: (item: T) => boolean,
-): T | void;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound]
-const find = Array.prototype.find
- ? function (list, predicate) {
- return Array.prototype.find.call(list, predicate);
- }
- : function (list, predicate) {
- for (const value of list) {
- if (predicate(value)) {
- return value;
- }
- }
- };
-export default find;
diff --git a/alarm/node_modules/graphql/polyfills/find.mjs b/alarm/node_modules/graphql/polyfills/find.mjs
deleted file mode 100644
index ed3e6f3..0000000
--- a/alarm/node_modules/graphql/polyfills/find.mjs
+++ /dev/null
@@ -1,14 +0,0 @@
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound]
-var find = Array.prototype.find ? function (list, predicate) {
- return Array.prototype.find.call(list, predicate);
-} : function (list, predicate) {
- for (var _i2 = 0; _i2 < list.length; _i2++) {
- var value = list[_i2];
-
- if (predicate(value)) {
- return value;
- }
- }
-};
-export default find;
diff --git a/alarm/node_modules/graphql/polyfills/isFinite.js b/alarm/node_modules/graphql/polyfills/isFinite.js
deleted file mode 100644
index 9c0e559..0000000
--- a/alarm/node_modules/graphql/polyfills/isFinite.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-var isFinitePolyfill = Number.isFinite || function (value) {
- return typeof value === 'number' && isFinite(value);
-};
-
-var _default = isFinitePolyfill;
-exports.default = _default;
diff --git a/alarm/node_modules/graphql/polyfills/isFinite.js.flow b/alarm/node_modules/graphql/polyfills/isFinite.js.flow
deleted file mode 100644
index 5dd0229..0000000
--- a/alarm/node_modules/graphql/polyfills/isFinite.js.flow
+++ /dev/null
@@ -1,13 +0,0 @@
-// @flow strict
-declare function isFinitePolyfill(
- value: mixed,
-): boolean %checks(typeof value === 'number');
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-const isFinitePolyfill =
- Number.isFinite ||
- function (value) {
- return typeof value === 'number' && isFinite(value);
- };
-export default isFinitePolyfill;
diff --git a/alarm/node_modules/graphql/polyfills/isFinite.mjs b/alarm/node_modules/graphql/polyfills/isFinite.mjs
deleted file mode 100644
index 7c1aea6..0000000
--- a/alarm/node_modules/graphql/polyfills/isFinite.mjs
+++ /dev/null
@@ -1,7 +0,0 @@
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-var isFinitePolyfill = Number.isFinite || function (value) {
- return typeof value === 'number' && isFinite(value);
-};
-
-export default isFinitePolyfill;
diff --git a/alarm/node_modules/graphql/polyfills/isInteger.js b/alarm/node_modules/graphql/polyfills/isInteger.js
deleted file mode 100644
index 9b25361..0000000
--- a/alarm/node_modules/graphql/polyfills/isInteger.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-var isInteger = Number.isInteger || function (value) {
- return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
-};
-
-var _default = isInteger;
-exports.default = _default;
diff --git a/alarm/node_modules/graphql/polyfills/isInteger.js.flow b/alarm/node_modules/graphql/polyfills/isInteger.js.flow
deleted file mode 100644
index 757da92..0000000
--- a/alarm/node_modules/graphql/polyfills/isInteger.js.flow
+++ /dev/null
@@ -1,16 +0,0 @@
-// @flow strict
-declare function isInteger(value: mixed): boolean %checks(typeof value ===
- 'number');
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-const isInteger =
- Number.isInteger ||
- function (value) {
- return (
- typeof value === 'number' &&
- isFinite(value) &&
- Math.floor(value) === value
- );
- };
-export default isInteger;
diff --git a/alarm/node_modules/graphql/polyfills/isInteger.mjs b/alarm/node_modules/graphql/polyfills/isInteger.mjs
deleted file mode 100644
index 3396f16..0000000
--- a/alarm/node_modules/graphql/polyfills/isInteger.mjs
+++ /dev/null
@@ -1,7 +0,0 @@
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-var isInteger = Number.isInteger || function (value) {
- return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
-};
-
-export default isInteger;
diff --git a/alarm/node_modules/graphql/polyfills/objectEntries.js b/alarm/node_modules/graphql/polyfills/objectEntries.js
deleted file mode 100644
index 749d4ef..0000000
--- a/alarm/node_modules/graphql/polyfills/objectEntries.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-var objectEntries = Object.entries || function (obj) {
- return Object.keys(obj).map(function (key) {
- return [key, obj[key]];
- });
-};
-
-var _default = objectEntries;
-exports.default = _default;
diff --git a/alarm/node_modules/graphql/polyfills/objectEntries.js.flow b/alarm/node_modules/graphql/polyfills/objectEntries.js.flow
deleted file mode 100644
index d30e3c1..0000000
--- a/alarm/node_modules/graphql/polyfills/objectEntries.js.flow
+++ /dev/null
@@ -1,11 +0,0 @@
-// @flow strict
-import type { ObjMap } from '../jsutils/ObjMap';
-
-declare function objectEntries<T>(obj: ObjMap<T>): Array<[string, T]>;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-const objectEntries =
- Object.entries || ((obj) => Object.keys(obj).map((key) => [key, obj[key]]));
-
-export default objectEntries;
diff --git a/alarm/node_modules/graphql/polyfills/objectEntries.mjs b/alarm/node_modules/graphql/polyfills/objectEntries.mjs
deleted file mode 100644
index 72d0c60..0000000
--- a/alarm/node_modules/graphql/polyfills/objectEntries.mjs
+++ /dev/null
@@ -1,9 +0,0 @@
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-var objectEntries = Object.entries || function (obj) {
- return Object.keys(obj).map(function (key) {
- return [key, obj[key]];
- });
-};
-
-export default objectEntries;
diff --git a/alarm/node_modules/graphql/polyfills/objectValues.js b/alarm/node_modules/graphql/polyfills/objectValues.js
deleted file mode 100644
index ab14e65..0000000
--- a/alarm/node_modules/graphql/polyfills/objectValues.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-var objectValues = Object.values || function (obj) {
- return Object.keys(obj).map(function (key) {
- return obj[key];
- });
-};
-
-var _default = objectValues;
-exports.default = _default;
diff --git a/alarm/node_modules/graphql/polyfills/objectValues.js.flow b/alarm/node_modules/graphql/polyfills/objectValues.js.flow
deleted file mode 100644
index 343419a..0000000
--- a/alarm/node_modules/graphql/polyfills/objectValues.js.flow
+++ /dev/null
@@ -1,10 +0,0 @@
-// @flow strict
-import type { ObjMap } from '../jsutils/ObjMap';
-
-declare function objectValues<T>(obj: ObjMap<T>): Array<T>;
-
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-const objectValues =
- Object.values || ((obj) => Object.keys(obj).map((key) => obj[key]));
-export default objectValues;
diff --git a/alarm/node_modules/graphql/polyfills/objectValues.mjs b/alarm/node_modules/graphql/polyfills/objectValues.mjs
deleted file mode 100644
index afbde06..0000000
--- a/alarm/node_modules/graphql/polyfills/objectValues.mjs
+++ /dev/null
@@ -1,9 +0,0 @@
-/* eslint-disable no-redeclare */
-// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
-var objectValues = Object.values || function (obj) {
- return Object.keys(obj).map(function (key) {
- return obj[key];
- });
-};
-
-export default objectValues;
diff --git a/alarm/node_modules/graphql/polyfills/symbols.js b/alarm/node_modules/graphql/polyfills/symbols.js
deleted file mode 100644
index 3d4ba2e..0000000
--- a/alarm/node_modules/graphql/polyfills/symbols.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.SYMBOL_TO_STRING_TAG = exports.SYMBOL_ASYNC_ITERATOR = exports.SYMBOL_ITERATOR = void 0;
-// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator
-// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-var SYMBOL_ITERATOR = typeof Symbol === 'function' && Symbol.iterator != null ? Symbol.iterator : '@@iterator'; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator
-// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-
-exports.SYMBOL_ITERATOR = SYMBOL_ITERATOR;
-var SYMBOL_ASYNC_ITERATOR = typeof Symbol === 'function' && Symbol.asyncIterator != null ? Symbol.asyncIterator : '@@asyncIterator'; // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-
-exports.SYMBOL_ASYNC_ITERATOR = SYMBOL_ASYNC_ITERATOR;
-var SYMBOL_TO_STRING_TAG = typeof Symbol === 'function' && Symbol.toStringTag != null ? Symbol.toStringTag : '@@toStringTag';
-exports.SYMBOL_TO_STRING_TAG = SYMBOL_TO_STRING_TAG;
diff --git a/alarm/node_modules/graphql/polyfills/symbols.js.flow b/alarm/node_modules/graphql/polyfills/symbols.js.flow
deleted file mode 100644
index 66a1b2c..0000000
--- a/alarm/node_modules/graphql/polyfills/symbols.js.flow
+++ /dev/null
@@ -1,20 +0,0 @@
-// @flow strict
-// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator
-// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-export const SYMBOL_ITERATOR: string =
- typeof Symbol === 'function' && Symbol.iterator != null
- ? Symbol.iterator
- : '@@iterator';
-
-// In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator
-// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-export const SYMBOL_ASYNC_ITERATOR: string =
- typeof Symbol === 'function' && Symbol.asyncIterator != null
- ? Symbol.asyncIterator
- : '@@asyncIterator';
-
-// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-export const SYMBOL_TO_STRING_TAG: string =
- typeof Symbol === 'function' && Symbol.toStringTag != null
- ? Symbol.toStringTag
- : '@@toStringTag';
diff --git a/alarm/node_modules/graphql/polyfills/symbols.mjs b/alarm/node_modules/graphql/polyfills/symbols.mjs
deleted file mode 100644
index b338851..0000000
--- a/alarm/node_modules/graphql/polyfills/symbols.mjs
+++ /dev/null
@@ -1,8 +0,0 @@
-// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator
-// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-export var SYMBOL_ITERATOR = typeof Symbol === 'function' && Symbol.iterator != null ? Symbol.iterator : '@@iterator'; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator
-// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-
-export var SYMBOL_ASYNC_ITERATOR = typeof Symbol === 'function' && Symbol.asyncIterator != null ? Symbol.asyncIterator : '@@asyncIterator'; // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
-
-export var SYMBOL_TO_STRING_TAG = typeof Symbol === 'function' && Symbol.toStringTag != null ? Symbol.toStringTag : '@@toStringTag';