mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 02:16:45 +00:00
Fix.
This commit is contained in:
parent
596a6da241
commit
c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions
23
node_modules/jest-watcher/LICENSE
generated
vendored
Normal file
23
node_modules/jest-watcher/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
MIT License
|
||||
|
||||
For Jest software
|
||||
|
||||
Copyright (c) 2014-present, Facebook, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
23
node_modules/jest-watcher/build/BaseWatchPlugin.d.ts
generated
vendored
Normal file
23
node_modules/jest-watcher/build/BaseWatchPlugin.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
import { Config } from '@jest/types';
|
||||
import { JestHookSubscriber, UpdateConfigCallback, UsageData, WatchPlugin } from './types';
|
||||
declare class BaseWatchPlugin implements WatchPlugin {
|
||||
protected _stdin: NodeJS.ReadStream;
|
||||
protected _stdout: NodeJS.WriteStream;
|
||||
constructor({ stdin, stdout, }: {
|
||||
stdin: NodeJS.ReadStream;
|
||||
stdout: NodeJS.WriteStream;
|
||||
});
|
||||
apply(_hooks: JestHookSubscriber): void;
|
||||
getUsageInfo(_globalConfig: Config.GlobalConfig): UsageData | null;
|
||||
onKey(_key: string): void;
|
||||
run(_globalConfig: Config.GlobalConfig, _updateConfigAndRun: UpdateConfigCallback): Promise<void | boolean>;
|
||||
}
|
||||
export default BaseWatchPlugin;
|
||||
//# sourceMappingURL=BaseWatchPlugin.d.ts.map
|
1
node_modules/jest-watcher/build/BaseWatchPlugin.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/BaseWatchPlugin.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"BaseWatchPlugin.d.ts","sourceRoot":"","sources":["../src/BaseWatchPlugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACnC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,cAAM,eAAgB,YAAW,WAAW;IAC1C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IACpC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC;gBAE1B,EACV,KAAK,EACL,MAAM,GACP,EAAE;QACD,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC;QACzB,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC;KAC5B;IAKD,KAAK,CAAC,MAAM,EAAE,kBAAkB;IAEhC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,YAAY,GAAG,SAAS,GAAG,IAAI;IAIlE,KAAK,CAAC,IAAI,EAAE,MAAM;IAElB,GAAG,CACD,aAAa,EAAE,MAAM,CAAC,YAAY,EAClC,mBAAmB,EAAE,oBAAoB,GACxC,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC;CAG3B;AAED,eAAe,eAAe,CAAC"}
|
52
node_modules/jest-watcher/build/BaseWatchPlugin.js
generated
vendored
Normal file
52
node_modules/jest-watcher/build/BaseWatchPlugin.js
generated
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
class BaseWatchPlugin {
|
||||
constructor({stdin, stdout}) {
|
||||
_defineProperty(this, '_stdin', void 0);
|
||||
|
||||
_defineProperty(this, '_stdout', void 0);
|
||||
|
||||
this._stdin = stdin;
|
||||
this._stdout = stdout;
|
||||
}
|
||||
|
||||
apply(_hooks) {}
|
||||
|
||||
getUsageInfo(_globalConfig) {
|
||||
return null;
|
||||
}
|
||||
|
||||
onKey(_key) {}
|
||||
|
||||
run(_globalConfig, _updateConfigAndRun) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
}
|
||||
|
||||
var _default = BaseWatchPlugin;
|
||||
exports.default = _default;
|
17
node_modules/jest-watcher/build/JestHooks.d.ts
generated
vendored
Normal file
17
node_modules/jest-watcher/build/JestHooks.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
import { JestHookSubscriber, JestHookEmitter } from './types';
|
||||
declare type AvailableHooks = 'onFileChange' | 'onTestRunComplete' | 'shouldRunTestSuite';
|
||||
declare class JestHooks {
|
||||
private _listeners;
|
||||
constructor();
|
||||
isUsed(hook: AvailableHooks): number;
|
||||
getSubscriber(): JestHookSubscriber;
|
||||
getEmitter(): JestHookEmitter;
|
||||
}
|
||||
export default JestHooks;
|
||||
//# sourceMappingURL=JestHooks.d.ts.map
|
1
node_modules/jest-watcher/build/JestHooks.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/JestHooks.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"JestHooks.d.ts","sourceRoot":"","sources":["../src/JestHooks.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,kBAAkB,EAClB,eAAe,EAIhB,MAAM,SAAS,CAAC;AAEjB,aAAK,cAAc,GACf,cAAc,GACd,mBAAmB,GACnB,oBAAoB,CAAC;AAEzB,cAAM,SAAS;IACb,OAAO,CAAC,UAAU,CAIhB;;IAUF,MAAM,CAAC,IAAI,EAAE,cAAc;IAI3B,aAAa,IAAI,kBAAkB;IAcnC,UAAU,IAAI,eAAe;CAmB9B;AAED,eAAe,SAAS,CAAC"}
|
120
node_modules/jest-watcher/build/JestHooks.js
generated
vendored
Normal file
120
node_modules/jest-watcher/build/JestHooks.js
generated
vendored
Normal file
|
@ -0,0 +1,120 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||
try {
|
||||
var info = gen[key](arg);
|
||||
var value = info.value;
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
return;
|
||||
}
|
||||
if (info.done) {
|
||||
resolve(value);
|
||||
} else {
|
||||
Promise.resolve(value).then(_next, _throw);
|
||||
}
|
||||
}
|
||||
|
||||
function _asyncToGenerator(fn) {
|
||||
return function() {
|
||||
var self = this,
|
||||
args = arguments;
|
||||
return new Promise(function(resolve, reject) {
|
||||
var gen = fn.apply(self, args);
|
||||
function _next(value) {
|
||||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value);
|
||||
}
|
||||
function _throw(err) {
|
||||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err);
|
||||
}
|
||||
_next(undefined);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
class JestHooks {
|
||||
constructor() {
|
||||
_defineProperty(this, '_listeners', void 0);
|
||||
|
||||
this._listeners = {
|
||||
onFileChange: [],
|
||||
onTestRunComplete: [],
|
||||
shouldRunTestSuite: []
|
||||
};
|
||||
}
|
||||
|
||||
isUsed(hook) {
|
||||
return this._listeners[hook] && this._listeners[hook].length;
|
||||
}
|
||||
|
||||
getSubscriber() {
|
||||
return {
|
||||
onFileChange: fn => {
|
||||
this._listeners.onFileChange.push(fn);
|
||||
},
|
||||
onTestRunComplete: fn => {
|
||||
this._listeners.onTestRunComplete.push(fn);
|
||||
},
|
||||
shouldRunTestSuite: fn => {
|
||||
this._listeners.shouldRunTestSuite.push(fn);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
getEmitter() {
|
||||
var _this = this;
|
||||
|
||||
return {
|
||||
onFileChange: fs =>
|
||||
this._listeners.onFileChange.forEach(listener => listener(fs)),
|
||||
onTestRunComplete: results =>
|
||||
this._listeners.onTestRunComplete.forEach(listener =>
|
||||
listener(results)
|
||||
),
|
||||
shouldRunTestSuite: (function() {
|
||||
var _shouldRunTestSuite = _asyncToGenerator(function*(testSuiteInfo) {
|
||||
const result = yield Promise.all(
|
||||
_this._listeners.shouldRunTestSuite.map(listener =>
|
||||
listener(testSuiteInfo)
|
||||
)
|
||||
);
|
||||
return result.every(Boolean);
|
||||
});
|
||||
|
||||
function shouldRunTestSuite(_x) {
|
||||
return _shouldRunTestSuite.apply(this, arguments);
|
||||
}
|
||||
|
||||
return shouldRunTestSuite;
|
||||
})()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
var _default = JestHooks;
|
||||
exports.default = _default;
|
21
node_modules/jest-watcher/build/PatternPrompt.d.ts
generated
vendored
Normal file
21
node_modules/jest-watcher/build/PatternPrompt.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
import Prompt from './lib/Prompt';
|
||||
import { ScrollOptions } from './types';
|
||||
export default class PatternPrompt {
|
||||
protected _pipe: NodeJS.WritableStream;
|
||||
protected _prompt: Prompt;
|
||||
protected _entityName: string;
|
||||
protected _currentUsageRows: number;
|
||||
constructor(pipe: NodeJS.WritableStream, prompt: Prompt);
|
||||
run(onSuccess: (value: string) => void, onCancel: () => void, options?: {
|
||||
header: string;
|
||||
}): void;
|
||||
protected _onChange(_pattern: string, _options: ScrollOptions): void;
|
||||
}
|
||||
//# sourceMappingURL=PatternPrompt.d.ts.map
|
1
node_modules/jest-watcher/build/PatternPrompt.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/PatternPrompt.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"PatternPrompt.d.ts","sourceRoot":"","sources":["../src/PatternPrompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAKH,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAatC,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC;IACvC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,iBAAiB,EAAE,MAAM,CAAC;gBAExB,IAAI,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM;IAQvD,GAAG,CACD,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAClC,QAAQ,EAAE,MAAM,IAAI,EACpB,OAAO,CAAC,EAAE;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC;IAkB5B,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa;CAI9D"}
|
113
node_modules/jest-watcher/build/PatternPrompt.js
generated
vendored
Normal file
113
node_modules/jest-watcher/build/PatternPrompt.js
generated
vendored
Normal file
|
@ -0,0 +1,113 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require('chalk'));
|
||||
|
||||
_chalk = function _chalk() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _ansiEscapes() {
|
||||
const data = _interopRequireDefault(require('ansi-escapes'));
|
||||
|
||||
_ansiEscapes = function _ansiEscapes() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _jestUtil() {
|
||||
const data = require('jest-util');
|
||||
|
||||
_jestUtil = function _jestUtil() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
const CLEAR = _jestUtil().specialChars.CLEAR;
|
||||
|
||||
const usage = entity =>
|
||||
`\n${_chalk().default.bold('Pattern Mode Usage')}\n` +
|
||||
` ${_chalk().default.dim('\u203A Press')} Esc ${_chalk().default.dim(
|
||||
'to exit pattern mode.'
|
||||
)}\n` +
|
||||
` ${_chalk().default.dim('\u203A Press')} Enter ` +
|
||||
`${_chalk().default.dim(`to filter by a ${entity} regex pattern.`)}\n` +
|
||||
`\n`;
|
||||
|
||||
const usageRows = usage('').split('\n').length;
|
||||
|
||||
class PatternPrompt {
|
||||
constructor(pipe, prompt) {
|
||||
_defineProperty(this, '_pipe', void 0);
|
||||
|
||||
_defineProperty(this, '_prompt', void 0);
|
||||
|
||||
_defineProperty(this, '_entityName', void 0);
|
||||
|
||||
_defineProperty(this, '_currentUsageRows', void 0);
|
||||
|
||||
// TODO: Should come in the constructor
|
||||
this._entityName = '';
|
||||
this._pipe = pipe;
|
||||
this._prompt = prompt;
|
||||
this._currentUsageRows = usageRows;
|
||||
}
|
||||
|
||||
run(onSuccess, onCancel, options) {
|
||||
this._pipe.write(_ansiEscapes().default.cursorHide);
|
||||
|
||||
this._pipe.write(CLEAR);
|
||||
|
||||
if (options && options.header) {
|
||||
this._pipe.write(options.header + '\n');
|
||||
|
||||
this._currentUsageRows = usageRows + options.header.split('\n').length;
|
||||
} else {
|
||||
this._currentUsageRows = usageRows;
|
||||
}
|
||||
|
||||
this._pipe.write(usage(this._entityName));
|
||||
|
||||
this._pipe.write(_ansiEscapes().default.cursorShow);
|
||||
|
||||
this._prompt.enter(this._onChange.bind(this), onSuccess, onCancel);
|
||||
}
|
||||
|
||||
_onChange(_pattern, _options) {
|
||||
this._pipe.write(_ansiEscapes().default.eraseLine);
|
||||
|
||||
this._pipe.write(_ansiEscapes().default.cursorLeft);
|
||||
}
|
||||
}
|
||||
|
||||
exports.default = PatternPrompt;
|
18
node_modules/jest-watcher/build/constants.d.ts
generated
vendored
Normal file
18
node_modules/jest-watcher/build/constants.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
export declare const KEYS: {
|
||||
ARROW_DOWN: string;
|
||||
ARROW_LEFT: string;
|
||||
ARROW_RIGHT: string;
|
||||
ARROW_UP: string;
|
||||
BACKSPACE: string;
|
||||
CONTROL_C: string;
|
||||
CONTROL_D: string;
|
||||
ENTER: string;
|
||||
ESCAPE: string;
|
||||
};
|
||||
//# sourceMappingURL=constants.d.ts.map
|
1
node_modules/jest-watcher/build/constants.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/constants.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,IAAI;;;;;;;;;;CAUhB,CAAC"}
|
26
node_modules/jest-watcher/build/constants.js
generated
vendored
Normal file
26
node_modules/jest-watcher/build/constants.js
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.KEYS = void 0;
|
||||
|
||||
/**
|
||||
* 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 isWindows = process.platform === 'win32';
|
||||
const KEYS = {
|
||||
ARROW_DOWN: '\u001b[B',
|
||||
ARROW_LEFT: '\u001b[D',
|
||||
ARROW_RIGHT: '\u001b[C',
|
||||
ARROW_UP: '\u001b[A',
|
||||
BACKSPACE: Buffer.from(isWindows ? '08' : '7f', 'hex').toString(),
|
||||
CONTROL_C: '\u0003',
|
||||
CONTROL_D: '\u0004',
|
||||
ENTER: '\r',
|
||||
ESCAPE: '\u001b'
|
||||
};
|
||||
exports.KEYS = KEYS;
|
14
node_modules/jest-watcher/build/index.d.ts
generated
vendored
Normal file
14
node_modules/jest-watcher/build/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
export { default as BaseWatchPlugin } from './BaseWatchPlugin';
|
||||
export { default as JestHook } from './JestHooks';
|
||||
export { default as PatternPrompt } from './PatternPrompt';
|
||||
export * from './constants';
|
||||
export { AllowedConfigOptions, JestHookEmitter, JestHookSubscriber, ScrollOptions, UpdateConfigCallback, UsageData, WatchPlugin, WatchPluginClass, } from './types';
|
||||
export { default as Prompt } from './lib/Prompt';
|
||||
export * from './lib/patternModeHelpers';
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/jest-watcher/build/index.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/index.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"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,QAAQ,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,cAAc,CAAC;AAC/C,cAAc,0BAA0B,CAAC"}
|
131
node_modules/jest-watcher/build/index.js
generated
vendored
Normal file
131
node_modules/jest-watcher/build/index.js
generated
vendored
Normal file
|
@ -0,0 +1,131 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
var _exportNames = {
|
||||
BaseWatchPlugin: true,
|
||||
JestHook: true,
|
||||
PatternPrompt: true,
|
||||
AllowedConfigOptions: true,
|
||||
JestHookEmitter: true,
|
||||
JestHookSubscriber: true,
|
||||
ScrollOptions: true,
|
||||
UpdateConfigCallback: true,
|
||||
UsageData: true,
|
||||
WatchPlugin: true,
|
||||
WatchPluginClass: true,
|
||||
Prompt: true
|
||||
};
|
||||
Object.defineProperty(exports, 'BaseWatchPlugin', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _BaseWatchPlugin.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'JestHook', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _JestHooks.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'PatternPrompt', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _PatternPrompt.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'AllowedConfigOptions', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.AllowedConfigOptions;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'JestHookEmitter', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.JestHookEmitter;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'JestHookSubscriber', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.JestHookSubscriber;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'ScrollOptions', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.ScrollOptions;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'UpdateConfigCallback', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.UpdateConfigCallback;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'UsageData', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.UsageData;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'WatchPlugin', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.WatchPlugin;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'WatchPluginClass', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.WatchPluginClass;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, 'Prompt', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Prompt.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _BaseWatchPlugin = _interopRequireDefault(require('./BaseWatchPlugin'));
|
||||
|
||||
var _JestHooks = _interopRequireDefault(require('./JestHooks'));
|
||||
|
||||
var _PatternPrompt = _interopRequireDefault(require('./PatternPrompt'));
|
||||
|
||||
var _constants = require('./constants');
|
||||
|
||||
Object.keys(_constants).forEach(function(key) {
|
||||
if (key === 'default' || key === '__esModule') return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _constants[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var _types = require('./types');
|
||||
|
||||
var _Prompt = _interopRequireDefault(require('./lib/Prompt'));
|
||||
|
||||
var _patternModeHelpers = require('./lib/patternModeHelpers');
|
||||
|
||||
Object.keys(_patternModeHelpers).forEach(function(key) {
|
||||
if (key === 'default' || key === '__esModule') return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _patternModeHelpers[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
26
node_modules/jest-watcher/build/lib/Prompt.d.ts
generated
vendored
Normal file
26
node_modules/jest-watcher/build/lib/Prompt.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
import { ScrollOptions } from '../types';
|
||||
export default class Prompt {
|
||||
private _entering;
|
||||
private _value;
|
||||
private _onChange;
|
||||
private _onSuccess;
|
||||
private _onCancel;
|
||||
private _offset;
|
||||
private _promptLength;
|
||||
private _selection;
|
||||
constructor();
|
||||
private _onResize;
|
||||
enter(onChange: (pattern: string, options: ScrollOptions) => void, onSuccess: (pattern: string) => void, onCancel: () => void): void;
|
||||
setPromptLength(length: number): void;
|
||||
setPromptSelection(selected: string): void;
|
||||
put(key: string): void;
|
||||
abort(): void;
|
||||
isEntering(): boolean;
|
||||
}
|
||||
//# sourceMappingURL=Prompt.d.ts.map
|
1
node_modules/jest-watcher/build/lib/Prompt.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/lib/Prompt.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../src/lib/Prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,SAAS,CAA0B;IAC3C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,UAAU,CAAgB;;IAelC,OAAO,CAAC,SAAS,CAEf;IAEF,KAAK,CACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,KAAK,IAAI,EAC3D,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EACpC,QAAQ,EAAE,MAAM,IAAI;IAoBtB,eAAe,CAAC,MAAM,EAAE,MAAM;IAI9B,kBAAkB,CAAC,QAAQ,EAAE,MAAM;IAInC,GAAG,CAAC,GAAG,EAAE,MAAM;IAiCf,KAAK;IAML,UAAU;CAGX"}
|
149
node_modules/jest-watcher/build/lib/Prompt.js
generated
vendored
Normal file
149
node_modules/jest-watcher/build/lib/Prompt.js
generated
vendored
Normal file
|
@ -0,0 +1,149 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var _constants = require('../constants');
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
class Prompt {
|
||||
constructor() {
|
||||
_defineProperty(this, '_entering', void 0);
|
||||
|
||||
_defineProperty(this, '_value', void 0);
|
||||
|
||||
_defineProperty(this, '_onChange', void 0);
|
||||
|
||||
_defineProperty(this, '_onSuccess', void 0);
|
||||
|
||||
_defineProperty(this, '_onCancel', void 0);
|
||||
|
||||
_defineProperty(this, '_offset', void 0);
|
||||
|
||||
_defineProperty(this, '_promptLength', void 0);
|
||||
|
||||
_defineProperty(this, '_selection', void 0);
|
||||
|
||||
_defineProperty(this, '_onResize', () => {
|
||||
this._onChange();
|
||||
});
|
||||
|
||||
// Copied from `enter` to satisfy TS
|
||||
this._entering = true;
|
||||
this._value = '';
|
||||
this._selection = null;
|
||||
this._offset = -1;
|
||||
this._promptLength = 0;
|
||||
|
||||
this._onChange = () => {};
|
||||
|
||||
this._onSuccess = () => {};
|
||||
|
||||
this._onCancel = () => {};
|
||||
}
|
||||
|
||||
enter(onChange, onSuccess, onCancel) {
|
||||
this._entering = true;
|
||||
this._value = '';
|
||||
this._onSuccess = onSuccess;
|
||||
this._onCancel = onCancel;
|
||||
this._selection = null;
|
||||
this._offset = -1;
|
||||
this._promptLength = 0;
|
||||
|
||||
this._onChange = () =>
|
||||
onChange(this._value, {
|
||||
max: 10,
|
||||
offset: this._offset
|
||||
});
|
||||
|
||||
this._onChange();
|
||||
|
||||
process.stdout.on('resize', this._onResize);
|
||||
}
|
||||
|
||||
setPromptLength(length) {
|
||||
this._promptLength = length;
|
||||
}
|
||||
|
||||
setPromptSelection(selected) {
|
||||
this._selection = selected;
|
||||
}
|
||||
|
||||
put(key) {
|
||||
switch (key) {
|
||||
case _constants.KEYS.ENTER:
|
||||
this._entering = false;
|
||||
|
||||
this._onSuccess(this._selection || this._value);
|
||||
|
||||
this.abort();
|
||||
break;
|
||||
|
||||
case _constants.KEYS.ESCAPE:
|
||||
this._entering = false;
|
||||
|
||||
this._onCancel(this._value);
|
||||
|
||||
this.abort();
|
||||
break;
|
||||
|
||||
case _constants.KEYS.ARROW_DOWN:
|
||||
this._offset = Math.min(this._offset + 1, this._promptLength - 1);
|
||||
|
||||
this._onChange();
|
||||
|
||||
break;
|
||||
|
||||
case _constants.KEYS.ARROW_UP:
|
||||
this._offset = Math.max(this._offset - 1, -1);
|
||||
|
||||
this._onChange();
|
||||
|
||||
break;
|
||||
|
||||
case _constants.KEYS.ARROW_LEFT:
|
||||
case _constants.KEYS.ARROW_RIGHT:
|
||||
break;
|
||||
|
||||
default:
|
||||
this._value =
|
||||
key === _constants.KEYS.BACKSPACE
|
||||
? this._value.slice(0, -1)
|
||||
: this._value + key;
|
||||
this._offset = -1;
|
||||
this._selection = null;
|
||||
|
||||
this._onChange();
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
abort() {
|
||||
this._entering = false;
|
||||
this._value = '';
|
||||
process.stdout.removeListener('resize', this._onResize);
|
||||
}
|
||||
|
||||
isEntering() {
|
||||
return this._entering;
|
||||
}
|
||||
}
|
||||
|
||||
exports.default = Prompt;
|
9
node_modules/jest-watcher/build/lib/colorize.d.ts
generated
vendored
Normal file
9
node_modules/jest-watcher/build/lib/colorize.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
declare const _default: (str: string, start: number, end: number) => string;
|
||||
export default _default;
|
||||
//# sourceMappingURL=colorize.d.ts.map
|
1
node_modules/jest-watcher/build/lib/colorize.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/lib/colorize.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"colorize.d.ts","sourceRoot":"","sources":["../../src/lib/colorize.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAIH,wBAG4B"}
|
33
node_modules/jest-watcher/build/lib/colorize.js
generated
vendored
Normal file
33
node_modules/jest-watcher/build/lib/colorize.js
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require('chalk'));
|
||||
|
||||
_chalk = function _chalk() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
var _default = (str, start, end) =>
|
||||
_chalk().default.dim(str.slice(0, start)) +
|
||||
_chalk().default.reset(str.slice(start, end)) +
|
||||
_chalk().default.dim(str.slice(end));
|
||||
|
||||
exports.default = _default;
|
9
node_modules/jest-watcher/build/lib/formatTestNameByPattern.d.ts
generated
vendored
Normal file
9
node_modules/jest-watcher/build/lib/formatTestNameByPattern.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
declare const _default: (testName: string, pattern: string, width: number) => string;
|
||||
export default _default;
|
||||
//# sourceMappingURL=formatTestNameByPattern.d.ts.map
|
1
node_modules/jest-watcher/build/lib/formatTestNameByPattern.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/lib/formatTestNameByPattern.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"formatTestNameByPattern.d.ts","sourceRoot":"","sources":["../../src/lib/formatTestNameByPattern.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AASH,wBA2CE"}
|
83
node_modules/jest-watcher/build/lib/formatTestNameByPattern.js
generated
vendored
Normal file
83
node_modules/jest-watcher/build/lib/formatTestNameByPattern.js
generated
vendored
Normal file
|
@ -0,0 +1,83 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require('chalk'));
|
||||
|
||||
_chalk = function _chalk() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var _colorize = _interopRequireDefault(require('./colorize'));
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 DOTS = '...';
|
||||
const ENTER = '⏎';
|
||||
|
||||
var _default = (testName, pattern, width) => {
|
||||
const inlineTestName = testName.replace(/(\r\n|\n|\r)/gm, ENTER);
|
||||
let regexp;
|
||||
|
||||
try {
|
||||
regexp = new RegExp(pattern, 'i');
|
||||
} catch (e) {
|
||||
return _chalk().default.dim(inlineTestName);
|
||||
}
|
||||
|
||||
const match = inlineTestName.match(regexp);
|
||||
|
||||
if (!match) {
|
||||
return _chalk().default.dim(inlineTestName);
|
||||
}
|
||||
|
||||
const startPatternIndex = Math.max(match.index || 0, 0);
|
||||
const endPatternIndex = startPatternIndex + match[0].length;
|
||||
|
||||
if (inlineTestName.length <= width) {
|
||||
return (0, _colorize.default)(
|
||||
inlineTestName,
|
||||
startPatternIndex,
|
||||
endPatternIndex
|
||||
);
|
||||
}
|
||||
|
||||
const slicedTestName = inlineTestName.slice(0, width - DOTS.length);
|
||||
|
||||
if (startPatternIndex < slicedTestName.length) {
|
||||
if (endPatternIndex > slicedTestName.length) {
|
||||
return (0, _colorize.default)(
|
||||
slicedTestName + DOTS,
|
||||
startPatternIndex,
|
||||
slicedTestName.length + DOTS.length
|
||||
);
|
||||
} else {
|
||||
return (0, _colorize.default)(
|
||||
slicedTestName + DOTS,
|
||||
Math.min(startPatternIndex, slicedTestName.length),
|
||||
endPatternIndex
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return `${_chalk().default.dim(slicedTestName)}${_chalk().default.reset(
|
||||
DOTS
|
||||
)}`;
|
||||
};
|
||||
|
||||
exports.default = _default;
|
10
node_modules/jest-watcher/build/lib/patternModeHelpers.d.ts
generated
vendored
Normal file
10
node_modules/jest-watcher/build/lib/patternModeHelpers.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
export declare const printPatternCaret: (pattern: string, pipe: NodeJS.WritableStream) => void;
|
||||
export declare const printRestoredPatternCaret: (pattern: string, currentUsageRows: number, pipe: NodeJS.WritableStream) => void;
|
||||
//# sourceMappingURL=patternModeHelpers.d.ts.map
|
1
node_modules/jest-watcher/build/lib/patternModeHelpers.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/lib/patternModeHelpers.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"patternModeHelpers.d.ts","sourceRoot":"","sources":["../../src/lib/patternModeHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAMH,eAAO,MAAM,iBAAiB,wDAS7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,kFAWrC,CAAC"}
|
68
node_modules/jest-watcher/build/lib/patternModeHelpers.js
generated
vendored
Normal file
68
node_modules/jest-watcher/build/lib/patternModeHelpers.js
generated
vendored
Normal file
|
@ -0,0 +1,68 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.printRestoredPatternCaret = exports.printPatternCaret = void 0;
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require('chalk'));
|
||||
|
||||
_chalk = function _chalk() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _ansiEscapes() {
|
||||
const data = _interopRequireDefault(require('ansi-escapes'));
|
||||
|
||||
_ansiEscapes = function _ansiEscapes() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _stringLength() {
|
||||
const data = _interopRequireDefault(require('string-length'));
|
||||
|
||||
_stringLength = function _stringLength() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 printPatternCaret = (pattern, pipe) => {
|
||||
const inputText = `${_chalk().default.dim(' pattern \u203A')} ${pattern}`;
|
||||
pipe.write(_ansiEscapes().default.eraseDown);
|
||||
pipe.write(inputText);
|
||||
pipe.write(_ansiEscapes().default.cursorSavePosition);
|
||||
};
|
||||
|
||||
exports.printPatternCaret = printPatternCaret;
|
||||
|
||||
const printRestoredPatternCaret = (pattern, currentUsageRows, pipe) => {
|
||||
const inputText = `${_chalk().default.dim(' pattern \u203A')} ${pattern}`;
|
||||
pipe.write(
|
||||
_ansiEscapes().default.cursorTo(
|
||||
(0, _stringLength().default)(inputText),
|
||||
currentUsageRows - 1
|
||||
)
|
||||
);
|
||||
pipe.write(_ansiEscapes().default.cursorRestorePosition);
|
||||
};
|
||||
|
||||
exports.printRestoredPatternCaret = printRestoredPatternCaret;
|
13
node_modules/jest-watcher/build/lib/scroll.d.ts
generated
vendored
Normal file
13
node_modules/jest-watcher/build/lib/scroll.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
import { ScrollOptions } from '../types';
|
||||
export default function scroll(size: number, { offset, max }: ScrollOptions): {
|
||||
end: number;
|
||||
index: number;
|
||||
start: number;
|
||||
};
|
||||
//# sourceMappingURL=scroll.d.ts.map
|
1
node_modules/jest-watcher/build/lib/scroll.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/lib/scroll.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"scroll.d.ts","sourceRoot":"","sources":["../../src/lib/scroll.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAC,MAAM,EAAE,GAAG,EAAC,EAAE,aAAa;;;;EAoBxE"}
|
34
node_modules/jest-watcher/build/lib/scroll.js
generated
vendored
Normal file
34
node_modules/jest-watcher/build/lib/scroll.js
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = scroll;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
function scroll(size, {offset, max}) {
|
||||
let start = 0;
|
||||
let index = Math.min(offset, size);
|
||||
const halfScreen = max / 2;
|
||||
|
||||
if (index <= halfScreen) {
|
||||
start = 0;
|
||||
} else {
|
||||
if (size >= max) {
|
||||
start = Math.min(index - halfScreen - 1, size - max);
|
||||
}
|
||||
|
||||
index = Math.min(index - start, size);
|
||||
}
|
||||
|
||||
return {
|
||||
end: Math.min(size, start + max),
|
||||
index,
|
||||
start
|
||||
};
|
||||
}
|
60
node_modules/jest-watcher/build/types.d.ts
generated
vendored
Normal file
60
node_modules/jest-watcher/build/types.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
import { Config } from '@jest/types';
|
||||
import { AggregatedResult } from '@jest/test-result';
|
||||
declare type TestSuiteInfo = {
|
||||
config: Config.ProjectConfig;
|
||||
duration?: number;
|
||||
testPath: string;
|
||||
};
|
||||
export declare type JestHookExposedFS = {
|
||||
projects: Array<{
|
||||
config: Config.ProjectConfig;
|
||||
testPaths: Array<Config.Path>;
|
||||
}>;
|
||||
};
|
||||
export declare type FileChange = (fs: JestHookExposedFS) => void;
|
||||
export declare type ShouldRunTestSuite = (testSuiteInfo: TestSuiteInfo) => Promise<boolean>;
|
||||
export declare type TestRunComplete = (results: AggregatedResult) => void;
|
||||
export declare type JestHookSubscriber = {
|
||||
onFileChange: (fn: FileChange) => void;
|
||||
onTestRunComplete: (fn: TestRunComplete) => void;
|
||||
shouldRunTestSuite: (fn: ShouldRunTestSuite) => void;
|
||||
};
|
||||
export declare type JestHookEmitter = {
|
||||
onFileChange: (fs: JestHookExposedFS) => void;
|
||||
onTestRunComplete: (results: AggregatedResult) => void;
|
||||
shouldRunTestSuite: (testSuiteInfo: TestSuiteInfo) => Promise<boolean>;
|
||||
};
|
||||
export declare type UsageData = {
|
||||
key: string;
|
||||
prompt: string;
|
||||
};
|
||||
export declare type AllowedConfigOptions = Partial<Pick<Config.GlobalConfig, 'bail' | 'changedSince' | 'collectCoverage' | 'collectCoverageFrom' | 'collectCoverageOnlyFrom' | 'coverageDirectory' | 'coverageReporters' | 'notify' | 'notifyMode' | 'onlyFailures' | 'reporters' | 'testNamePattern' | 'testPathPattern' | 'updateSnapshot' | 'verbose'> & {
|
||||
mode: 'watch' | 'watchAll';
|
||||
}>;
|
||||
export declare type UpdateConfigCallback = (config?: AllowedConfigOptions) => void;
|
||||
export interface WatchPlugin {
|
||||
isInternal?: boolean;
|
||||
apply?: (hooks: JestHookSubscriber) => void;
|
||||
getUsageInfo?: (globalConfig: Config.GlobalConfig) => UsageData | null;
|
||||
onKey?: (value: string) => void;
|
||||
run?: (globalConfig: Config.GlobalConfig, updateConfigAndRun: UpdateConfigCallback) => Promise<void | boolean>;
|
||||
}
|
||||
export interface WatchPluginClass {
|
||||
new (options: {
|
||||
stdin: NodeJS.ReadStream;
|
||||
stdout: NodeJS.WriteStream;
|
||||
}): WatchPlugin;
|
||||
}
|
||||
export declare type ScrollOptions = {
|
||||
offset: number;
|
||||
max: number;
|
||||
};
|
||||
export {};
|
||||
//# sourceMappingURL=types.d.ts.map
|
1
node_modules/jest-watcher/build/types.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-watcher/build/types.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAEnD,aAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,KAAK,CAAC;QACd,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC;QAC7B,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;KAC/B,CAAC,CAAC;CACJ,CAAC;AAEF,oBAAY,UAAU,GAAG,CAAC,EAAE,EAAE,iBAAiB,KAAK,IAAI,CAAC;AACzD,oBAAY,kBAAkB,GAAG,CAC/B,aAAa,EAAE,aAAa,KACzB,OAAO,CAAC,OAAO,CAAC,CAAC;AACtB,oBAAY,eAAe,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAElE,oBAAY,kBAAkB,GAAG;IAC/B,YAAY,EAAE,CAAC,EAAE,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,iBAAiB,EAAE,CAAC,EAAE,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,kBAAkB,EAAE,CAAC,EAAE,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,EAAE,CAAC,EAAE,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,iBAAiB,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACvD,kBAAkB,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACxE,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,oBAAoB,GAAG,OAAO,CACxC,IAAI,CACF,MAAM,CAAC,YAAY,EACjB,MAAM,GACN,cAAc,GACd,iBAAiB,GACjB,qBAAqB,GACrB,yBAAyB,GACzB,mBAAmB,GACnB,mBAAmB,GACnB,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,SAAS,CACZ,GAAG;IAAC,IAAI,EAAE,OAAO,GAAG,UAAU,CAAA;CAAC,CACjC,CAAC;AAEF,oBAAY,oBAAoB,GAAG,CAAC,MAAM,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAC;AAE3E,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC5C,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,YAAY,KAAK,SAAS,GAAG,IAAI,CAAC;IACvE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,CACJ,YAAY,EAAE,MAAM,CAAC,YAAY,EACjC,kBAAkB,EAAE,oBAAoB,KACrC,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;CAC9B;AACD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,OAAO,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC;QACzB,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC;KAC5B,GAAG,WAAW,CAAC;CACjB;AAED,oBAAY,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb,CAAC"}
|
1
node_modules/jest-watcher/build/types.js
generated
vendored
Normal file
1
node_modules/jest-watcher/build/types.js
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
'use strict';
|
61
node_modules/jest-watcher/package.json
generated
vendored
Normal file
61
node_modules/jest-watcher/package.json
generated
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"_from": "jest-watcher@^24.8.0",
|
||||
"_id": "jest-watcher@24.8.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-SBjwHt5NedQoVu54M5GEx7cl7IGEFFznvd/HNT8ier7cCAx/Qgu9ZMlaTQkvK22G1YOpcWBLQPFSImmxdn3DAw==",
|
||||
"_location": "/jest-watcher",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "jest-watcher@^24.8.0",
|
||||
"name": "jest-watcher",
|
||||
"escapedName": "jest-watcher",
|
||||
"rawSpec": "^24.8.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^24.8.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@jest/core"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-24.8.0.tgz",
|
||||
"_shasum": "58d49915ceddd2de85e238f6213cef1c93715de4",
|
||||
"_spec": "jest-watcher@^24.8.0",
|
||||
"_where": "E:\\github\\setup-java\\node_modules\\@jest\\core",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebook/jest/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@jest/test-result": "^24.8.0",
|
||||
"@jest/types": "^24.8.0",
|
||||
"@types/yargs": "^12.0.9",
|
||||
"ansi-escapes": "^3.0.0",
|
||||
"chalk": "^2.0.1",
|
||||
"jest-util": "^24.8.0",
|
||||
"string-length": "^2.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Delightful JavaScript Testing.",
|
||||
"devDependencies": {
|
||||
"@types/ansi-escapes": "^3.0.0",
|
||||
"@types/string-length": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"gitHead": "845728f24b3ef41e450595c384e9b5c9fdf248a4",
|
||||
"homepage": "https://jestjs.io/",
|
||||
"license": "MIT",
|
||||
"main": "build/index.js",
|
||||
"name": "jest-watcher",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/jest.git",
|
||||
"directory": "packages/jest-watcher"
|
||||
},
|
||||
"version": "24.8.0"
|
||||
}
|
12
node_modules/jest-watcher/tsconfig.json
generated
vendored
Normal file
12
node_modules/jest-watcher/tsconfig.json
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "build"
|
||||
},
|
||||
"references": [
|
||||
{"path": "../jest-test-result"},
|
||||
{"path": "../jest-types"},
|
||||
{"path": "../jest-util"}
|
||||
]
|
||||
}
|
2959
node_modules/jest-watcher/tsconfig.tsbuildinfo
generated
vendored
Normal file
2959
node_modules/jest-watcher/tsconfig.tsbuildinfo
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue