WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 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 i = 0; i < list.length; i++) {
var value = list[i];
if (predicate(value)) {
return value;
}
}
};
var _default = find;
exports.default = _default;

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

@ -0,0 +1,22 @@
// @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 (let i = 0; i < list.length; i++) {
const value = list[i];
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 i = 0; i < list.length; i++) {
var value = list[i];
if (predicate(value)) {
return value;
}
}
};
export default find;

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

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

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

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

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

@ -0,0 +1,21 @@
/* eslint-disable no-redeclare */
// $FlowFixMe
var flatMap = Array.prototype.flatMap ? function (list, fn) {
// $FlowFixMe
return Array.prototype.flatMap.call(list, fn);
} : function (list, fn) {
var result = [];
for (var i = 0; i < list.length; i++) {
var value = fn(list[i]);
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 isFinite = Number.isFinite || function (value) {
return typeof value === 'number' && isFinite(value);
};
var _default = isFinite;
exports.default = _default;

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

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

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 isFinite = Number.isFinite || function (value) {
return typeof value === 'number' && isFinite(value);
};
export default isFinite;

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;