Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -5,10 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
*/
import { Global } from '@jest/types';
declare const _default: (title: string, arrayTable: Global.ArrayTable) => {
title: string;
arguments: unknown[];
}[];
import type { Global } from '@jest/types';
import type { EachTests } from '../bind';
declare const _default: (title: string, arrayTable: Global.ArrayTable) => EachTests;
export default _default;
//# sourceMappingURL=array.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../src/table/array.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;;;;;AASnC,wBAIM"}

View File

@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', {
});
exports.default = void 0;
function _util() {
const data = _interopRequireDefault(require('util'));
function util() {
const data = _interopRequireWildcard(require('util'));
_util = function _util() {
util = function () {
return data;
};
@@ -18,7 +18,7 @@ function _util() {
function _prettyFormat() {
const data = _interopRequireDefault(require('pretty-format'));
_prettyFormat = function _prettyFormat() {
_prettyFormat = function () {
return data;
};
@@ -29,47 +29,55 @@ function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
function _slicedToArray(arr, i) {
return (
_arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest()
);
function _getRequireWildcardCache() {
if (typeof WeakMap !== 'function') return null;
var cache = new WeakMap();
_getRequireWildcardCache = function () {
return cache;
};
return cache;
}
function _nonIterableRest() {
throw new TypeError('Invalid attempt to destructure non-iterable instance');
}
function _iterableToArrayLimit(arr, i) {
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
try {
for (
var _i = arr[Symbol.iterator](), _s;
!(_n = (_s = _i.next()).done);
_n = true
) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i['return'] != null) _i['return']();
} finally {
if (_d) throw _e;
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
}
if (obj === null || (typeof obj !== 'object' && typeof obj !== 'function')) {
return {default: obj};
}
var cache = _getRequireWildcardCache();
if (cache && cache.has(obj)) {
return cache.get(obj);
}
var newObj = {};
var hasPropertyDescriptor =
Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor
? Object.getOwnPropertyDescriptor(obj, key)
: null;
if (desc && (desc.get || desc.set)) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
return _arr;
}
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
newObj.default = obj;
if (cache) {
cache.set(obj, newObj);
}
return newObj;
}
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
const SUPPORTED_PLACEHOLDERS = /%[sdifjoOp%]/g;
const PRETTY_PLACEHOLDER = '%p';
const INDEX_PLACEHOLDER = '%#';
@@ -93,15 +101,12 @@ const colToRow = col => [col];
const formatTitle = (title, row, rowIndex) =>
row
.reduce((formattedTitle, value) => {
const _getMatchingPlacehold = getMatchingPlaceholders(formattedTitle),
_getMatchingPlacehold2 = _slicedToArray(_getMatchingPlacehold, 1),
placeholder = _getMatchingPlacehold2[0];
const [placeholder] = getMatchingPlaceholders(formattedTitle);
const normalisedValue = normalisePlaceholderValue(value);
if (!placeholder) return formattedTitle;
if (placeholder === PRETTY_PLACEHOLDER)
return interpolatePrettyPlaceholder(formattedTitle, normalisedValue);
return _util().default.format(formattedTitle, normalisedValue);
return util().format(formattedTitle, normalisedValue);
}, interpolateTitleIndex(title, rowIndex))
.replace(new RegExp(JEST_EACH_PLACEHOLDER_ESCAPE, 'g'), PLACEHOLDER_PREFIX);

View File

@@ -5,11 +5,11 @@
* LICENSE file in the root directory of this source tree.
*
*/
import type { Global } from '@jest/types';
import type { EachTests } from '../bind';
declare type Template = Record<string, unknown>;
declare const _default: (title: string, headings: string[], row: unknown[]) => {
title: string;
arguments: unknown[];
}[];
declare type Headings = Array<string>;
declare const _default: (title: string, headings: Headings, row: Global.Row) => EachTests;
export default _default;
export declare function getPath<Obj extends Template, A extends keyof Obj, B extends keyof Obj[A], C extends keyof Obj[A][B], D extends keyof Obj[A][B][C], E extends keyof Obj[A][B][C][D]>(obj: Obj, path: [A, B, C, D, E]): Obj[A][B][C][D][E];
export declare function getPath<Obj extends Template, A extends keyof Obj, B extends keyof Obj[A], C extends keyof Obj[A][B], D extends keyof Obj[A][B][C]>(obj: Obj, path: [A, B, C, D]): Obj[A][B][C][D];
@@ -17,4 +17,3 @@ export declare function getPath<Obj extends Template, A extends keyof Obj, B ext
export declare function getPath<Obj extends Template, A extends keyof Obj, B extends keyof Obj[A]>(obj: Obj, path: [A, B]): Obj[A][B];
export declare function getPath<Obj extends Template, A extends keyof Obj>(obj: Obj, path: [A]): Obj[A];
export declare function getPath<Obj extends Template>(obj: Obj, path: Array<string>): unknown;
//# sourceMappingURL=template.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/table/template.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,aAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;;;;;AAIxC,wBAWE;AA6CF,wBAAgB,OAAO,CACrB,GAAG,SAAS,QAAQ,EACpB,CAAC,SAAS,MAAM,GAAG,EACnB,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,CAAC,EACtB,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACzB,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,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AAG,CAAC,CAAC,CAAC,EACtB,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrC,wBAAgB,OAAO,CAAC,GAAG,SAAS,QAAQ,EAAE,CAAC,SAAS,MAAM,GAAG,EAC/D,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,CAAC,CAAC,CAAC,GACR,GAAG,CAAC,CAAC,CAAC,CAAC;AACV,wBAAgB,OAAO,CAAC,GAAG,SAAS,QAAQ,EAC1C,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAClB,OAAO,CAAC"}

View File

@@ -6,20 +6,20 @@ Object.defineProperty(exports, '__esModule', {
exports.getPath = getPath;
exports.default = void 0;
function _prettyFormat() {
const data = _interopRequireDefault(require('pretty-format'));
function _jestGetType() {
const data = require('jest-get-type');
_prettyFormat = function _prettyFormat() {
_jestGetType = function () {
return data;
};
return data;
}
function _jestGetType() {
const data = require('jest-get-type');
function _prettyFormat() {
const data = _interopRequireDefault(require('pretty-format'));
_jestGetType = function _jestGetType() {
_prettyFormat = function () {
return data;
};