forked from tsai/budibase
380 changed files with 9149 additions and 21373 deletions
@ -1,156 +0,0 @@ |
|||||
<script> |
|
||||
import Dropdown from "../common/Dropdown.svelte" |
|
||||
import Textbox from "../common/Textbox.svelte" |
|
||||
import Button from "../common/Button.svelte" |
|
||||
import ButtonGroup from "../common/ButtonGroup.svelte" |
|
||||
import NumberBox from "../common/NumberBox.svelte" |
|
||||
import ValuesList from "../common/ValuesList.svelte" |
|
||||
import ErrorsBox from "../common/ErrorsBox.svelte" |
|
||||
import Checkbox from "../common/Checkbox.svelte" |
|
||||
import ActionButton from "../common/ActionButton.svelte" |
|
||||
import DatePicker from "../common/DatePicker.svelte" |
|
||||
import { |
|
||||
cloneDeep, |
|
||||
keys, |
|
||||
isNumber, |
|
||||
includes, |
|
||||
map, |
|
||||
isBoolean, |
|
||||
} from "lodash/fp" |
|
||||
import { |
|
||||
allTypes, |
|
||||
validate, |
|
||||
getPotentialReferenceIndexes, |
|
||||
getDefaultTypeOptions, |
|
||||
getNode, |
|
||||
getPotentialReverseReferenceIndexes, |
|
||||
} from "../common/core" |
|
||||
|
|
||||
export let field |
|
||||
export let allFields |
|
||||
export let onFinished = () => {} |
|
||||
export let store |
|
||||
|
|
||||
let errors = [] |
|
||||
let clonedField = cloneDeep(field) |
|
||||
|
|
||||
$: isNew = !!field && field.name.length === 0 |
|
||||
|
|
||||
$: possibleReferenceIndexes = getPotentialReferenceIndexes( |
|
||||
store.hierarchy, |
|
||||
store.currentNode |
|
||||
) |
|
||||
|
|
||||
$: selectedReverseRefIndex = !clonedField.typeOptions.indexNodeKey |
|
||||
? "" |
|
||||
: getNode(store.hierarchy, clonedField.typeOptions.indexNodeKey) |
|
||||
|
|
||||
$: possibleReverseReferenceIndexes = !selectedReverseRefIndex |
|
||||
? [] |
|
||||
: getPotentialReverseReferenceIndexes( |
|
||||
store.hierarchy, |
|
||||
selectedReverseRefIndex |
|
||||
) |
|
||||
|
|
||||
const typeChanged = ev => |
|
||||
(clonedField.typeOptions = getDefaultTypeOptions(ev.detail)) |
|
||||
|
|
||||
const save = () => { |
|
||||
errors = validate.field(allFields)(clonedField) |
|
||||
if (errors.length > 0) return |
|
||||
field.typeOptions = cloneDeep(clonedField.typeOptions) |
|
||||
onFinished({ ...field, ...clonedField }) |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<div class="root"> |
|
||||
|
|
||||
<ErrorsBox {errors} /> |
|
||||
|
|
||||
<form on:submit|preventDefault class="uk-form-stacked"> |
|
||||
<Textbox label="Name" bind:text={clonedField.name} /> |
|
||||
<Dropdown |
|
||||
label="Type" |
|
||||
bind:selected={clonedField.type} |
|
||||
options={keys(allTypes)} |
|
||||
on:change={typeChanged} /> |
|
||||
|
|
||||
<Textbox label="Label" bind:text={clonedField.label} /> |
|
||||
|
|
||||
{#if clonedField.type === 'string'} |
|
||||
<NumberBox |
|
||||
label="Max Length" |
|
||||
bind:value={clonedField.typeOptions.maxLength} /> |
|
||||
<ValuesList |
|
||||
label="Categories" |
|
||||
bind:values={clonedField.typeOptions.values} /> |
|
||||
<Checkbox |
|
||||
label="Declared Values Only" |
|
||||
bind:checked={clonedField.typeOptions.allowDeclaredValuesOnly} /> |
|
||||
{:else if clonedField.type === 'bool'} |
|
||||
<Checkbox |
|
||||
label="Allow Null" |
|
||||
bind:checked={clonedField.typeOptions.allowNulls} /> |
|
||||
{:else if clonedField.type === 'datetime'} |
|
||||
<DatePicker |
|
||||
label="Min Value" |
|
||||
bind:value={clonedField.typeOptions.minValue} /> |
|
||||
<DatePicker |
|
||||
label="Max Value" |
|
||||
bind:value={clonedField.typeOptions.maxValue} /> |
|
||||
{:else if clonedField.type === 'number'} |
|
||||
<NumberBox |
|
||||
label="Min Value" |
|
||||
bind:value={clonedField.typeOptions.minValue} /> |
|
||||
<NumberBox |
|
||||
label="Max Value" |
|
||||
bind:value={clonedField.typeOptions.maxValue} /> |
|
||||
<NumberBox |
|
||||
label="Decimal Places" |
|
||||
bind:value={clonedField.typeOptions.decimalPlaces} /> |
|
||||
{:else if clonedField.type === 'reference'} |
|
||||
<Dropdown |
|
||||
label="Lookup Index" |
|
||||
options={possibleReferenceIndexes} |
|
||||
valueMember={n => n.nodeKey()} |
|
||||
textMember={n => n.name} |
|
||||
bind:selected={clonedField.typeOptions.indexNodeKey} /> |
|
||||
|
|
||||
<Dropdown |
|
||||
label="Reverse Reference Index" |
|
||||
options={possibleReverseReferenceIndexes} |
|
||||
multiple="true" |
|
||||
valueMember={n => n.nodeKey()} |
|
||||
textMember={n => n.name} |
|
||||
bind:selected={clonedField.typeOptions.reverseIndexNodeKeys} /> |
|
||||
|
|
||||
<Textbox |
|
||||
label="Display Value" |
|
||||
bind:text={clonedField.typeOptions.displayValue} /> |
|
||||
{:else if clonedField.type.startsWith('array')} |
|
||||
<NumberBox |
|
||||
label="Min Length" |
|
||||
bind:value={clonedField.typeOptions.minLength} /> |
|
||||
<NumberBox |
|
||||
label="Max Length" |
|
||||
bind:value={clonedField.typeOptions.maxLength} /> |
|
||||
{/if} |
|
||||
</form> |
|
||||
</div> |
|
||||
<footer> |
|
||||
<ActionButton primary on:click={save}>Save</ActionButton> |
|
||||
<ActionButton alert on:click={() => onFinished(false)}>Cancel</ActionButton> |
|
||||
</footer> |
|
||||
|
|
||||
<style> |
|
||||
.root { |
|
||||
margin: 20px; |
|
||||
} |
|
||||
footer { |
|
||||
padding: 20px; |
|
||||
border-radius: 0 0 5px 5px; |
|
||||
bottom: 0; |
|
||||
left: 0; |
|
||||
background: #fafafa; |
|
||||
} |
|
||||
</style> |
|
||||
@ -0,0 +1,156 @@ |
|||||
|
<script> |
||||
|
import { tick } from "svelte" |
||||
|
import Textbox from "components/common/Textbox.svelte" |
||||
|
import Button from "components/common/Button.svelte" |
||||
|
import Select from "components/common/Select.svelte" |
||||
|
import ActionButton from "components/common/ActionButton.svelte" |
||||
|
import getIcon from "components/common/icon" |
||||
|
import FieldView from "./FieldView.svelte" |
||||
|
import api from "builderStore/api" |
||||
|
import { store, backendUiStore } from "builderStore" |
||||
|
import { common, hierarchy } from "../../../../../../../core/src/" |
||||
|
import { getNode } from "components/common/core" |
||||
|
import { templateApi, pipe, validate } from "components/common/core" |
||||
|
import ErrorsBox from "components/common/ErrorsBox.svelte" |
||||
|
|
||||
|
export let model = { schema: {} } |
||||
|
export let onClosed |
||||
|
|
||||
|
let showFieldView = false |
||||
|
let fieldToEdit |
||||
|
|
||||
|
$: modelFields = model.schema ? Object.entries(model.schema) : [] |
||||
|
$: instanceId = $backendUiStore.selectedDatabase.id |
||||
|
|
||||
|
function editField() { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
function deleteField() { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
function onFinishedFieldEdit() { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
async function saveModel() { |
||||
|
const SAVE_MODEL_URL = `/api/${instanceId}/models` |
||||
|
const response = await api.post(SAVE_MODEL_URL, model) |
||||
|
const newModel = await response.json() |
||||
|
backendUiStore.actions.models.create(newModel.model) |
||||
|
onClosed(); |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<heading> |
||||
|
{#if !showFieldView} |
||||
|
<i class="ri-list-settings-line button--toggled" /> |
||||
|
<h3 class="budibase__title--3">Create / Edit Model</h3> |
||||
|
{:else} |
||||
|
<i class="ri-file-list-line button--toggled" /> |
||||
|
<h3 class="budibase__title--3">Create / Edit Field</h3> |
||||
|
{/if} |
||||
|
</heading> |
||||
|
{#if !showFieldView} |
||||
|
<div class="padding"> |
||||
|
<h4 class="budibase__label--big">Settings</h4> |
||||
|
|
||||
|
{#if $store.errors && $store.errors.length > 0} |
||||
|
<ErrorsBox errors={$store.errors} /> |
||||
|
{/if} |
||||
|
|
||||
|
<Textbox label="Name" bind:text={model.name} /> |
||||
|
|
||||
|
<div class="table-controls"> |
||||
|
<span class="budibase__label--big">Fields</span> |
||||
|
<h4 class="hoverable new-field" on:click={() => (showFieldView = true)}> |
||||
|
Add new field |
||||
|
</h4> |
||||
|
</div> |
||||
|
|
||||
|
<table class="uk-table fields-table budibase__table"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Edit</th> |
||||
|
<th>Name</th> |
||||
|
<th>Type</th> |
||||
|
<th>Values</th> |
||||
|
<th /> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
{#each modelFields as [key, meta]} |
||||
|
<tr> |
||||
|
<td> |
||||
|
<i class="ri-more-line" on:click={() => editField(meta)} /> |
||||
|
</td> |
||||
|
<td> |
||||
|
<div>{key}</div> |
||||
|
</td> |
||||
|
<td>{meta.type}</td> |
||||
|
<!-- <td>{meta.typeOptions.values || ''}</td> --> |
||||
|
<td> |
||||
|
<i |
||||
|
class="ri-delete-bin-6-line hoverable" |
||||
|
on:click={() => deleteField(meta)} /> |
||||
|
</td> |
||||
|
</tr> |
||||
|
{/each} |
||||
|
</tbody> |
||||
|
</table> |
||||
|
<div class="uk-margin"> |
||||
|
<ActionButton color="secondary" on:click={saveModel}> |
||||
|
Save |
||||
|
</ActionButton> |
||||
|
</div> |
||||
|
</div> |
||||
|
{:else} |
||||
|
<FieldView |
||||
|
field={fieldToEdit} |
||||
|
onFinished={onFinishedFieldEdit} |
||||
|
schema={model.schema} |
||||
|
goBack={() => showFieldView = false} |
||||
|
/> |
||||
|
{/if} |
||||
|
|
||||
|
<style> |
||||
|
.padding { |
||||
|
padding: 20px; |
||||
|
} |
||||
|
|
||||
|
.new-field { |
||||
|
font-size: 16px; |
||||
|
font-weight: bold; |
||||
|
color: var(--button-text); |
||||
|
} |
||||
|
|
||||
|
.fields-table { |
||||
|
margin: 1rem 1rem 0rem 0rem; |
||||
|
border-collapse: collapse; |
||||
|
} |
||||
|
|
||||
|
tbody > tr:hover { |
||||
|
background-color: var(--primary10); |
||||
|
} |
||||
|
|
||||
|
.table-controls { |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.ri-more-line:hover { |
||||
|
cursor: pointer; |
||||
|
} |
||||
|
|
||||
|
heading { |
||||
|
padding: 20px 20px 0 20px; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
h3 { |
||||
|
margin: 0 0 0 10px; |
||||
|
} |
||||
|
</style> |
||||
@ -0,0 +1,102 @@ |
|||||
|
<script> |
||||
|
import Dropdown from "components/common/Dropdown.svelte" |
||||
|
import Textbox from "components/common/Textbox.svelte" |
||||
|
import Button from "components/common/Button.svelte" |
||||
|
import ButtonGroup from "components/common/ButtonGroup.svelte" |
||||
|
import NumberBox from "components/common/NumberBox.svelte" |
||||
|
import ValuesList from "components/common/ValuesList.svelte" |
||||
|
import ErrorsBox from "components/common/ErrorsBox.svelte" |
||||
|
import Checkbox from "components/common/Checkbox.svelte" |
||||
|
import ActionButton from "components/common/ActionButton.svelte" |
||||
|
import DatePicker from "components/common/DatePicker.svelte" |
||||
|
import { keys, cloneDeep } from "lodash/fp" |
||||
|
import { |
||||
|
allTypes, |
||||
|
validate, |
||||
|
getDefaultTypeOptions, |
||||
|
} from "components/common/core" |
||||
|
|
||||
|
export let field = { type: "string" } |
||||
|
export let schema |
||||
|
export let goBack |
||||
|
export let onFinished = () => {} |
||||
|
|
||||
|
let errors = [] |
||||
|
let draftField = cloneDeep(field); |
||||
|
|
||||
|
const save = () => { |
||||
|
// errors = validate.field(allFields)(clonedField) |
||||
|
// if (errors.length > 0) return |
||||
|
// field.typeOptions = cloneDeep(clonedField.typeOptions) |
||||
|
schema[field.name] = draftField; |
||||
|
goBack(); |
||||
|
// onFinished({ ...field, ...clonedField }) |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<div class="root"> |
||||
|
|
||||
|
<ErrorsBox {errors} /> |
||||
|
|
||||
|
<form on:submit|preventDefault class="uk-form-stacked"> |
||||
|
<Textbox label="Name" bind:text={field.name} /> |
||||
|
<Dropdown |
||||
|
label="Type" |
||||
|
bind:selected={draftField.type} |
||||
|
options={keys(allTypes)} /> |
||||
|
|
||||
|
{#if field.type === 'string'} |
||||
|
<NumberBox |
||||
|
label="Max Length" |
||||
|
bind:value={draftField.maxLength} /> |
||||
|
<ValuesList |
||||
|
label="Categories" |
||||
|
bind:values={draftField.values} /> |
||||
|
{:else if field.type === 'bool'} |
||||
|
<!-- TODO: revisit and fix with JSON schema --> |
||||
|
<Checkbox |
||||
|
label="Allow Null" |
||||
|
bind:checked={draftField.allowNulls} /> |
||||
|
{:else if field.format === 'datetime'} |
||||
|
<!-- TODO: revisit and fix with JSON schema --> |
||||
|
<DatePicker |
||||
|
label="Min Value" |
||||
|
bind:value={draftField.minValue} /> |
||||
|
<DatePicker |
||||
|
label="Max Value" |
||||
|
bind:value={draftField.maxValue} /> |
||||
|
{:else if field.type === 'number'} |
||||
|
<NumberBox |
||||
|
label="Min Value" |
||||
|
bind:value={draftField.minimum} /> |
||||
|
<NumberBox |
||||
|
label="Max Value" |
||||
|
bind:value={draftField.maximum} /> |
||||
|
{:else if draftField.type.startsWith('array')} |
||||
|
<!-- TODO: revisit and fix with JSON schema --> |
||||
|
<NumberBox |
||||
|
label="Min Length" |
||||
|
bind:value={draftField.typeOptions.minLength} /> |
||||
|
<NumberBox |
||||
|
label="Max Length" |
||||
|
bind:value={draftField.typeOptions.maxLength} /> |
||||
|
{/if} |
||||
|
</form> |
||||
|
</div> |
||||
|
<footer> |
||||
|
<ActionButton primary on:click={save}>Save</ActionButton> |
||||
|
<ActionButton alert on:click={goBack}>Cancel</ActionButton> |
||||
|
</footer> |
||||
|
|
||||
|
<style> |
||||
|
.root { |
||||
|
margin: 20px; |
||||
|
} |
||||
|
footer { |
||||
|
padding: 20px; |
||||
|
border-radius: 0 0 5px 5px; |
||||
|
bottom: 0; |
||||
|
left: 0; |
||||
|
background: #fafafa; |
||||
|
} |
||||
|
</style> |
||||
@ -0,0 +1,66 @@ |
|||||
|
<script> |
||||
|
import Select from "../../../common/Select.svelte" |
||||
|
|
||||
|
export let record |
||||
|
export let field |
||||
|
export let errors |
||||
|
|
||||
|
$: isDropdown = |
||||
|
field.type === "string" && |
||||
|
field.typeOptions.values && |
||||
|
field.typeOptions.values.length > 0 |
||||
|
|
||||
|
$: isNumber = field.type === "number" |
||||
|
|
||||
|
$: isText = field.type === "string" && !isDropdown |
||||
|
|
||||
|
$: isCheckbox = field.type === "bool" |
||||
|
|
||||
|
$: isError = errors && errors.some(e => e.field && e.field === field.name) |
||||
|
|
||||
|
$: isDatetime = field.type === "datetime" |
||||
|
</script> |
||||
|
|
||||
|
<div class="uk-margin"> |
||||
|
{#if !isCheckbox} |
||||
|
<label class="uk-form-label" for={field.name}>{field.label}</label> |
||||
|
{/if} |
||||
|
<div class="uk-form-controls"> |
||||
|
{#if isDropdown} |
||||
|
<Select bind:value={record[field.name]}> |
||||
|
<option value="" /> |
||||
|
{#each field.typeOptions.values as val} |
||||
|
<option value={val}>{val}</option> |
||||
|
{/each} |
||||
|
</Select> |
||||
|
{:else if isText} |
||||
|
<input |
||||
|
class="uk-input" |
||||
|
class:uk-form-danger={isError} |
||||
|
id={field.name} |
||||
|
type="text" |
||||
|
bind:value={record[field.name]} /> |
||||
|
{:else if isNumber} |
||||
|
<input |
||||
|
class="uk-input" |
||||
|
class:uk-form-danger={isError} |
||||
|
type="number" |
||||
|
bind:value={record[field.name]} /> |
||||
|
{:else if isDatetime} |
||||
|
<input |
||||
|
class="uk-input" |
||||
|
class:uk-form-danger={isError} |
||||
|
type="date" |
||||
|
bind:value={record[field.name]} /> |
||||
|
{:else if isCheckbox} |
||||
|
<label> |
||||
|
<input |
||||
|
class="uk-checkbox" |
||||
|
class:uk-form-danger={isError} |
||||
|
type="checkbox" |
||||
|
bind:checked={record[field.name]} /> |
||||
|
{field.label} |
||||
|
</label> |
||||
|
{/if} |
||||
|
</div> |
||||
|
</div> |
||||
@ -1,66 +1,29 @@ |
|||||
<script> |
<script> |
||||
import Select from "../../../common/Select.svelte" |
export let type = "text" |
||||
|
export let value = "" |
||||
export let record |
export let label |
||||
export let field |
export let errors = [] |
||||
export let errors |
|
||||
|
const handleInput = event => { |
||||
$: isDropdown = |
if (event.target.type === "checkbox") { |
||||
field.type === "string" && |
value = event.target.checked; |
||||
field.typeOptions.values && |
return; |
||||
field.typeOptions.values.length > 0 |
} |
||||
|
|
||||
$: isNumber = field.type === "number" |
if (event.target.type === "number") { |
||||
|
value = parseInt(event.target.value); |
||||
$: isText = field.type === "string" && !isDropdown |
return; |
||||
|
} |
||||
$: isCheckbox = field.type === "bool" |
|
||||
|
value = event.target.value; |
||||
$: isError = errors && errors.some(e => e.field && e.field === field.name) |
} |
||||
|
|
||||
$: isDatetime = field.type === "datetime" |
|
||||
</script> |
</script> |
||||
|
|
||||
<div class="uk-margin"> |
<label>{label}</label> |
||||
{#if !isCheckbox} |
<input |
||||
<label class="uk-form-label" for={field.name}>{field.label}</label> |
class="uk-input" |
||||
{/if} |
class:uk-form-danger={errors.length > 0} |
||||
<div class="uk-form-controls"> |
{type} |
||||
{#if isDropdown} |
{value} |
||||
<Select bind:value={record[field.name]}> |
on:input={handleInput} |
||||
<option value="" /> |
on:change={handleInput} /> |
||||
{#each field.typeOptions.values as val} |
|
||||
<option value={val}>{val}</option> |
|
||||
{/each} |
|
||||
</Select> |
|
||||
{:else if isText} |
|
||||
<input |
|
||||
class="uk-input" |
|
||||
class:uk-form-danger={isError} |
|
||||
id={field.name} |
|
||||
type="text" |
|
||||
bind:value={record[field.name]} /> |
|
||||
{:else if isNumber} |
|
||||
<input |
|
||||
class="uk-input" |
|
||||
class:uk-form-danger={isError} |
|
||||
type="number" |
|
||||
bind:value={record[field.name]} /> |
|
||||
{:else if isDatetime} |
|
||||
<input |
|
||||
class="uk-input" |
|
||||
class:uk-form-danger={isError} |
|
||||
type="date" |
|
||||
bind:value={record[field.name]} /> |
|
||||
{:else if isCheckbox} |
|
||||
<label> |
|
||||
<input |
|
||||
class="uk-checkbox" |
|
||||
class:uk-form-danger={isError} |
|
||||
type="checkbox" |
|
||||
bind:checked={record[field.name]} /> |
|
||||
{field.label} |
|
||||
</label> |
|
||||
{/if} |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|||||
@ -1,6 +1,6 @@ |
|||||
export { default as DeleteRecordModal } from "./DeleteRecord.svelte" |
export { default as DeleteRecordModal } from "./DeleteRecord.svelte" |
||||
export { default as CreateEditRecordModal } from "./CreateEditRecord.svelte" |
export { default as CreateEditRecordModal } from "./CreateEditRecord.svelte" |
||||
export { default as CreateEditModelModal } from "./CreateEditModel.svelte" |
export { default as CreateEditModelModal } from "./CreateEditModel/CreateEditModel.svelte" |
||||
export { default as CreateEditViewModal } from "./CreateEditView.svelte" |
export { default as CreateEditViewModal } from "./CreateEditView.svelte" |
||||
export { default as CreateDatabaseModal } from "./CreateDatabase.svelte" |
export { default as CreateDatabaseModal } from "./CreateDatabase.svelte" |
||||
export { default as CreateUserModal } from "./CreateUser.svelte" |
export { default as CreateUserModal } from "./CreateUser.svelte" |
||||
|
|||||
@ -1,4 +1,5 @@ |
|||||
"use strict";Object.defineProperty(exports, "__esModule", { value: true });Object.defineProperty(exports, "validateRecord", { enumerable: true, get: function get() {return _validateRecord.validateRecord;} });Object.defineProperty(exports, "events", { enumerable: true, get: function get() {return _events.events;} });Object.defineProperty(exports, "safeParseField", { enumerable: true, get: function get() {return _types.safeParseField;} });var _validateRecord = require("./records/validateRecord"); |
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports, "__esModule", { value: true });Object.defineProperty(exports, "validateRecord", { enumerable: true, get: function get() {return _validateRecord.validateRecord;} });Object.defineProperty(exports, "events", { enumerable: true, get: function get() {return _events.events;} });Object.defineProperty(exports, "safeParseField", { enumerable: true, get: function get() {return _types.safeParseField;} });Object.defineProperty(exports, "schemaValidator", { enumerable: true, get: function get() {return _schemaValidation["default"];} });var _validateRecord = require("./records/validateRecord"); |
||||
var _events = require("./common/events"); |
var _events = require("./common/events"); |
||||
var _types = require("./schema/types"); |
var _types = require("./schema/types"); |
||||
|
var _schemaValidation = _interopRequireDefault(require("./schemaValidation")); |
||||
//# sourceMappingURL=index.js.map
|
//# sourceMappingURL=index.js.map
|
||||
@ -1 +1 @@ |
|||||
{"version":3,"sources":["../src/index.js"],"names":[],"mappings":"ybAAA;AACA;AACA","sourcesContent":["export { validateRecord } from \"./records/validateRecord\";\nexport { events } from \"./common/events\";\nexport { safeParseField } from \"./schema/types\";"],"file":"index.js"} |
{"version":3,"sources":["../src/index.js"],"names":[],"mappings":"kpBAAA;AACA;AACA;AACA","sourcesContent":["export { validateRecord } from \"./records/validateRecord\";\nexport { events } from \"./common/events\";\nexport { safeParseField } from \"./schema/types\";\nexport { default as schemaValidator } from \"./schemaValidation\";"],"file":"index.js"} |
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,6 @@ |
|||||
|
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports, "__esModule", { value: true });exports["default"] = void 0;var _ajv = _interopRequireDefault(require("ajv")); |
||||
|
|
||||
|
var ajv = new _ajv["default"]();var _default = |
||||
|
|
||||
|
ajv;exports["default"] = _default; |
||||
|
//# sourceMappingURL=index.js.map
|
||||
@ -0,0 +1 @@ |
|||||
|
{"version":3,"sources":["../../src/schemaValidation/index.js"],"names":["ajv","Ajv"],"mappings":"4LAAA;;AAEA,IAAMA,GAAG,GAAG,IAAIC,eAAJ,EAAZ,C;;AAEeD,G","sourcesContent":["import Ajv from \"ajv\";\n\nconst ajv = new Ajv();\n\nexport default ajv;"],"file":"index.js"} |
||||
@ -1 +1 @@ |
|||||
../../../../node_modules/@babel/cli/bin/babel.js |
../@babel/cli/bin/babel.js |
||||
@ -1 +1 @@ |
|||||
../../../../node_modules/@babel/cli/bin/babel-external-helpers.js |
../@babel/cli/bin/babel-external-helpers.js |
||||
@ -1 +1 @@ |
|||||
../../../../node_modules/cross-env/dist/bin/cross-env.js |
../cross-env/dist/bin/cross-env.js |
||||
@ -1 +1 @@ |
|||||
../../../../node_modules/cross-env/dist/bin/cross-env-shell.js |
../cross-env/dist/bin/cross-env-shell.js |
||||
@ -1 +1 @@ |
|||||
../../../../node_modules/jest/bin/jest.js |
../jest/bin/jest.js |
||||
@ -1 +1 @@ |
|||||
../../../../node_modules/rimraf/bin.js |
../rimraf/bin.js |
||||
@ -1 +1 @@ |
|||||
../../../../../../../node_modules/@babel/parser/bin/babel-parser.js |
../@babel/parser/bin/babel-parser.js |
||||
@ -1,21 +0,0 @@ |
|||||
MIT License |
|
||||
|
|
||||
Copyright (c) Facebook, Inc. and its affiliates. |
|
||||
|
|
||||
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. |
|
||||
@ -1 +1 @@ |
|||||
{"version":3,"file":"ScriptTransformer.d.ts","sourceRoot":"","sources":["../src/ScriptTransformer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAaxC,OAAO,KAAK,EACV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rB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,GACjB,MAAM;IAkBT,yBAAyB,CAAC,UAAU,GAAG,OAAO,EAC5C,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,GACtC,UAAU;IACb,yBAAyB,CAAC,UAAU,GAAG,OAAO,EAC5C,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,GAC/C,OAAO,CAAC,UAAU,CAAC;IAsDtB;;OAEG;IAEH,OAAO,CAAC,gBAAgB;IAIxB,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO;CAQhD"} |
||||
@ -1 +1 @@ |
|||||
{"version":3,"file":"enhanceUnexpectedTokenMessage.d.ts","sourceRoot":"","sources":["../src/enhanceUnexpectedTokenMessage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,UAAU,kBAAmB,SAAQ,KAAK;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,CAAC,EAAE,kBAAkB,GACpB,kBAAkB,CAgBpB;AAED,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK,CA2B7D"} |
{"version":3,"file":"enhanceUnexpectedTokenMessage.d.ts","sourceRoot":"","sources":["../src/enhanceUnexpectedTokenMessage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,CAAC,OAAO,UAAU,6BAA6B,CAAC,CAAC,EAAE,KAAK,SA2B7D"} |
||||
@ -1 +1 @@ |
|||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,OAAO,IAAI,iBAAiB,EAC5B,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EACV,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,OAAO,IAAI,qBAAqB,EAChC,gBAAgB,EAChB,eAAe,EACf,iBAAiB,GAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,iCAAiC,CAAC"} |
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,OAAO,IAAI,qBAAqB,GACjC,MAAM,SAAS,CAAC"} |
||||
@ -1 +1 @@ |
|||||
{"version":3,"file":"shouldInstrument.d.ts","sourceRoot":"","sources":["../src/shouldInstrument.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAIxC,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAC;AAMrD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,QAAQ,EAAE,MAAM,CAAC,IAAI,EACrB,OAAO,EAAE,uBAAuB,EAChC,MAAM,EAAE,MAAM,CAAC,aAAa,GAC3B,OAAO,CA8ET"} |
{"version":3,"file":"shouldInstrument.d.ts","sourceRoot":"","sources":["../src/shouldInstrument.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAInC,OAAO,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAC;AAMhD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,QAAQ,EAAE,MAAM,CAAC,IAAI,EACrB,OAAO,EAAE,uBAAuB,EAChC,MAAM,EAAE,MAAM,CAAC,aAAa,GAC3B,OAAO,CA4ET"} |
||||
@ -1,35 +0,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. |
|
||||
*/ |
|
||||
import { Config } from '@jest/types'; |
|
||||
import { Options, TransformResult } from './types'; |
|
||||
export default class ScriptTransformer { |
|
||||
private _cache; |
|
||||
private _config; |
|
||||
private _transformCache; |
|
||||
private _transformConfigCache; |
|
||||
constructor(config: Config.ProjectConfig); |
|
||||
private _getCacheKey; |
|
||||
private _getFileCachePath; |
|
||||
private _getTransformPath; |
|
||||
private _getTransformer; |
|
||||
private _instrumentFile; |
|
||||
private _getRealPath; |
|
||||
preloadTransformer(filepath: Config.Path): void; |
|
||||
transformSource(filepath: Config.Path, content: string, instrument: boolean, supportsDynamicImport?: boolean, supportsStaticESM?: boolean): TransformResult; |
|
||||
private _transformAndBuildScript; |
|
||||
transform(filename: Config.Path, options: Options, fileSource?: string): TransformResult; |
|
||||
transformJson(filename: Config.Path, options: Options, fileSource: string): string; |
|
||||
requireAndTranspileModule<ModuleType = unknown>(moduleName: string, callback?: (module: ModuleType) => void): ModuleType; |
|
||||
requireAndTranspileModule<ModuleType = unknown>(moduleName: string, callback?: (module: ModuleType) => Promise<void>): Promise<ModuleType>; |
|
||||
/** |
|
||||
* @deprecated use `this.shouldTransform` instead |
|
||||
*/ |
|
||||
private _shouldTransform; |
|
||||
shouldTransform(filename: Config.Path): boolean; |
|
||||
} |
|
||||
export declare function createTranspilingRequire(config: Config.ProjectConfig): <TModuleType = unknown>(resolverPath: string, applyInteropRequireDefault?: boolean) => TModuleType; |
|
||||
//# sourceMappingURL=ScriptTransformer.d.ts.map
|
|
||||
@ -1,13 +0,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. |
|
||||
*/ |
|
||||
interface ErrorWithCodeFrame extends Error { |
|
||||
codeFrame?: string; |
|
||||
} |
|
||||
export default function handlePotentialSyntaxError(e: ErrorWithCodeFrame): ErrorWithCodeFrame; |
|
||||
export declare function enhanceUnexpectedTokenMessage(e: Error): Error; |
|
||||
export {}; |
|
||||
//# sourceMappingURL=enhanceUnexpectedTokenMessage.d.ts.map
|
|
||||
@ -1,11 +0,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. |
|
||||
*/ |
|
||||
export { default as ScriptTransformer, createTranspilingRequire, } from './ScriptTransformer'; |
|
||||
export { default as shouldInstrument } from './shouldInstrument'; |
|
||||
export { CacheKeyOptions, Transformer, ShouldInstrumentOptions, Options as TransformationOptions, TransformOptions, TransformResult, TransformedSource, } from './types'; |
|
||||
export { default as handlePotentialSyntaxError } from './enhanceUnexpectedTokenMessage'; |
|
||||
//# sourceMappingURL=index.d.ts.map
|
|
||||
@ -1,10 +0,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. |
|
||||
*/ |
|
||||
import { Config } from '@jest/types'; |
|
||||
import { ShouldInstrumentOptions } from './types'; |
|
||||
export default function shouldInstrument(filename: Config.Path, options: ShouldInstrumentOptions, config: Config.ProjectConfig): boolean; |
|
||||
//# sourceMappingURL=shouldInstrument.d.ts.map
|
|
||||
@ -1,43 +0,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. |
|
||||
*/ |
|
||||
import { RawSourceMap } from 'source-map'; |
|
||||
import { Config, TransformTypes } from '@jest/types'; |
|
||||
export declare type ShouldInstrumentOptions = Pick<Config.GlobalConfig, 'collectCoverage' | 'collectCoverageFrom' | 'collectCoverageOnlyFrom' | 'coverageProvider'> & { |
|
||||
changedFiles?: Set<Config.Path>; |
|
||||
}; |
|
||||
export declare type Options = ShouldInstrumentOptions & Partial<{ |
|
||||
isCoreModule: boolean; |
|
||||
isInternalModule: boolean; |
|
||||
supportsDynamicImport: boolean; |
|
||||
supportsStaticESM: boolean; |
|
||||
}>; |
|
||||
declare type SourceMapWithVersion = Pick<RawSourceMap, Exclude<keyof RawSourceMap, 'version'>>; |
|
||||
interface FixedRawSourceMap extends SourceMapWithVersion { |
|
||||
version: number; |
|
||||
} |
|
||||
export declare type TransformedSource = { |
|
||||
code: string; |
|
||||
map?: FixedRawSourceMap | string | null; |
|
||||
} | string; |
|
||||
export declare type TransformResult = TransformTypes.TransformResult; |
|
||||
export interface TransformOptions { |
|
||||
instrument: boolean; |
|
||||
supportsDynamicImport?: boolean; |
|
||||
supportsStaticESM?: boolean; |
|
||||
} |
|
||||
export interface CacheKeyOptions extends TransformOptions { |
|
||||
config: Config.ProjectConfig; |
|
||||
rootDir: string; |
|
||||
} |
|
||||
export interface Transformer { |
|
||||
canInstrument?: boolean; |
|
||||
createTransformer?: (options?: any) => Transformer; |
|
||||
getCacheKey?: (fileData: string, filePath: Config.Path, configStr: string, options: CacheKeyOptions) => string; |
|
||||
process: (sourceText: string, sourcePath: Config.Path, config: Config.ProjectConfig, options?: TransformOptions) => TransformedSource; |
|
||||
} |
|
||||
export {}; |
|
||||
//# sourceMappingURL=types.d.ts.map
|
|
||||
@ -1 +1 @@ |
|||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAA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E,OAAO,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,aAAa,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAClC,2BAA2B,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC/B,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CACzB,CAAC;AAEF,oBAAY,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,CAAC,SAAS,GAAG,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AAE9E,oBAAY,SAAS,GAAG;IACtB,UAAU,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"} |
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||||
{"version":3,"file":"Global.d.ts","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,uBAAu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QAAS,SAAQ,YAAY;IAC5C,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;CACpB;AAGD,MAAM,WAAW,MAAO,SAAQ,MAAM,CAAC,MAAM;IAC3C,EAAE,EAAE,YAAY,CAAC;IACjB,IAAI,EAAE,YAAY,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG;QAAC,UAAU,CAAC,EAAE,gBAAgB,CAAA;KAAC,CAAC;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,YAAY,CAAC;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,YAAY,EAAE,eAAe,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC;CACvB"} |
||||
@ -1,31 +0,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. |
|
||||
*/ |
|
||||
export declare type Milliseconds = number; |
|
||||
declare type Status = 'passed' | 'failed' | 'skipped' | 'pending' | 'todo' | 'disabled'; |
|
||||
declare type Callsite = { |
|
||||
column: number; |
|
||||
line: number; |
|
||||
}; |
|
||||
export declare type AssertionResult = { |
|
||||
ancestorTitles: Array<string>; |
|
||||
duration?: Milliseconds | null; |
|
||||
failureMessages: Array<string>; |
|
||||
fullName: string; |
|
||||
invocations?: number; |
|
||||
location?: Callsite | null; |
|
||||
numPassingAsserts: number; |
|
||||
status: Status; |
|
||||
title: string; |
|
||||
}; |
|
||||
export declare type SerializableError = { |
|
||||
code?: unknown; |
|
||||
message: string; |
|
||||
stack: string | null | undefined; |
|
||||
type?: string; |
|
||||
}; |
|
||||
export {}; |
|
||||
//# sourceMappingURL=TestResult.d.ts.map
|
|
||||
@ -1 +0,0 @@ |
|||||
{"version":3,"file":"TestResult.d.ts","sourceRoot":"","sources":["../src/TestResult.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAY,YAAY,GAAG,MAAM,CAAC;AAElC,aAAK,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAEhF,aAAK,QAAQ,GAAG;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAGF,oBAAY,eAAe,GAAG;IAC5B,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"} |
|
||||
@ -1 +0,0 @@ |
|||||
'use strict'; |
|
||||
@ -1,13 +0,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. |
|
||||
*/ |
|
||||
export declare type TransformResult = { |
|
||||
code: string; |
|
||||
originalCode: string; |
|
||||
mapCoverage: boolean; |
|
||||
sourceMapPath: string | null; |
|
||||
}; |
|
||||
//# sourceMappingURL=Transform.d.ts.map
|
|
||||
@ -1 +0,0 @@ |
|||||
{"version":3,"file":"Transform.d.ts","sourceRoot":"","sources":["../src/Transform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC"} |
|
||||
@ -1 +0,0 @@ |
|||||
'use strict'; |
|
||||
@ -1 +1 @@ |
|||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,KAAK,UAAU,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,KAAK,cAAc,MAAM,aAAa,CAAC;AAEnD,YAAY,EAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAC,CAAC"} |
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC"} |
||||
@ -1 +1,43 @@ |
|||||
'use strict'; |
'use strict'; |
||||
|
|
||||
|
Object.defineProperty(exports, '__esModule', { |
||||
|
value: true |
||||
|
}); |
||||
|
exports.Global = exports.Config = exports.Circus = void 0; |
||||
|
|
||||
|
var Circus = _interopRequireWildcard(require('./Circus')); |
||||
|
|
||||
|
exports.Circus = Circus; |
||||
|
|
||||
|
var Config = _interopRequireWildcard(require('./Config')); |
||||
|
|
||||
|
exports.Config = Config; |
||||
|
|
||||
|
var Global = _interopRequireWildcard(require('./Global')); |
||||
|
|
||||
|
exports.Global = Global; |
||||
|
|
||||
|
function _interopRequireWildcard(obj) { |
||||
|
if (obj && obj.__esModule) { |
||||
|
return obj; |
||||
|
} else { |
||||
|
var newObj = {}; |
||||
|
if (obj != null) { |
||||
|
for (var key in obj) { |
||||
|
if (Object.prototype.hasOwnProperty.call(obj, key)) { |
||||
|
var desc = |
||||
|
Object.defineProperty && Object.getOwnPropertyDescriptor |
||||
|
? Object.getOwnPropertyDescriptor(obj, key) |
||||
|
: {}; |
||||
|
if (desc.get || desc.set) { |
||||
|
Object.defineProperty(newObj, key, desc); |
||||
|
} else { |
||||
|
newObj[key] = obj[key]; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
newObj.default = obj; |
||||
|
return newObj; |
||||
|
} |
||||
|
} |
||||
|
|||||
@ -1,178 +0,0 @@ |
|||||
/// <reference types="node" />
|
|
||||
/** |
|
||||
* 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 * as Global from './Global'; |
|
||||
declare type Process = NodeJS.Process; |
|
||||
export declare type DoneFn = Global.DoneFn; |
|
||||
export declare type BlockFn = Global.BlockFn; |
|
||||
export declare type BlockName = Global.BlockName; |
|
||||
export declare type BlockMode = void | 'skip' | 'only' | 'todo'; |
|
||||
export declare type TestMode = BlockMode; |
|
||||
export declare type TestName = Global.TestName; |
|
||||
export declare type TestFn = Global.TestFn; |
|
||||
export declare type HookFn = (done?: DoneFn) => Promise<any> | null | undefined; |
|
||||
export declare type AsyncFn = TestFn | HookFn; |
|
||||
export declare type SharedHookType = 'afterAll' | 'beforeAll'; |
|
||||
export declare type HookType = SharedHookType | 'afterEach' | 'beforeEach'; |
|
||||
export declare type TestContext = Record<string, any>; |
|
||||
export declare type Exception = any; |
|
||||
export declare type FormattedError = string; |
|
||||
export declare type Hook = { |
|
||||
asyncError: Error; |
|
||||
fn: HookFn; |
|
||||
type: HookType; |
|
||||
parent: DescribeBlock; |
|
||||
timeout: number | undefined | null; |
|
||||
}; |
|
||||
export interface EventHandler { |
|
||||
(event: AsyncEvent, state: State): void | Promise<void>; |
|
||||
(event: SyncEvent, state: State): void; |
|
||||
} |
|
||||
export declare type Event = SyncEvent | AsyncEvent; |
|
||||
export declare type SyncEvent = { |
|
||||
asyncError: Error; |
|
||||
mode: BlockMode; |
|
||||
name: 'start_describe_definition'; |
|
||||
blockName: BlockName; |
|
||||
} | { |
|
||||
mode: BlockMode; |
|
||||
name: 'finish_describe_definition'; |
|
||||
blockName: BlockName; |
|
||||
} | { |
|
||||
asyncError: Error; |
|
||||
name: 'add_hook'; |
|
||||
hookType: HookType; |
|
||||
fn: HookFn; |
|
||||
timeout: number | undefined; |
|
||||
} | { |
|
||||
asyncError: Error; |
|
||||
name: 'add_test'; |
|
||||
testName: TestName; |
|
||||
fn?: TestFn; |
|
||||
mode?: TestMode; |
|
||||
timeout: number | undefined; |
|
||||
} | { |
|
||||
name: 'error'; |
|
||||
error: Exception; |
|
||||
}; |
|
||||
export declare type AsyncEvent = { |
|
||||
name: 'setup'; |
|
||||
testNamePattern?: string; |
|
||||
parentProcess: Process; |
|
||||
} | { |
|
||||
name: 'include_test_location_in_result'; |
|
||||
} | { |
|
||||
name: 'hook_start'; |
|
||||
hook: Hook; |
|
||||
} | { |
|
||||
name: 'hook_success'; |
|
||||
describeBlock?: DescribeBlock; |
|
||||
test?: TestEntry; |
|
||||
hook: Hook; |
|
||||
} | { |
|
||||
name: 'hook_failure'; |
|
||||
error: string | Exception; |
|
||||
describeBlock?: DescribeBlock; |
|
||||
test?: TestEntry; |
|
||||
hook: Hook; |
|
||||
} | { |
|
||||
name: 'test_fn_start'; |
|
||||
test: TestEntry; |
|
||||
} | { |
|
||||
name: 'test_fn_success'; |
|
||||
test: TestEntry; |
|
||||
} | { |
|
||||
name: 'test_fn_failure'; |
|
||||
error: Exception; |
|
||||
test: TestEntry; |
|
||||
} | { |
|
||||
name: 'test_retry'; |
|
||||
test: TestEntry; |
|
||||
} | { |
|
||||
name: 'test_start'; |
|
||||
test: TestEntry; |
|
||||
} | { |
|
||||
name: 'test_skip'; |
|
||||
test: TestEntry; |
|
||||
} | { |
|
||||
name: 'test_todo'; |
|
||||
test: TestEntry; |
|
||||
} | { |
|
||||
name: 'test_done'; |
|
||||
test: TestEntry; |
|
||||
} | { |
|
||||
name: 'run_describe_start'; |
|
||||
describeBlock: DescribeBlock; |
|
||||
} | { |
|
||||
name: 'run_describe_finish'; |
|
||||
describeBlock: DescribeBlock; |
|
||||
} | { |
|
||||
name: 'run_start'; |
|
||||
} | { |
|
||||
name: 'run_finish'; |
|
||||
} | { |
|
||||
name: 'teardown'; |
|
||||
}; |
|
||||
export declare type TestStatus = 'skip' | 'done' | 'todo'; |
|
||||
export declare type TestResult = { |
|
||||
duration?: number | null; |
|
||||
errors: Array<FormattedError>; |
|
||||
invocations: number; |
|
||||
status: TestStatus; |
|
||||
location?: { |
|
||||
column: number; |
|
||||
line: number; |
|
||||
} | null; |
|
||||
testPath: Array<TestName | BlockName>; |
|
||||
}; |
|
||||
export declare type RunResult = { |
|
||||
unhandledErrors: Array<FormattedError>; |
|
||||
testResults: TestResults; |
|
||||
}; |
|
||||
export declare type TestResults = Array<TestResult>; |
|
||||
export declare type GlobalErrorHandlers = { |
|
||||
uncaughtException: Array<(exception: Exception) => void>; |
|
||||
unhandledRejection: Array<(exception: Exception, promise: Promise<any>) => void>; |
|
||||
}; |
|
||||
export declare type State = { |
|
||||
currentDescribeBlock: DescribeBlock; |
|
||||
currentlyRunningTest?: TestEntry | null; |
|
||||
expand?: boolean; |
|
||||
hasFocusedTests: boolean; |
|
||||
originalGlobalErrorHandlers?: GlobalErrorHandlers; |
|
||||
parentProcess: Process | null; |
|
||||
rootDescribeBlock: DescribeBlock; |
|
||||
testNamePattern?: RegExp | null; |
|
||||
testTimeout: number; |
|
||||
unhandledErrors: Array<Exception>; |
|
||||
includeTestLocationInResult: boolean; |
|
||||
}; |
|
||||
export declare type DescribeBlock = { |
|
||||
children: Array<DescribeBlock>; |
|
||||
hooks: Array<Hook>; |
|
||||
mode: BlockMode; |
|
||||
name: BlockName; |
|
||||
parent?: DescribeBlock; |
|
||||
tests: Array<TestEntry>; |
|
||||
}; |
|
||||
export declare type TestError = Exception | Array<[Exception | undefined, Exception]>; |
|
||||
export declare type TestEntry = { |
|
||||
asyncError: Exception; |
|
||||
errors: TestError; |
|
||||
fn?: TestFn; |
|
||||
invocations: number; |
|
||||
mode: TestMode; |
|
||||
name: TestName; |
|
||||
parent: DescribeBlock; |
|
||||
startedAt?: number | null; |
|
||||
duration?: number | null; |
|
||||
status?: TestStatus | null; |
|
||||
timeout?: number; |
|
||||
}; |
|
||||
export {}; |
|
||||
//# sourceMappingURL=Circus.d.ts.map
|
|
||||
@ -1,421 +0,0 @@ |
|||||
/// <reference types="node" />
|
|
||||
/** |
|
||||
* 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 { Arguments } from 'yargs'; |
|
||||
import { ReportOptions } from 'istanbul-reports'; |
|
||||
import chalk = require('chalk'); |
|
||||
declare type CoverageProvider = 'babel' | 'v8'; |
|
||||
export declare type Path = string; |
|
||||
export declare type Glob = string; |
|
||||
export declare type HasteConfig = { |
|
||||
computeSha1?: boolean; |
|
||||
defaultPlatform?: string | null; |
|
||||
hasteImplModulePath?: string; |
|
||||
platforms?: Array<string>; |
|
||||
providesModuleNodeModules: Array<string>; |
|
||||
throwOnModuleCollision?: boolean; |
|
||||
}; |
|
||||
export declare type ReporterConfig = [string, Record<string, unknown>]; |
|
||||
export declare type TransformerConfig = [string, Record<string, unknown>]; |
|
||||
export interface ConfigGlobals { |
|
||||
[K: string]: unknown; |
|
||||
} |
|
||||
export declare type DefaultOptions = { |
|
||||
automock: boolean; |
|
||||
bail: number; |
|
||||
browser: boolean; |
|
||||
cache: boolean; |
|
||||
cacheDirectory: Path; |
|
||||
changedFilesWithAncestor: boolean; |
|
||||
clearMocks: boolean; |
|
||||
collectCoverage: boolean; |
|
||||
coveragePathIgnorePatterns: Array<string>; |
|
||||
coverageReporters: Array<string | [string, any]>; |
|
||||
coverageProvider: CoverageProvider; |
|
||||
errorOnDeprecated: boolean; |
|
||||
expand: boolean; |
|
||||
forceCoverageMatch: Array<Glob>; |
|
||||
globals: ConfigGlobals; |
|
||||
haste: HasteConfig; |
|
||||
maxConcurrency: number; |
|
||||
maxWorkers: number | string; |
|
||||
moduleDirectories: Array<string>; |
|
||||
moduleFileExtensions: Array<string>; |
|
||||
moduleNameMapper: Record<string, string | Array<string>>; |
|
||||
modulePathIgnorePatterns: Array<string>; |
|
||||
noStackTrace: boolean; |
|
||||
notify: boolean; |
|
||||
notifyMode: NotifyMode; |
|
||||
prettierPath: string; |
|
||||
resetMocks: boolean; |
|
||||
resetModules: boolean; |
|
||||
restoreMocks: boolean; |
|
||||
roots: Array<Path>; |
|
||||
runTestsByPath: boolean; |
|
||||
runner: 'jest-runner'; |
|
||||
setupFiles: Array<Path>; |
|
||||
setupFilesAfterEnv: Array<Path>; |
|
||||
skipFilter: boolean; |
|
||||
snapshotSerializers: Array<Path>; |
|
||||
testEnvironment: string; |
|
||||
testEnvironmentOptions: Record<string, any>; |
|
||||
testFailureExitCode: string | number; |
|
||||
testLocationInResults: boolean; |
|
||||
testMatch: Array<Glob>; |
|
||||
testPathIgnorePatterns: Array<string>; |
|
||||
testRegex: Array<string>; |
|
||||
testRunner: string; |
|
||||
testSequencer: string; |
|
||||
testURL: string; |
|
||||
timers: 'real' | 'fake'; |
|
||||
transformIgnorePatterns: Array<Glob>; |
|
||||
useStderr: boolean; |
|
||||
watch: boolean; |
|
||||
watchPathIgnorePatterns: Array<string>; |
|
||||
watchman: boolean; |
|
||||
}; |
|
||||
export declare type DisplayName = string | { |
|
||||
name: string; |
|
||||
color: typeof chalk.Color; |
|
||||
}; |
|
||||
export declare type InitialOptionsWithRootDir = InitialOptions & Required<Pick<InitialOptions, 'rootDir'>>; |
|
||||
export declare type InitialOptions = Partial<{ |
|
||||
automock: boolean; |
|
||||
bail: boolean | number; |
|
||||
browser: boolean; |
|
||||
cache: boolean; |
|
||||
cacheDirectory: Path; |
|
||||
clearMocks: boolean; |
|
||||
changedFilesWithAncestor: boolean; |
|
||||
changedSince: string; |
|
||||
collectCoverage: boolean; |
|
||||
collectCoverageFrom: Array<Glob>; |
|
||||
collectCoverageOnlyFrom: { |
|
||||
[key: string]: boolean; |
|
||||
}; |
|
||||
coverageDirectory: string; |
|
||||
coveragePathIgnorePatterns: Array<string>; |
|
||||
coverageProvider: CoverageProvider; |
|
||||
coverageReporters: Array<string>; |
|
||||
coverageThreshold: { |
|
||||
global: { |
|
||||
[key: string]: number; |
|
||||
}; |
|
||||
}; |
|
||||
dependencyExtractor: string; |
|
||||
detectLeaks: boolean; |
|
||||
detectOpenHandles: boolean; |
|
||||
displayName: DisplayName; |
|
||||
expand: boolean; |
|
||||
extraGlobals: Array<string>; |
|
||||
filter: Path; |
|
||||
findRelatedTests: boolean; |
|
||||
forceCoverageMatch: Array<Glob>; |
|
||||
forceExit: boolean; |
|
||||
json: boolean; |
|
||||
globals: ConfigGlobals; |
|
||||
globalSetup: string | null | undefined; |
|
||||
globalTeardown: string | null | undefined; |
|
||||
haste: HasteConfig; |
|
||||
reporters: Array<string | ReporterConfig>; |
|
||||
logHeapUsage: boolean; |
|
||||
lastCommit: boolean; |
|
||||
listTests: boolean; |
|
||||
mapCoverage: boolean; |
|
||||
maxConcurrency: number; |
|
||||
maxWorkers: number | string; |
|
||||
moduleDirectories: Array<string>; |
|
||||
moduleFileExtensions: Array<string>; |
|
||||
moduleLoader: Path; |
|
||||
moduleNameMapper: { |
|
||||
[key: string]: string | Array<string>; |
|
||||
}; |
|
||||
modulePathIgnorePatterns: Array<string>; |
|
||||
modulePaths: Array<string>; |
|
||||
name: string; |
|
||||
noStackTrace: boolean; |
|
||||
notify: boolean; |
|
||||
notifyMode: string; |
|
||||
onlyChanged: boolean; |
|
||||
outputFile: Path; |
|
||||
passWithNoTests: boolean; |
|
||||
preprocessorIgnorePatterns: Array<Glob>; |
|
||||
preset: string | null | undefined; |
|
||||
prettierPath: string | null | undefined; |
|
||||
projects: Array<Glob>; |
|
||||
replname: string | null | undefined; |
|
||||
resetMocks: boolean; |
|
||||
resetModules: boolean; |
|
||||
resolver: Path | null | undefined; |
|
||||
restoreMocks: boolean; |
|
||||
rootDir: Path; |
|
||||
roots: Array<Path>; |
|
||||
runner: string; |
|
||||
runTestsByPath: boolean; |
|
||||
scriptPreprocessor: string; |
|
||||
setupFiles: Array<Path>; |
|
||||
setupTestFrameworkScriptFile: Path; |
|
||||
setupFilesAfterEnv: Array<Path>; |
|
||||
silent: boolean; |
|
||||
skipFilter: boolean; |
|
||||
skipNodeResolution: boolean; |
|
||||
snapshotResolver: Path; |
|
||||
snapshotSerializers: Array<Path>; |
|
||||
errorOnDeprecated: boolean; |
|
||||
testEnvironment: string; |
|
||||
testEnvironmentOptions: Record<string, any>; |
|
||||
testFailureExitCode: string | number; |
|
||||
testLocationInResults: boolean; |
|
||||
testMatch: Array<Glob>; |
|
||||
testNamePattern: string; |
|
||||
testPathDirs: Array<Path>; |
|
||||
testPathIgnorePatterns: Array<string>; |
|
||||
testRegex: string | Array<string>; |
|
||||
testResultsProcessor: string; |
|
||||
testRunner: string; |
|
||||
testSequencer: string; |
|
||||
testURL: string; |
|
||||
testTimeout: number; |
|
||||
timers: 'real' | 'fake'; |
|
||||
transform: { |
|
||||
[regex: string]: Path | TransformerConfig; |
|
||||
}; |
|
||||
transformIgnorePatterns: Array<Glob>; |
|
||||
watchPathIgnorePatterns: Array<string>; |
|
||||
unmockedModulePathPatterns: Array<string>; |
|
||||
updateSnapshot: boolean; |
|
||||
useStderr: boolean; |
|
||||
verbose?: boolean; |
|
||||
watch: boolean; |
|
||||
watchAll: boolean; |
|
||||
watchman: boolean; |
|
||||
watchPlugins: Array<string | [string, Record<string, any>]>; |
|
||||
}>; |
|
||||
export declare type SnapshotUpdateState = 'all' | 'new' | 'none'; |
|
||||
declare type NotifyMode = 'always' | 'failure' | 'success' | 'change' | 'success-change' | 'failure-change'; |
|
||||
export declare type CoverageThresholdValue = { |
|
||||
branches?: number; |
|
||||
functions?: number; |
|
||||
lines?: number; |
|
||||
statements?: number; |
|
||||
}; |
|
||||
declare type CoverageThreshold = { |
|
||||
[path: string]: CoverageThresholdValue; |
|
||||
global: CoverageThresholdValue; |
|
||||
}; |
|
||||
export declare type GlobalConfig = { |
|
||||
bail: number; |
|
||||
changedSince?: string; |
|
||||
changedFilesWithAncestor: boolean; |
|
||||
collectCoverage: boolean; |
|
||||
collectCoverageFrom: Array<Glob>; |
|
||||
collectCoverageOnlyFrom?: { |
|
||||
[key: string]: boolean; |
|
||||
}; |
|
||||
coverageDirectory: string; |
|
||||
coveragePathIgnorePatterns?: Array<string>; |
|
||||
coverageProvider: CoverageProvider; |
|
||||
coverageReporters: Array<keyof ReportOptions | [keyof ReportOptions, any]>; |
|
||||
coverageThreshold?: CoverageThreshold; |
|
||||
detectLeaks: boolean; |
|
||||
detectOpenHandles: boolean; |
|
||||
enabledTestsMap?: { |
|
||||
[key: string]: { |
|
||||
[key: string]: boolean; |
|
||||
}; |
|
||||
}; |
|
||||
expand: boolean; |
|
||||
filter?: Path; |
|
||||
findRelatedTests: boolean; |
|
||||
forceExit: boolean; |
|
||||
json: boolean; |
|
||||
globalSetup?: string; |
|
||||
globalTeardown?: string; |
|
||||
lastCommit: boolean; |
|
||||
logHeapUsage: boolean; |
|
||||
listTests: boolean; |
|
||||
maxConcurrency: number; |
|
||||
maxWorkers: number; |
|
||||
noStackTrace: boolean; |
|
||||
nonFlagArgs: Array<string>; |
|
||||
noSCM?: boolean; |
|
||||
notify: boolean; |
|
||||
notifyMode: NotifyMode; |
|
||||
outputFile?: Path; |
|
||||
onlyChanged: boolean; |
|
||||
onlyFailures: boolean; |
|
||||
passWithNoTests: boolean; |
|
||||
projects: Array<Glob>; |
|
||||
replname?: string; |
|
||||
reporters?: Array<string | ReporterConfig>; |
|
||||
runTestsByPath: boolean; |
|
||||
rootDir: Path; |
|
||||
silent?: boolean; |
|
||||
skipFilter: boolean; |
|
||||
errorOnDeprecated: boolean; |
|
||||
testFailureExitCode: number; |
|
||||
testNamePattern?: string; |
|
||||
testPathPattern: string; |
|
||||
testResultsProcessor?: string; |
|
||||
testSequencer: string; |
|
||||
testTimeout?: number; |
|
||||
updateSnapshot: SnapshotUpdateState; |
|
||||
useStderr: boolean; |
|
||||
verbose?: boolean; |
|
||||
watch: boolean; |
|
||||
watchAll: boolean; |
|
||||
watchman: boolean; |
|
||||
watchPlugins?: Array<{ |
|
||||
path: string; |
|
||||
config: Record<string, any>; |
|
||||
}> | null; |
|
||||
}; |
|
||||
export declare type ProjectConfig = { |
|
||||
automock: boolean; |
|
||||
browser: boolean; |
|
||||
cache: boolean; |
|
||||
cacheDirectory: Path; |
|
||||
clearMocks: boolean; |
|
||||
coveragePathIgnorePatterns: Array<string>; |
|
||||
cwd: Path; |
|
||||
dependencyExtractor?: string; |
|
||||
detectLeaks: boolean; |
|
||||
detectOpenHandles: boolean; |
|
||||
displayName?: DisplayName; |
|
||||
errorOnDeprecated: boolean; |
|
||||
extraGlobals: Array<keyof NodeJS.Global>; |
|
||||
filter?: Path; |
|
||||
forceCoverageMatch: Array<Glob>; |
|
||||
globalSetup?: string; |
|
||||
globalTeardown?: string; |
|
||||
globals: ConfigGlobals; |
|
||||
haste: HasteConfig; |
|
||||
moduleDirectories: Array<string>; |
|
||||
moduleFileExtensions: Array<string>; |
|
||||
moduleLoader?: Path; |
|
||||
moduleNameMapper: Array<[string, string]>; |
|
||||
modulePathIgnorePatterns: Array<string>; |
|
||||
modulePaths?: Array<string>; |
|
||||
name: string; |
|
||||
prettierPath: string; |
|
||||
resetMocks: boolean; |
|
||||
resetModules: boolean; |
|
||||
resolver?: Path; |
|
||||
restoreMocks: boolean; |
|
||||
rootDir: Path; |
|
||||
roots: Array<Path>; |
|
||||
runner: string; |
|
||||
setupFiles: Array<Path>; |
|
||||
setupFilesAfterEnv: Array<Path>; |
|
||||
skipFilter: boolean; |
|
||||
skipNodeResolution?: boolean; |
|
||||
snapshotResolver?: Path; |
|
||||
snapshotSerializers: Array<Path>; |
|
||||
testEnvironment: string; |
|
||||
testEnvironmentOptions: Record<string, any>; |
|
||||
testMatch: Array<Glob>; |
|
||||
testLocationInResults: boolean; |
|
||||
testPathIgnorePatterns: Array<string>; |
|
||||
testRegex: Array<string | RegExp>; |
|
||||
testRunner: string; |
|
||||
testURL: string; |
|
||||
timers: 'real' | 'fake'; |
|
||||
transform: Array<[string, Path, Record<string, unknown>]>; |
|
||||
transformIgnorePatterns: Array<Glob>; |
|
||||
watchPathIgnorePatterns: Array<string>; |
|
||||
unmockedModulePathPatterns?: Array<string>; |
|
||||
}; |
|
||||
export declare type Argv = Arguments<Partial<{ |
|
||||
all: boolean; |
|
||||
automock: boolean; |
|
||||
bail: boolean | number; |
|
||||
browser: boolean; |
|
||||
cache: boolean; |
|
||||
cacheDirectory: string; |
|
||||
changedFilesWithAncestor: boolean; |
|
||||
changedSince: string; |
|
||||
ci: boolean; |
|
||||
clearCache: boolean; |
|
||||
clearMocks: boolean; |
|
||||
collectCoverage: boolean; |
|
||||
collectCoverageFrom: string; |
|
||||
collectCoverageOnlyFrom: Array<string>; |
|
||||
color: boolean; |
|
||||
colors: boolean; |
|
||||
config: string; |
|
||||
coverage: boolean; |
|
||||
coverageDirectory: string; |
|
||||
coveragePathIgnorePatterns: Array<string>; |
|
||||
coverageReporters: Array<string>; |
|
||||
coverageThreshold: string; |
|
||||
debug: boolean; |
|
||||
env: string; |
|
||||
expand: boolean; |
|
||||
findRelatedTests: boolean; |
|
||||
forceExit: boolean; |
|
||||
globals: string; |
|
||||
globalSetup: string | null | undefined; |
|
||||
globalTeardown: string | null | undefined; |
|
||||
haste: string; |
|
||||
init: boolean; |
|
||||
json: boolean; |
|
||||
lastCommit: boolean; |
|
||||
logHeapUsage: boolean; |
|
||||
maxWorkers: number | string; |
|
||||
moduleDirectories: Array<string>; |
|
||||
moduleFileExtensions: Array<string>; |
|
||||
moduleNameMapper: string; |
|
||||
modulePathIgnorePatterns: Array<string>; |
|
||||
modulePaths: Array<string>; |
|
||||
noStackTrace: boolean; |
|
||||
notify: boolean; |
|
||||
notifyMode: string; |
|
||||
onlyChanged: boolean; |
|
||||
outputFile: string; |
|
||||
preset: string | null | undefined; |
|
||||
projects: Array<string>; |
|
||||
prettierPath: string | null | undefined; |
|
||||
resetMocks: boolean; |
|
||||
resetModules: boolean; |
|
||||
resolver: string | null | undefined; |
|
||||
restoreMocks: boolean; |
|
||||
rootDir: string; |
|
||||
roots: Array<string>; |
|
||||
runInBand: boolean; |
|
||||
setupFiles: Array<string>; |
|
||||
setupFilesAfterEnv: Array<string>; |
|
||||
showConfig: boolean; |
|
||||
silent: boolean; |
|
||||
snapshotSerializers: Array<string>; |
|
||||
testEnvironment: string; |
|
||||
testFailureExitCode: string | null | undefined; |
|
||||
testMatch: Array<string>; |
|
||||
testNamePattern: string; |
|
||||
testPathIgnorePatterns: Array<string>; |
|
||||
testPathPattern: Array<string>; |
|
||||
testRegex: string | Array<string>; |
|
||||
testResultsProcessor: string; |
|
||||
testRunner: string; |
|
||||
testSequencer: string; |
|
||||
testURL: string; |
|
||||
testTimeout: number | null | undefined; |
|
||||
timers: string; |
|
||||
transform: string; |
|
||||
transformIgnorePatterns: Array<string>; |
|
||||
unmockedModulePathPatterns: Array<string> | null | undefined; |
|
||||
updateSnapshot: boolean; |
|
||||
useStderr: boolean; |
|
||||
verbose: boolean; |
|
||||
version: boolean; |
|
||||
watch: boolean; |
|
||||
watchAll: boolean; |
|
||||
watchman: boolean; |
|
||||
watchPathIgnorePatterns: Array<string>; |
|
||||
}>>; |
|
||||
export {}; |
|
||||
//# sourceMappingURL=Config.d.ts.map
|
|
||||
@ -1,78 +0,0 @@ |
|||||
/// <reference types="node" />
|
|
||||
/** |
|
||||
* 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 { CoverageMapData } from 'istanbul-lib-coverage'; |
|
||||
export declare type DoneFn = (reason?: string | Error) => void; |
|
||||
export declare type TestName = string; |
|
||||
export declare type TestFn = (done?: DoneFn) => Promise<any> | void | undefined; |
|
||||
export declare type BlockFn = () => void; |
|
||||
export declare type BlockName = string; |
|
||||
export declare type Col = unknown; |
|
||||
export declare type Row = Array<Col>; |
|
||||
export declare type Table = Array<Row>; |
|
||||
export declare type ArrayTable = Table | Row; |
|
||||
export declare type TemplateTable = TemplateStringsArray; |
|
||||
export declare type TemplateData = Array<unknown>; |
|
||||
export declare type EachTable = ArrayTable | TemplateTable; |
|
||||
export declare type EachTestFn = (...args: Array<any>) => Promise<any> | void | undefined; |
|
||||
declare type Jasmine = { |
|
||||
_DEFAULT_TIMEOUT_INTERVAL?: number; |
|
||||
addMatchers: Function; |
|
||||
}; |
|
||||
declare type Each = (table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn, timeout?: number) => void; |
|
||||
export interface ItBase { |
|
||||
(testName: TestName, fn: TestFn, timeout?: number): void; |
|
||||
each: Each; |
|
||||
} |
|
||||
export interface It extends ItBase { |
|
||||
only: ItBase; |
|
||||
skip: ItBase; |
|
||||
todo: (testName: TestName, ...rest: Array<any>) => void; |
|
||||
} |
|
||||
export interface ItConcurrentBase { |
|
||||
(testName: string, testFn: () => Promise<any>, timeout?: number): void; |
|
||||
} |
|
||||
export interface ItConcurrentExtended extends ItConcurrentBase { |
|
||||
only: ItConcurrentBase; |
|
||||
skip: ItConcurrentBase; |
|
||||
} |
|
||||
export interface ItConcurrent extends It { |
|
||||
concurrent: ItConcurrentExtended; |
|
||||
} |
|
||||
export interface DescribeBase { |
|
||||
(blockName: BlockName, blockFn: BlockFn): void; |
|
||||
each: Each; |
|
||||
} |
|
||||
export interface Describe extends DescribeBase { |
|
||||
only: DescribeBase; |
|
||||
skip: DescribeBase; |
|
||||
} |
|
||||
export interface GlobalAdditions { |
|
||||
it: ItConcurrent; |
|
||||
test: ItConcurrent; |
|
||||
fit: ItBase & { |
|
||||
concurrent?: ItConcurrentBase; |
|
||||
}; |
|
||||
xit: ItBase; |
|
||||
xtest: ItBase; |
|
||||
describe: Describe; |
|
||||
xdescribe: DescribeBase; |
|
||||
fdescribe: DescribeBase; |
|
||||
__coverage__: CoverageMapData; |
|
||||
jasmine: Jasmine; |
|
||||
fail: () => void; |
|
||||
pending: () => void; |
|
||||
spyOn: () => void; |
|
||||
spyOnProperty: () => void; |
|
||||
} |
|
||||
declare type NodeGlobalWithoutAdditions = Pick<NodeJS.Global, Exclude<keyof NodeJS.Global, keyof GlobalAdditions>>; |
|
||||
export interface Global extends GlobalAdditions, NodeGlobalWithoutAdditions { |
|
||||
[extras: string]: any; |
|
||||
} |
|
||||
export {}; |
|
||||
//# sourceMappingURL=Global.d.ts.map
|
|
||||
@ -1,31 +0,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. |
|
||||
*/ |
|
||||
export declare type Milliseconds = number; |
|
||||
declare type Status = 'passed' | 'failed' | 'skipped' | 'pending' | 'todo' | 'disabled'; |
|
||||
declare type Callsite = { |
|
||||
column: number; |
|
||||
line: number; |
|
||||
}; |
|
||||
export declare type AssertionResult = { |
|
||||
ancestorTitles: Array<string>; |
|
||||
duration?: Milliseconds | null; |
|
||||
failureMessages: Array<string>; |
|
||||
fullName: string; |
|
||||
invocations?: number; |
|
||||
location?: Callsite | null; |
|
||||
numPassingAsserts: number; |
|
||||
status: Status; |
|
||||
title: string; |
|
||||
}; |
|
||||
export declare type SerializableError = { |
|
||||
code?: unknown; |
|
||||
message: string; |
|
||||
stack: string | null | undefined; |
|
||||
type?: string; |
|
||||
}; |
|
||||
export {}; |
|
||||
//# sourceMappingURL=TestResult.d.ts.map
|
|
||||
@ -1,13 +0,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. |
|
||||
*/ |
|
||||
export declare type TransformResult = { |
|
||||
code: string; |
|
||||
originalCode: string; |
|
||||
mapCoverage: boolean; |
|
||||
sourceMapPath: string | null; |
|
||||
}; |
|
||||
//# sourceMappingURL=Transform.d.ts.map
|
|
||||
@ -1,13 +0,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. |
|
||||
*/ |
|
||||
import * as Circus from './Circus'; |
|
||||
import * as Config from './Config'; |
|
||||
import * as Global from './Global'; |
|
||||
import * as TestResult from './TestResult'; |
|
||||
import * as TransformTypes from './Transform'; |
|
||||
export { Circus, Config, Global, TestResult, TransformTypes }; |
|
||||
//# sourceMappingURL=index.d.ts.map
|
|
||||
@ -1,35 +1,24 @@ |
|||||
{ |
{ |
||||
"name": "@jest/types", |
"name": "@jest/types", |
||||
"version": "25.3.0", |
"version": "24.9.0", |
||||
"repository": { |
"repository": { |
||||
"type": "git", |
"type": "git", |
||||
"url": "https://github.com/facebook/jest.git", |
"url": "https://github.com/facebook/jest.git", |
||||
"directory": "packages/jest-types" |
"directory": "packages/jest-types" |
||||
}, |
}, |
||||
"engines": { |
"engines": { |
||||
"node": ">= 8.3" |
"node": ">= 6" |
||||
}, |
}, |
||||
"license": "MIT", |
"license": "MIT", |
||||
"main": "build/index.js", |
"main": "build/index.js", |
||||
"types": "build/index.d.ts", |
"types": "build/index.d.ts", |
||||
"typesVersions": { |
|
||||
"<3.8": { |
|
||||
"build/*": [ |
|
||||
"build/ts3.4/*" |
|
||||
] |
|
||||
} |
|
||||
}, |
|
||||
"dependencies": { |
"dependencies": { |
||||
"@types/istanbul-lib-coverage": "^2.0.0", |
"@types/istanbul-lib-coverage": "^2.0.0", |
||||
"@types/istanbul-reports": "^1.1.1", |
"@types/istanbul-reports": "^1.1.1", |
||||
"@types/yargs": "^15.0.0", |
"@types/yargs": "^13.0.0" |
||||
"chalk": "^3.0.0" |
|
||||
}, |
|
||||
"devDependencies": { |
|
||||
"@types/node": "*" |
|
||||
}, |
}, |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"gitHead": "45a4936d96d74cdee6b91122a51a556e3ebe6dc8" |
"gitHead": "9ad0f4bc6b8bdd94989804226c28c9960d9da7d1" |
||||
} |
} |
||||
|
|||||
@ -1,197 +0,0 @@ |
|||||
import * as cssColors from 'color-name'; |
|
||||
|
|
||||
declare namespace ansiStyles { |
|
||||
interface ColorConvert { |
|
||||
/** |
|
||||
The RGB color space. |
|
||||
|
|
||||
@param red - (`0`-`255`) |
|
||||
@param green - (`0`-`255`) |
|
||||
@param blue - (`0`-`255`) |
|
||||
*/ |
|
||||
rgb(red: number, green: number, blue: number): string; |
|
||||
|
|
||||
/** |
|
||||
The RGB HEX color space. |
|
||||
|
|
||||
@param hex - A hexadecimal string containing RGB data. |
|
||||
*/ |
|
||||
hex(hex: string): string; |
|
||||
|
|
||||
/** |
|
||||
@param keyword - A CSS color name. |
|
||||
*/ |
|
||||
keyword(keyword: keyof typeof cssColors): string; |
|
||||
|
|
||||
/** |
|
||||
The HSL color space. |
|
||||
|
|
||||
@param hue - (`0`-`360`) |
|
||||
@param saturation - (`0`-`100`) |
|
||||
@param lightness - (`0`-`100`) |
|
||||
*/ |
|
||||
hsl(hue: number, saturation: number, lightness: number): string; |
|
||||
|
|
||||
/** |
|
||||
The HSV color space. |
|
||||
|
|
||||
@param hue - (`0`-`360`) |
|
||||
@param saturation - (`0`-`100`) |
|
||||
@param value - (`0`-`100`) |
|
||||
*/ |
|
||||
hsv(hue: number, saturation: number, value: number): string; |
|
||||
|
|
||||
/** |
|
||||
The HSV color space. |
|
||||
|
|
||||
@param hue - (`0`-`360`) |
|
||||
@param whiteness - (`0`-`100`) |
|
||||
@param blackness - (`0`-`100`) |
|
||||
*/ |
|
||||
hwb(hue: number, whiteness: number, blackness: number): string; |
|
||||
|
|
||||
/** |
|
||||
Use a [4-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4-bit) to set text color.
|
|
||||
*/ |
|
||||
ansi(ansi: number): string; |
|
||||
|
|
||||
/** |
|
||||
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
|
|
||||
*/ |
|
||||
ansi256(ansi: number): string; |
|
||||
} |
|
||||
|
|
||||
interface CSPair { |
|
||||
/** |
|
||||
The ANSI terminal control sequence for starting this style. |
|
||||
*/ |
|
||||
readonly open: string; |
|
||||
|
|
||||
/** |
|
||||
The ANSI terminal control sequence for ending this style. |
|
||||
*/ |
|
||||
readonly close: string; |
|
||||
} |
|
||||
|
|
||||
interface ColorBase { |
|
||||
readonly ansi: ColorConvert; |
|
||||
readonly ansi256: ColorConvert; |
|
||||
readonly ansi16m: ColorConvert; |
|
||||
|
|
||||
/** |
|
||||
The ANSI terminal control sequence for ending this color. |
|
||||
*/ |
|
||||
readonly close: string; |
|
||||
} |
|
||||
|
|
||||
interface Modifier { |
|
||||
/** |
|
||||
Resets the current color chain. |
|
||||
*/ |
|
||||
readonly reset: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Make text bold. |
|
||||
*/ |
|
||||
readonly bold: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Emitting only a small amount of light. |
|
||||
*/ |
|
||||
readonly dim: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Make text italic. (Not widely supported) |
|
||||
*/ |
|
||||
readonly italic: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Make text underline. (Not widely supported) |
|
||||
*/ |
|
||||
readonly underline: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Inverse background and foreground colors. |
|
||||
*/ |
|
||||
readonly inverse: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Prints the text, but makes it invisible. |
|
||||
*/ |
|
||||
readonly hidden: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Puts a horizontal line through the center of the text. (Not widely supported) |
|
||||
*/ |
|
||||
readonly strikethrough: CSPair; |
|
||||
} |
|
||||
|
|
||||
interface ForegroundColor { |
|
||||
readonly black: CSPair; |
|
||||
readonly red: CSPair; |
|
||||
readonly green: CSPair; |
|
||||
readonly yellow: CSPair; |
|
||||
readonly blue: CSPair; |
|
||||
readonly cyan: CSPair; |
|
||||
readonly magenta: CSPair; |
|
||||
readonly white: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Alias for `blackBright`. |
|
||||
*/ |
|
||||
readonly gray: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Alias for `blackBright`. |
|
||||
*/ |
|
||||
readonly grey: CSPair; |
|
||||
|
|
||||
readonly blackBright: CSPair; |
|
||||
readonly redBright: CSPair; |
|
||||
readonly greenBright: CSPair; |
|
||||
readonly yellowBright: CSPair; |
|
||||
readonly blueBright: CSPair; |
|
||||
readonly cyanBright: CSPair; |
|
||||
readonly magentaBright: CSPair; |
|
||||
readonly whiteBright: CSPair; |
|
||||
} |
|
||||
|
|
||||
interface BackgroundColor { |
|
||||
readonly bgBlack: CSPair; |
|
||||
readonly bgRed: CSPair; |
|
||||
readonly bgGreen: CSPair; |
|
||||
readonly bgYellow: CSPair; |
|
||||
readonly bgBlue: CSPair; |
|
||||
readonly bgCyan: CSPair; |
|
||||
readonly bgMagenta: CSPair; |
|
||||
readonly bgWhite: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Alias for `bgBlackBright`. |
|
||||
*/ |
|
||||
readonly bgGray: CSPair; |
|
||||
|
|
||||
/** |
|
||||
Alias for `bgBlackBright`. |
|
||||
*/ |
|
||||
readonly bgGrey: CSPair; |
|
||||
|
|
||||
readonly bgBlackBright: CSPair; |
|
||||
readonly bgRedBright: CSPair; |
|
||||
readonly bgGreenBright: CSPair; |
|
||||
readonly bgYellowBright: CSPair; |
|
||||
readonly bgBlueBright: CSPair; |
|
||||
readonly bgCyanBright: CSPair; |
|
||||
readonly bgMagentaBright: CSPair; |
|
||||
readonly bgWhiteBright: CSPair; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
declare const ansiStyles: { |
|
||||
readonly modifier: ansiStyles.Modifier; |
|
||||
readonly color: ansiStyles.ForegroundColor & ansiStyles.ColorBase; |
|
||||
readonly bgColor: ansiStyles.BackgroundColor & ansiStyles.ColorBase; |
|
||||
readonly codes: ReadonlyMap<number, number>; |
|
||||
} & ansiStyles.BackgroundColor & ansiStyles.ForegroundColor & ansiStyles.Modifier; |
|
||||
|
|
||||
export = ansiStyles; |
|
||||
@ -1,19 +0,0 @@ |
|||||
type AnymatchFn = (testString: string) => boolean; |
|
||||
type AnymatchPattern = string|RegExp|AnymatchFn; |
|
||||
type AnymatchMatcher = AnymatchPattern|AnymatchPattern[] |
|
||||
type AnymatchTester = { |
|
||||
(testString: string|any[], returnIndex: true): number; |
|
||||
(testString: string|any[]): boolean; |
|
||||
} |
|
||||
|
|
||||
type PicomatchOptions = {dot: boolean}; |
|
||||
|
|
||||
declare const anymatch: { |
|
||||
(matchers: AnymatchMatcher): AnymatchTester; |
|
||||
(matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number; |
|
||||
(matchers: AnymatchMatcher, testString: string|any[]): boolean; |
|
||||
} |
|
||||
|
|
||||
export {AnymatchMatcher as Matcher} |
|
||||
export {AnymatchTester as Tester} |
|
||||
export default anymatch |
|
||||
@ -1,102 +1,67 @@ |
|||||
'use strict'; |
'use strict'; |
||||
|
|
||||
Object.defineProperty(exports, "__esModule", { value: true }); |
var micromatch = require('micromatch'); |
||||
|
var normalize = require('normalize-path'); |
||||
|
var path = require('path'); // required for tests.
|
||||
|
var arrify = function(a) { return a == null ? [] : (Array.isArray(a) ? a : [a]); }; |
||||
|
|
||||
const picomatch = require('picomatch'); |
var anymatch = function(criteria, value, returnIndex, startIndex, endIndex) { |
||||
const normalizePath = require('normalize-path'); |
criteria = arrify(criteria); |
||||
|
value = arrify(value); |
||||
/** |
if (arguments.length === 1) { |
||||
* @typedef {(testString: string) => boolean} AnymatchFn |
return anymatch.bind(null, criteria.map(function(criterion) { |
||||
* @typedef {string|RegExp|AnymatchFn} AnymatchPattern |
return typeof criterion === 'string' && criterion[0] !== '!' ? |
||||
* @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher |
micromatch.matcher(criterion) : criterion; |
||||
*/ |
})); |
||||
const BANG = '!'; |
|
||||
const DEFAULT_OPTIONS = {returnIndex: false}; |
|
||||
const arrify = (item) => Array.isArray(item) ? item : [item]; |
|
||||
|
|
||||
/** |
|
||||
* @param {AnymatchPattern} matcher |
|
||||
* @param {object} options |
|
||||
* @returns {AnymatchFn} |
|
||||
*/ |
|
||||
const createPattern = (matcher, options) => { |
|
||||
if (typeof matcher === 'function') { |
|
||||
return matcher; |
|
||||
} |
|
||||
if (typeof matcher === 'string') { |
|
||||
const glob = picomatch(matcher, options); |
|
||||
return (string) => matcher === string || glob(string); |
|
||||
} |
} |
||||
if (matcher instanceof RegExp) { |
startIndex = startIndex || 0; |
||||
return (string) => matcher.test(string); |
var string = value[0]; |
||||
} |
var altString, altValue; |
||||
return (string) => false; |
var matched = false; |
||||
}; |
var matchIndex = -1; |
||||
|
function testCriteria(criterion, index) { |
||||
/** |
var result; |
||||
* @param {Array<Function>} patterns |
switch (Object.prototype.toString.call(criterion)) { |
||||
* @param {Array<Function>} negPatterns |
case '[object String]': |
||||
* @param {String|Array} args |
result = string === criterion || altString && altString === criterion; |
||||
* @param {Boolean} returnIndex |
result = result || micromatch.isMatch(string, criterion); |
||||
* @returns {boolean|number} |
break; |
||||
*/ |
case '[object RegExp]': |
||||
const matchPatterns = (patterns, negPatterns, args, returnIndex) => { |
result = criterion.test(string) || altString && criterion.test(altString); |
||||
const isList = Array.isArray(args); |
break; |
||||
const _path = isList ? args[0] : args; |
case '[object Function]': |
||||
if (!isList && typeof _path !== 'string') { |
result = criterion.apply(null, value); |
||||
throw new TypeError('anymatch: second argument must be a string: got ' + |
result = result || altValue && criterion.apply(null, altValue); |
||||
Object.prototype.toString.call(_path)) |
break; |
||||
} |
default: |
||||
const path = normalizePath(_path); |
result = false; |
||||
|
|
||||
for (let index = 0; index < negPatterns.length; index++) { |
|
||||
const nglob = negPatterns[index]; |
|
||||
if (nglob(path)) { |
|
||||
return returnIndex ? -1 : false; |
|
||||
} |
} |
||||
} |
if (result) { |
||||
|
matchIndex = index + startIndex; |
||||
const applied = isList && [path].concat(args.slice(1)); |
|
||||
for (let index = 0; index < patterns.length; index++) { |
|
||||
const pattern = patterns[index]; |
|
||||
if (isList ? pattern(...applied) : pattern(path)) { |
|
||||
return returnIndex ? index : true; |
|
||||
} |
} |
||||
|
return result; |
||||
} |
} |
||||
|
var crit = criteria; |
||||
return returnIndex ? -1 : false; |
var negGlobs = crit.reduce(function(arr, criterion, index) { |
||||
}; |
if (typeof criterion === 'string' && criterion[0] === '!') { |
||||
|
if (crit === criteria) { |
||||
/** |
// make a copy before modifying
|
||||
* @param {AnymatchMatcher} matchers |
crit = crit.slice(); |
||||
* @param {Array|string} testString |
} |
||||
* @param {object} options |
crit[index] = null; |
||||
* @returns {boolean|number|Function} |
arr.push(criterion.substr(1)); |
||||
*/ |
|
||||
const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => { |
|
||||
if (matchers == null) { |
|
||||
throw new TypeError('anymatch: specify first argument'); |
|
||||
} |
|
||||
const opts = typeof options === 'boolean' ? {returnIndex: options} : options; |
|
||||
const returnIndex = opts.returnIndex || false; |
|
||||
|
|
||||
// Early cache for matchers.
|
|
||||
const mtchers = arrify(matchers); |
|
||||
const negatedGlobs = mtchers |
|
||||
.filter(item => typeof item === 'string' && item.charAt(0) === BANG) |
|
||||
.map(item => item.slice(1)) |
|
||||
.map(item => picomatch(item, opts)); |
|
||||
const patterns = mtchers.map(matcher => createPattern(matcher, opts)); |
|
||||
|
|
||||
if (testString == null) { |
|
||||
return (testString, ri = false) => { |
|
||||
const returnIndex = typeof ri === 'boolean' ? ri : false; |
|
||||
return matchPatterns(patterns, negatedGlobs, testString, returnIndex); |
|
||||
} |
} |
||||
|
return arr; |
||||
|
}, []); |
||||
|
if (!negGlobs.length || !micromatch.any(string, negGlobs)) { |
||||
|
if (path.sep === '\\' && typeof string === 'string') { |
||||
|
altString = normalize(string); |
||||
|
altString = altString === string ? null : altString; |
||||
|
if (altString) altValue = [altString].concat(value.slice(1)); |
||||
|
} |
||||
|
matched = crit.slice(startIndex, endIndex).some(testCriteria); |
||||
} |
} |
||||
|
return returnIndex === true ? matchIndex : matched; |
||||
return matchPatterns(patterns, negatedGlobs, testString, returnIndex); |
|
||||
}; |
}; |
||||
|
|
||||
anymatch.default = anymatch; |
|
||||
module.exports = anymatch; |
module.exports = anymatch; |
||||
|
|||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue