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

@@ -4,33 +4,33 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/// <reference types="node" />
import { Console } from 'console';
import { SourceMapRegistry } from '@jest/source-map';
import { ConsoleBuffer, LogMessage, LogType } from './types';
import type { ConsoleBuffer, LogMessage, LogType } from './types';
export default class BufferedConsole extends Console {
private _buffer;
private _counters;
private _timers;
private _groupDepth;
private _getSourceMaps;
constructor(getSourceMaps: () => SourceMapRegistry | null | undefined);
static write(buffer: ConsoleBuffer, type: LogType, message: LogMessage, level?: number | null, sourceMaps?: SourceMapRegistry | null): import("./types").LogEntry[];
Console: NodeJS.ConsoleConstructor;
constructor();
static write(buffer: ConsoleBuffer, type: LogType, message: LogMessage, level?: number | null): ConsoleBuffer;
private _log;
assert(value: any, message?: string | Error): void;
assert(value: unknown, message?: string | Error): void;
count(label?: string): void;
countReset(label?: string): void;
debug(firstArg: any, ...rest: Array<any>): void;
dir(firstArg: any, ...rest: Array<any>): void;
dirxml(firstArg: any, ...rest: Array<any>): void;
error(firstArg: any, ...rest: Array<any>): void;
group(title?: string, ...rest: Array<any>): void;
groupCollapsed(title?: string, ...rest: Array<any>): void;
debug(firstArg: unknown, ...rest: Array<unknown>): void;
dir(firstArg: unknown, ...rest: Array<unknown>): void;
dirxml(firstArg: unknown, ...rest: Array<unknown>): void;
error(firstArg: unknown, ...rest: Array<unknown>): void;
group(title?: string, ...rest: Array<unknown>): void;
groupCollapsed(title?: string, ...rest: Array<unknown>): void;
groupEnd(): void;
info(firstArg: any, ...rest: Array<any>): void;
log(firstArg: any, ...rest: Array<any>): void;
info(firstArg: unknown, ...rest: Array<unknown>): void;
log(firstArg: unknown, ...rest: Array<unknown>): void;
time(label?: string): void;
timeEnd(label?: string): void;
warn(firstArg: any, ...rest: Array<any>): void;
getBuffer(): import("./types").LogEntry[] | undefined;
timeLog(label?: string, ...data: Array<unknown>): void;
warn(firstArg: unknown, ...rest: Array<unknown>): void;
getBuffer(): ConsoleBuffer | undefined;
}
//# sourceMappingURL=BufferedConsole.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"BufferedConsole.d.ts","sourceRoot":"","sources":["../src/BufferedConsole.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAGhC,OAAO,EAAc,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACL,aAAa,EAEb,UAAU,EAEV,OAAO,EACR,MAAM,SAAS,CAAC;AAEjB,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,OAAO;IAClD,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,OAAO,CAAY;IAC3B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,cAAc,CAA6C;gBAEvD,aAAa,EAAE,MAAM,iBAAiB,GAAG,IAAI,GAAG,SAAS;IAgBrE,MAAM,CAAC,KAAK,CACV,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EACrB,UAAU,CAAC,EAAE,iBAAiB,GAAG,IAAI;IAcvC,OAAO,CAAC,IAAI;IAUZ,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK;IAQ3C,KAAK,CAAC,KAAK,GAAE,MAAkB;IAQ/B,UAAU,CAAC,KAAK,GAAE,MAAkB;IAIpC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIxC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAItC,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIzC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIxC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAQzC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAQlD,QAAQ;IAMR,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIvC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAItC,IAAI,CAAC,KAAK,GAAE,MAAkB;IAQ9B,OAAO,CAAC,KAAK,GAAE,MAAkB;IAWjC,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIvC,SAAS;CAGV"}

View File

@@ -8,7 +8,7 @@ exports.default = void 0;
function _assert() {
const data = _interopRequireDefault(require('assert'));
_assert = function _assert() {
_assert = function () {
return data;
};
@@ -18,7 +18,7 @@ function _assert() {
function _console() {
const data = require('console');
_console = function _console() {
_console = function () {
return data;
};
@@ -28,7 +28,7 @@ function _console() {
function _util() {
const data = require('util');
_util = function _util() {
_util = function () {
return data;
};
@@ -38,17 +38,17 @@ function _util() {
function _chalk() {
const data = _interopRequireDefault(require('chalk'));
_chalk = function _chalk() {
_chalk = function () {
return data;
};
return data;
}
function _sourceMap() {
const data = require('@jest/source-map');
function _jestUtil() {
const data = require('jest-util');
_sourceMap = function _sourceMap() {
_jestUtil = function () {
return data;
};
@@ -74,38 +74,37 @@ function _defineProperty(obj, key, value) {
}
class BufferedConsole extends _console().Console {
constructor(getSourceMaps) {
const buffer = [];
constructor() {
super({
write: message => {
BufferedConsole.write(buffer, 'log', message, null, getSourceMaps());
BufferedConsole.write(this._buffer, 'log', message, null);
return true;
}
});
_defineProperty(this, '_buffer', void 0);
_defineProperty(this, '_buffer', []);
_defineProperty(this, '_counters', void 0);
_defineProperty(this, '_counters', {});
_defineProperty(this, '_timers', void 0);
_defineProperty(this, '_timers', {});
_defineProperty(this, '_groupDepth', void 0);
_defineProperty(this, '_groupDepth', 0);
_defineProperty(this, '_getSourceMaps', void 0);
this._getSourceMaps = getSourceMaps;
this._buffer = buffer;
this._counters = {};
this._timers = {};
this._groupDepth = 0;
_defineProperty(this, 'Console', _console().Console);
}
static write(buffer, type, message, level, sourceMaps) {
const callsite = (0, _sourceMap().getCallsite)(
level != null ? level : 2,
sourceMaps
);
const origin = callsite.getFileName() + ':' + callsite.getLineNumber();
static write(buffer, type, message, level) {
const stackLevel = level != null ? level : 2;
const rawStack = new (_jestUtil().ErrorWithStack)(
undefined,
BufferedConsole.write
).stack;
invariant(rawStack, 'always have a stack trace');
const origin = rawStack
.split('\n')
.slice(stackLevel)
.filter(Boolean)
.join('\n');
buffer.push({
message,
origin,
@@ -119,8 +118,7 @@ class BufferedConsole extends _console().Console {
this._buffer,
type,
' '.repeat(this._groupDepth) + message,
3,
this._getSourceMaps()
3
);
}
@@ -214,12 +212,32 @@ class BufferedConsole extends _console().Console {
const endTime = new Date();
const time = endTime.getTime() - startTime.getTime();
this._log('time', (0, _util().format)(`${label}: ${time}ms`));
this._log(
'time',
(0, _util().format)(`${label}: ${(0, _jestUtil().formatTime)(time)}`)
);
delete this._timers[label];
}
}
timeLog(label = 'default', ...data) {
const startTime = this._timers[label];
if (startTime) {
const endTime = new Date();
const time = endTime.getTime() - startTime.getTime();
this._log(
'time',
(0, _util().format)(
`${label}: ${(0, _jestUtil().formatTime)(time)}`,
...data
)
);
}
}
warn(firstArg, ...rest) {
this._log('warn', (0, _util().format)(firstArg, ...rest));
}
@@ -230,3 +248,9 @@ class BufferedConsole extends _console().Console {
}
exports.default = BufferedConsole;
function invariant(condition, message) {
if (!condition) {
throw new Error(message);
}
}

View File

@@ -6,7 +6,7 @@
*/
/// <reference types="node" />
import { Console } from 'console';
import { LogMessage, LogType } from './types';
import type { LogMessage, LogType } from './types';
declare type Formatter = (type: LogType, message: LogMessage) => string;
export default class CustomConsole extends Console {
private _stdout;
@@ -15,25 +15,26 @@ export default class CustomConsole extends Console {
private _counters;
private _timers;
private _groupDepth;
constructor(stdout: NodeJS.WritableStream, stderr: NodeJS.WritableStream, formatBuffer?: Formatter);
Console: NodeJS.ConsoleConstructor;
constructor(stdout: NodeJS.WriteStream, stderr: NodeJS.WriteStream, formatBuffer?: Formatter);
private _log;
private _logError;
assert(value: any, message?: string | Error): void;
assert(value: unknown, message?: string | Error): asserts value;
count(label?: string): void;
countReset(label?: string): void;
debug(firstArg: any, ...args: Array<any>): void;
dir(firstArg: any, ...args: Array<any>): void;
dirxml(firstArg: any, ...args: Array<any>): void;
error(firstArg: any, ...args: Array<any>): void;
group(title?: string, ...args: Array<any>): void;
groupCollapsed(title?: string, ...args: Array<any>): void;
debug(firstArg: unknown, ...args: Array<unknown>): void;
dir(firstArg: unknown, ...args: Array<unknown>): void;
dirxml(firstArg: unknown, ...args: Array<unknown>): void;
error(firstArg: unknown, ...args: Array<unknown>): void;
group(title?: string, ...args: Array<unknown>): void;
groupCollapsed(title?: string, ...args: Array<unknown>): void;
groupEnd(): void;
info(firstArg: any, ...args: Array<any>): void;
log(firstArg: any, ...args: Array<any>): void;
info(firstArg: unknown, ...args: Array<unknown>): void;
log(firstArg: unknown, ...args: Array<unknown>): void;
time(label?: string): void;
timeEnd(label?: string): void;
warn(firstArg: any, ...args: Array<any>): void;
timeLog(label?: string, ...data: Array<unknown>): void;
warn(firstArg: unknown, ...args: Array<unknown>): void;
getBuffer(): undefined;
}
export {};
//# sourceMappingURL=CustomConsole.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"CustomConsole.d.ts","sourceRoot":"","sources":["../src/CustomConsole.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAIH,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAc,UAAU,EAAa,OAAO,EAAC,MAAM,SAAS,CAAC;AASpE,aAAK,SAAS,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC;AAEhE,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,OAAO;IAChD,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,OAAO,CAAY;IAC3B,OAAO,CAAC,WAAW,CAAS;gBAG1B,MAAM,EAAE,MAAM,CAAC,cAAc,EAC7B,MAAM,EAAE,MAAM,CAAC,cAAc,EAC7B,YAAY,GAAE,SAAuC;IAWvD,OAAO,CAAC,IAAI;IAOZ,OAAO,CAAC,SAAS;IAOjB,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK;IAQ3C,KAAK,CAAC,KAAK,GAAE,MAAkB;IAQ/B,UAAU,CAAC,KAAK,GAAE,MAAkB;IAIpC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIxC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAItC,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIzC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIxC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAQzC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAQlD,QAAQ;IAMR,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIvC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAItC,IAAI,CAAC,KAAK,GAAE,MAAkB;IAQ9B,OAAO,CAAC,KAAK,GAAE,MAAkB;IAWjC,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAIvC,SAAS;CAGV"}

View File

@@ -8,17 +8,7 @@ exports.default = void 0;
function _assert() {
const data = _interopRequireDefault(require('assert'));
_assert = function _assert() {
return data;
};
return data;
}
function _util() {
const data = require('util');
_util = function _util() {
_assert = function () {
return data;
};
@@ -28,7 +18,17 @@ function _util() {
function _console() {
const data = require('console');
_console = function _console() {
_console = function () {
return data;
};
return data;
}
function _util() {
const data = require('util');
_util = function () {
return data;
};
@@ -38,7 +38,17 @@ function _console() {
function _chalk() {
const data = _interopRequireDefault(require('chalk'));
_chalk = function _chalk() {
_chalk = function () {
return data;
};
return data;
}
function _jestUtil() {
const data = require('jest-util');
_jestUtil = function () {
return data;
};
@@ -63,13 +73,6 @@ function _defineProperty(obj, key, value) {
return obj;
}
// TODO: Copied from `jest-util`. Import from it in Jest 25
function clearLine(stream) {
if (stream.isTTY) {
stream.write('\x1b[999D\x1b[K');
}
}
class CustomConsole extends _console().Console {
constructor(stdout, stderr, formatBuffer = (_type, message) => message) {
super(stdout, stderr);
@@ -80,29 +83,28 @@ class CustomConsole extends _console().Console {
_defineProperty(this, '_formatBuffer', void 0);
_defineProperty(this, '_counters', void 0);
_defineProperty(this, '_counters', {});
_defineProperty(this, '_timers', void 0);
_defineProperty(this, '_timers', {});
_defineProperty(this, '_groupDepth', void 0);
_defineProperty(this, '_groupDepth', 0);
_defineProperty(this, 'Console', _console().Console);
this._stdout = stdout;
this._stderr = stderr;
this._formatBuffer = formatBuffer;
this._counters = {};
this._timers = {};
this._groupDepth = 0;
}
_log(type, message) {
clearLine(this._stdout);
(0, _jestUtil().clearLine)(this._stdout);
super.log(
this._formatBuffer(type, ' '.repeat(this._groupDepth) + message)
);
}
_logError(type, message) {
clearLine(this._stderr);
(0, _jestUtil().clearLine)(this._stderr);
super.error(
this._formatBuffer(type, ' '.repeat(this._groupDepth) + message)
);
@@ -198,12 +200,32 @@ class CustomConsole extends _console().Console {
const endTime = new Date().getTime();
const time = endTime - startTime.getTime();
this._log('time', (0, _util().format)(`${label}: ${time}ms`));
this._log(
'time',
(0, _util().format)(`${label}: ${(0, _jestUtil().formatTime)(time)}`)
);
delete this._timers[label];
}
}
timeLog(label = 'default', ...data) {
const startTime = this._timers[label];
if (startTime) {
const endTime = new Date();
const time = endTime.getTime() - startTime.getTime();
this._log(
'time',
(0, _util().format)(
`${label}: ${(0, _jestUtil().formatTime)(time)}`,
...data
)
);
}
}
warn(firstArg, ...args) {
this._logError('warn', (0, _util().format)(firstArg, ...args));
}

View File

@@ -14,7 +14,10 @@ export default class NullConsole extends CustomConsole {
log(): void;
time(): void;
timeEnd(): void;
timeLog(): void;
trace(): void;
warn(): void;
group(): void;
groupCollapsed(): void;
groupEnd(): void;
}
//# sourceMappingURL=NullConsole.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"NullConsole.d.ts","sourceRoot":"","sources":["../src/NullConsole.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa;IACpD,MAAM;IACN,KAAK;IACL,GAAG;IACH,KAAK;IACL,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,OAAO;IACP,KAAK;IACL,IAAI;CACL"}

View File

@@ -34,9 +34,17 @@ class NullConsole extends _CustomConsole.default {
timeEnd() {}
timeLog() {}
trace() {}
warn() {}
group() {}
groupCollapsed() {}
groupEnd() {}
}
exports.default = NullConsole;

View File

@@ -4,6 +4,8 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
declare const _default: (root: string, verbose: boolean, buffer: import("./types").LogEntry[]) => string;
import type { Config } from '@jest/types';
import { StackTraceConfig } from 'jest-message-util';
import type { ConsoleBuffer } from './types';
declare const _default: (root: string, verbose: boolean, buffer: ConsoleBuffer, config?: StackTraceConfig, globalConfig?: Config.GlobalConfig | undefined) => string;
export default _default;
//# sourceMappingURL=getConsoleOutput.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"getConsoleOutput.d.ts","sourceRoot":"","sources":["../src/getConsoleOutput.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAOH,wBA+BE"}

View File

@@ -5,30 +5,20 @@ Object.defineProperty(exports, '__esModule', {
});
exports.default = void 0;
function _path() {
const data = _interopRequireDefault(require('path'));
_path = function _path() {
return data;
};
return data;
}
function _chalk() {
const data = _interopRequireDefault(require('chalk'));
_chalk = function _chalk() {
_chalk = function () {
return data;
};
return data;
}
function _slash() {
const data = _interopRequireDefault(require('slash'));
function _jestMessageUtil() {
const data = require('jest-message-util');
_slash = function _slash() {
_jestMessageUtil = function () {
return data;
};
@@ -45,36 +35,78 @@ function _interopRequireDefault(obj) {
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var _default = (root, verbose, buffer) => {
var _default = (
root,
verbose,
buffer, // TODO: make mandatory and take Config.ProjectConfig in 27
config = {
rootDir: root,
testMatch: []
},
globalConfig
) => {
const TITLE_INDENT = verbose ? ' ' : ' ';
const CONSOLE_INDENT = TITLE_INDENT + ' ';
return buffer.reduce((output, {type, message, origin}) => {
origin = (0, _slash().default)(_path().default.relative(root, origin));
const logEntries = buffer.reduce((output, {type, message, origin}) => {
message = message
.split(/\n/)
.map(line => CONSOLE_INDENT + line)
.join('\n');
let typeMessage = 'console.' + type;
let noStackTrace = true;
let noCodeFrame = true;
if (type === 'warn') {
var _globalConfig$noStack;
message = _chalk().default.yellow(message);
typeMessage = _chalk().default.yellow(typeMessage);
noStackTrace =
(_globalConfig$noStack =
globalConfig === null || globalConfig === void 0
? void 0
: globalConfig.noStackTrace) !== null &&
_globalConfig$noStack !== void 0
? _globalConfig$noStack
: false;
noCodeFrame = false;
} else if (type === 'error') {
var _globalConfig$noStack2;
message = _chalk().default.red(message);
typeMessage = _chalk().default.red(typeMessage);
noStackTrace =
(_globalConfig$noStack2 =
globalConfig === null || globalConfig === void 0
? void 0
: globalConfig.noStackTrace) !== null &&
_globalConfig$noStack2 !== void 0
? _globalConfig$noStack2
: false;
noCodeFrame = false;
}
const options = {
noCodeFrame,
noStackTrace
};
const formattedStackTrace = (0, _jestMessageUtil().formatStackTrace)(
origin,
config,
options
);
return (
output +
TITLE_INDENT +
_chalk().default.dim(typeMessage) +
' ' +
_chalk().default.dim(origin) +
'\n' +
message +
'\n'
message.trimRight() +
'\n' +
_chalk().default.dim(formattedStackTrace.trimRight()) +
'\n\n'
);
}, '');
return logEntries.trimRight() + '\n';
};
exports.default = _default;

View File

@@ -8,5 +8,4 @@ export { default as BufferedConsole } from './BufferedConsole';
export { default as CustomConsole } from './CustomConsole';
export { default as NullConsole } from './NullConsole';
export { default as getConsoleOutput } from './getConsoleOutput';
export { ConsoleBuffer, LogMessage, LogType } from './types';
//# sourceMappingURL=index.d.ts.map
export type { ConsoleBuffer, LogMessage, LogType } from './types';

View File

@@ -1 +0,0 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAE,UAAU,EAAE,OAAO,EAAC,MAAM,SAAS,CAAC"}

View File

@@ -5,46 +5,28 @@ Object.defineProperty(exports, '__esModule', {
});
Object.defineProperty(exports, 'BufferedConsole', {
enumerable: true,
get: function get() {
get: function () {
return _BufferedConsole.default;
}
});
Object.defineProperty(exports, 'CustomConsole', {
enumerable: true,
get: function get() {
get: function () {
return _CustomConsole.default;
}
});
Object.defineProperty(exports, 'NullConsole', {
enumerable: true,
get: function get() {
get: function () {
return _NullConsole.default;
}
});
Object.defineProperty(exports, 'getConsoleOutput', {
enumerable: true,
get: function get() {
get: function () {
return _getConsoleOutput.default;
}
});
Object.defineProperty(exports, 'ConsoleBuffer', {
enumerable: true,
get: function get() {
return _types.ConsoleBuffer;
}
});
Object.defineProperty(exports, 'LogMessage', {
enumerable: true,
get: function get() {
return _types.LogMessage;
}
});
Object.defineProperty(exports, 'LogType', {
enumerable: true,
get: function get() {
return _types.LogType;
}
});
var _BufferedConsole = _interopRequireDefault(require('./BufferedConsole'));
@@ -54,8 +36,6 @@ var _NullConsole = _interopRequireDefault(require('./NullConsole'));
var _getConsoleOutput = _interopRequireDefault(require('./getConsoleOutput'));
var _types = require('./types');
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}

View File

@@ -18,4 +18,3 @@ export declare type LogTimers = {
};
export declare type LogType = 'assert' | 'count' | 'debug' | 'dir' | 'dirxml' | 'error' | 'group' | 'groupCollapsed' | 'info' | 'log' | 'time' | 'warn';
export declare type ConsoleBuffer = Array<LogEntry>;
//# sourceMappingURL=types.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAY,UAAU,GAAG,MAAM,CAAC;AAEhC,oBAAY,QAAQ,GAAG;IACrB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,oBAAY,OAAO,GACf,QAAQ,GACR,OAAO,GACP,OAAO,GACP,KAAK,GACL,QAAQ,GACR,OAAO,GACP,OAAO,GACP,gBAAgB,GAChB,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,CAAC;AAEX,oBAAY,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC"}