Initial Save

This commit is contained in:
jackbeeby
2025-03-28 12:30:19 +11:00
parent e381994f19
commit d8773925e8
9910 changed files with 982718 additions and 0 deletions

22
node_modules/graphql/polyfills/find.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/* eslint-disable no-redeclare */
// $FlowFixMe
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;

21
node_modules/graphql/polyfills/find.js.flow generated vendored Normal file
View File

@@ -0,0 +1,21 @@
// @flow strict
declare function find<T>(
list: $ReadOnlyArray<T>,
predicate: (item: T) => boolean,
): T | void;
/* eslint-disable no-redeclare */
// $FlowFixMe
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;

14
node_modules/graphql/polyfills/find.mjs generated vendored Normal file
View File

@@ -0,0 +1,14 @@
/* eslint-disable no-redeclare */
// $FlowFixMe
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;

31
node_modules/graphql/polyfills/flatMap.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// Workaround to make older Flow versions happy
var flatMapMethod = Array.prototype.flatMap;
/* eslint-disable no-redeclare */
// $FlowFixMe
var flatMap = flatMapMethod ? function (list, fn) {
return flatMapMethod.call(list, fn);
} : function (list, fn) {
var result = [];
for (var _i2 = 0; _i2 < list.length; _i2++) {
var _item = list[_i2];
var value = fn(_item);
if (Array.isArray(value)) {
result = result.concat(value);
} else {
result.push(value);
}
}
return result;
};
var _default = flatMap;
exports.default = _default;

29
node_modules/graphql/polyfills/flatMap.js.flow generated vendored Normal file
View File

@@ -0,0 +1,29 @@
// @flow strict
declare function flatMap<T, U>(
list: $ReadOnlyArray<T>,
fn: (item: T, index: number) => $ReadOnlyArray<U> | U,
): Array<U>;
// Workaround to make older Flow versions happy
const flatMapMethod = (Array.prototype: any).flatMap;
/* eslint-disable no-redeclare */
// $FlowFixMe
const flatMap = flatMapMethod
? function(list, fn) {
return flatMapMethod.call(list, fn);
}
: function(list, fn) {
let result = [];
for (const item of list) {
const value = fn(item);
if (Array.isArray(value)) {
result = result.concat(value);
} else {
result.push(value);
}
}
return result;
};
export default flatMap;

24
node_modules/graphql/polyfills/flatMap.mjs generated vendored Normal file
View File

@@ -0,0 +1,24 @@
// Workaround to make older Flow versions happy
var flatMapMethod = Array.prototype.flatMap;
/* eslint-disable no-redeclare */
// $FlowFixMe
var flatMap = flatMapMethod ? function (list, fn) {
return flatMapMethod.call(list, fn);
} : function (list, fn) {
var result = [];
for (var _i2 = 0; _i2 < list.length; _i2++) {
var _item = list[_i2];
var value = fn(_item);
if (Array.isArray(value)) {
result = result.concat(value);
} else {
result.push(value);
}
}
return result;
};
export default flatMap;

15
node_modules/graphql/polyfills/isFinite.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/* eslint-disable no-redeclare */
// $FlowFixMe 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;

14
node_modules/graphql/polyfills/isFinite.js.flow generated vendored Normal file
View File

@@ -0,0 +1,14 @@
// @flow strict
declare function isFinitePolyfill(
value: mixed,
): boolean %checks(typeof value === 'number');
/* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
const isFinitePolyfill =
Number.isFinite ||
function(value) {
return typeof value === 'number' && isFinite(value);
};
export default isFinitePolyfill;

7
node_modules/graphql/polyfills/isFinite.mjs generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
var isFinitePolyfill = Number.isFinite || function (value) {
return typeof value === 'number' && isFinite(value);
};
export default isFinitePolyfill;

15
node_modules/graphql/polyfills/isInteger.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/* eslint-disable no-redeclare */
// $FlowFixMe 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;

17
node_modules/graphql/polyfills/isInteger.js.flow generated vendored Normal file
View File

@@ -0,0 +1,17 @@
// @flow strict
declare function isInteger(value: mixed): boolean %checks(typeof value ===
'number');
/* eslint-disable no-redeclare */
// $FlowFixMe 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;

7
node_modules/graphql/polyfills/isInteger.mjs generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/* eslint-disable no-redeclare */
// $FlowFixMe 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;

17
node_modules/graphql/polyfills/objectEntries.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/5838
var objectEntries = Object.entries || function (obj) {
return Object.keys(obj).map(function (key) {
return [key, obj[key]];
});
};
var _default = objectEntries;
exports.default = _default;

12
node_modules/graphql/polyfills/objectEntries.js.flow generated vendored Normal file
View File

@@ -0,0 +1,12 @@
// @flow strict
import { type ObjMap } from '../jsutils/ObjMap';
declare function objectEntries<T>(obj: ObjMap<T>): Array<[string, T]>;
/* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/5838
const objectEntries =
Object.entries || (obj => Object.keys(obj).map(key => [key, obj[key]]));
export default objectEntries;

9
node_modules/graphql/polyfills/objectEntries.mjs generated vendored Normal file
View File

@@ -0,0 +1,9 @@
/* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/5838
var objectEntries = Object.entries || function (obj) {
return Object.keys(obj).map(function (key) {
return [key, obj[key]];
});
};
export default objectEntries;

17
node_modules/graphql/polyfills/objectValues.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/2221
var objectValues = Object.values || function (obj) {
return Object.keys(obj).map(function (key) {
return obj[key];
});
};
var _default = objectValues;
exports.default = _default;

11
node_modules/graphql/polyfills/objectValues.js.flow generated vendored Normal file
View File

@@ -0,0 +1,11 @@
// @flow strict
import { type ObjMap } from '../jsutils/ObjMap';
declare function objectValues<T>(obj: ObjMap<T>): Array<T>;
/* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/2221
const objectValues =
Object.values || (obj => Object.keys(obj).map(key => obj[key]));
export default objectValues;

9
node_modules/graphql/polyfills/objectValues.mjs generated vendored Normal file
View File

@@ -0,0 +1,9 @@
/* eslint-disable no-redeclare */
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/2221
var objectValues = Object.values || function (obj) {
return Object.keys(obj).map(function (key) {
return obj[key];
});
};
export default objectValues;