first commit

This commit is contained in:
2020-02-02 15:24:30 +07:00
commit 61dfa00b20
2410 changed files with 152621 additions and 0 deletions

187
node_modules/ow/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,187 @@
/// <reference types="node" />
import { Predicate } from './lib/predicates/predicate';
import { StringPredicate } from './lib/predicates/string';
import { NumberPredicate } from './lib/predicates/number';
import { BooleanPredicate } from './lib/predicates/boolean';
import { ArrayPredicate } from './lib/predicates/array';
import { ObjectPredicate } from './lib/predicates/object';
import { DatePredicate } from './lib/predicates/date';
import { ErrorPredicate } from './lib/predicates/error';
import { MapPredicate } from './lib/predicates/map';
import { WeakMapPredicate } from './lib/predicates/weak-map';
import { SetPredicate } from './lib/predicates/set';
import { WeakSetPredicate } from './lib/predicates/weak-set';
/**
* @hidden
*/
export declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
export interface Ow {
/**
* Test if the value matches the predicate. Throws an `ArgumentError` if the test fails..
*
* @param value Value to test.
* @param predicate Predicate to test against.
*/
<T>(value: T, predicate: Predicate<T>): void;
/**
* Returns `true` if the value matches the predicate, otherwise returns `false`.
*
* @param value Value to test.
* @param predicate Predicate to test against.
*/
isValid<T>(value: T, predicate: Predicate<T>): value is T;
/**
* Create a reusable validator.
*
* @param predicate Predicate used in the validator function.
*/
create<T>(predicate: Predicate<T>): (value: T) => void;
/**
* Test that the value matches at least one of the given predicates.
*/
any<T1>(p1: Predicate<T1>): Predicate<T1>;
any<T1, T2>(p1: Predicate<T1>, p2: Predicate<T2>): Predicate<T1 | T2>;
any<T1, T2, T3>(p1: Predicate<T1>, p2: Predicate<T2>, p3: Predicate<T3>): Predicate<T1 | T2 | T3>;
any<T1, T2, T3, T4>(p1: Predicate<T1>, p2: Predicate<T2>, p3: Predicate<T3>, p4: Predicate<T4>): Predicate<T1 | T2 | T3 | T4>;
any<T1, T2, T3, T4, T5>(p1: Predicate<T1>, p2: Predicate<T2>, p3: Predicate<T3>, p4: Predicate<T4>, p5: Predicate<T5>): Predicate<T1 | T2 | T3 | T4 | T5>;
any<T1, T2, T3, T4, T5, T6>(p1: Predicate<T1>, p2: Predicate<T2>, p3: Predicate<T3>, p4: Predicate<T4>, p5: Predicate<T5>, p6: Predicate<T6>): Predicate<T1 | T2 | T3 | T4 | T5 | T6>;
any<T1, T2, T3, T4, T5, T6, T7>(p1: Predicate<T1>, p2: Predicate<T2>, p3: Predicate<T3>, p4: Predicate<T4>, p5: Predicate<T5>, p6: Predicate<T6>, p7: Predicate<T7>): Predicate<T1 | T2 | T3 | T4 | T5 | T6 | T7>;
any<T1, T2, T3, T4, T5, T6, T7, T8>(p1: Predicate<T1>, p2: Predicate<T2>, p3: Predicate<T3>, p4: Predicate<T4>, p5: Predicate<T5>, p6: Predicate<T6>, p7: Predicate<T7>, p8: Predicate<T8>): Predicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;
any<T1, T2, T3, T4, T5, T6, T7, T8, T9>(p1: Predicate<T1>, p2: Predicate<T2>, p3: Predicate<T3>, p4: Predicate<T4>, p5: Predicate<T5>, p6: Predicate<T6>, p7: Predicate<T7>, p8: Predicate<T8>, p9: Predicate<T9>): Predicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>;
any<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(p1: Predicate<T1>, p2: Predicate<T2>, p3: Predicate<T3>, p4: Predicate<T4>, p5: Predicate<T5>, p6: Predicate<T6>, p7: Predicate<T7>, p8: Predicate<T8>, p9: Predicate<T9>, p10: Predicate<T10>): Predicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;
any(...predicate: Predicate[]): Predicate;
/**
* Test the value to be a string.
*/
readonly string: StringPredicate;
/**
* Test the value to be a number.
*/
readonly number: NumberPredicate;
/**
* Test the value to be a boolean.
*/
readonly boolean: BooleanPredicate;
/**
* Test the value to be undefined.
*/
readonly undefined: Predicate<undefined>;
/**
* Test the value to be null.
*/
readonly null: Predicate<null>;
/**
* Test the value to be null or undefined.
*/
readonly nullOrUndefined: Predicate<null | undefined>;
/**
* Test the value to be not a number.
*/
readonly nan: Predicate<number>;
/**
* Test the value to be a Symbol.
*/
readonly symbol: Predicate<Symbol>;
/**
* Test the value to be an array.
*/
readonly array: ArrayPredicate;
/**
* Test the value to be an object.
*/
readonly object: ObjectPredicate;
/**
* Test the value to be a Date.
*/
readonly date: DatePredicate;
/**
* Test the value to be an Error.
*/
readonly error: ErrorPredicate;
/**
* Test the value to be a Map.
*/
readonly map: MapPredicate;
/**
* Test the value to be a WeakMap.
*/
readonly weakMap: WeakMapPredicate;
/**
* Test the value to be a Set.
*/
readonly set: SetPredicate;
/**
* Test the value to be a WeakSet.
*/
readonly weakSet: WeakSetPredicate;
/**
* Test the value to be a Function.
*/
readonly function: Predicate<Function>;
/**
* Test the value to be a Buffer.
*/
readonly buffer: Predicate<Buffer>;
/**
* Test the value to be a RegExp.
*/
readonly regExp: Predicate<RegExp>;
/**
* Test the value to be a Promise.
*/
readonly promise: Predicate<Promise<any>>;
/**
* Test the value to be a typed array.
*/
readonly typedArray: Predicate<TypedArray>;
/**
* Test the value to be a Int8Array.
*/
readonly int8Array: Predicate<Int8Array>;
/**
* Test the value to be a Uint8Array.
*/
readonly uint8Array: Predicate<Uint8Array>;
/**
* Test the value to be a Uint8ClampedArray.
*/
readonly uint8ClampedArray: Predicate<Uint8ClampedArray>;
/**
* Test the value to be a Int16Array.
*/
readonly int16Array: Predicate<Int16Array>;
/**
* Test the value to be a Uint16Array.
*/
readonly uint16Array: Predicate<Uint16Array>;
/**
* Test the value to be a Int32Array.
*/
readonly int32Array: Predicate<Int32Array>;
/**
* Test the value to be a Uint32Array.
*/
readonly uint32Array: Predicate<Uint32Array>;
/**
* Test the value to be a Float32Array.
*/
readonly float32Array: Predicate<Float32Array>;
/**
* Test the value to be a Float64Array.
*/
readonly float64Array: Predicate<Float64Array>;
/**
* Test the value to be a ArrayBuffer.
*/
readonly arrayBuffer: Predicate<ArrayBuffer>;
/**
* Test the value to be a DataView.
*/
readonly dataView: Predicate<DataView>;
/**
* Test the value to be Iterable.
*/
readonly iterable: Predicate<Iterable<any>>;
}
declare const _default: Ow;
export default _default;

2
node_modules/ow/dist/index.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/ow/dist/index.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

6
node_modules/ow/dist/lib/argument-error.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
/**
* @hidden
*/
export declare class ArgumentError extends Error {
constructor(message: string, context: Function);
}

8
node_modules/ow/dist/lib/operators/not.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import { Predicate } from '../predicates/predicate';
/**
* Operator which inverts all the validations.
*
* @hidden
* @param predictate Predicate to wrap inside the operator.
*/
export declare const not: <T, P extends Predicate<T>>(predicate: P) => P;

11
node_modules/ow/dist/lib/predicates/any.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import { Predicate } from './predicate';
import { BasePredicate, testSymbol } from './base-predicate';
import { Ow } from '../..';
/**
* @hidden
*/
export declare class AnyPredicate<T> implements BasePredicate<T> {
private readonly predicates;
constructor(predicates: Predicate[]);
[testSymbol](value: T, main: Ow): void;
}

69
node_modules/ow/dist/lib/predicates/array.d.ts generated vendored Normal file
View File

@@ -0,0 +1,69 @@
import { Predicate, Context } from './predicate';
export declare class ArrayPredicate<T = any> extends Predicate<T[]> {
/**
* @hidden
*/
constructor(context?: Context<T[]>);
/**
* Test an array to have a specific length.
*
* @param length The length of the array.
*/
length(length: number): this;
/**
* Test an array to have a minimum length.
*
* @param length The minimum length of the array.
*/
minLength(length: number): this;
/**
* Test an array to have a maximum length.
*
* @param length The maximum length of the array.
*/
maxLength(length: number): this;
/**
* Test an array to start with a specific value. The value is tested by identity, not structure.
*
* @param searchElement The value that should be the start of the array.
*/
startsWith(searchElement: T): this;
/**
* Test an array to end with a specific value. The value is tested by identity, not structure.
*
* @param searchElement The value that should be the end of the array.
*/
endsWith(searchElement: T): this;
/**
* Test an array to include all the provided elements. The values are tested by identity, not structure.
*
* @param searchElements The values that should be included in the array.
*/
includes(...searchElements: T[]): this;
/**
* Test an array to include any of the provided elements. The values are tested by identity, not structure.
*
* @param searchElements The values that should be included in the array.
*/
includesAny(...searchElements: T[]): this;
/**
* Test an array to be empty.
*/
readonly empty: this;
/**
* Test an array to be not empty.
*/
readonly nonEmpty: this;
/**
* Test an array to be deeply equal to the provided array.
*
* @param expected Expected value to match.
*/
deepEqual(expected: T[]): this;
/**
* Test all elements in the array to match to provided predicate.
*
* @param predicate The predicate that should be applied against every individual item.
*/
ofType(predicate: Predicate<T>): this;
}

View File

@@ -0,0 +1,11 @@
import { Ow } from '../..';
/**
* @hidden
*/
export declare const testSymbol: unique symbol;
/**
* @hidden
*/
export interface BasePredicate<T = any> {
[testSymbol](value: T, main: Ow): void;
}

15
node_modules/ow/dist/lib/predicates/boolean.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import { Predicate, Context } from './predicate';
export declare class BooleanPredicate extends Predicate<boolean> {
/**
* @hidden
*/
constructor(context?: Context<boolean>);
/**
* Test a boolean to be true.
*/
readonly true: this;
/**
* Test a boolean to be false.
*/
readonly false: this;
}

19
node_modules/ow/dist/lib/predicates/date.d.ts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
import { Predicate, Context } from './predicate';
export declare class DatePredicate extends Predicate<Date> {
/**
* @hidden
*/
constructor(context?: Context<Date>);
/**
* Test a date to be before another date.
*
* @param date Maximum value.
*/
before(date: Date): this;
/**
* Test a date to be before another date.
*
* @param date Minimum value.
*/
after(date: Date): this;
}

61
node_modules/ow/dist/lib/predicates/error.d.ts generated vendored Normal file
View File

@@ -0,0 +1,61 @@
import { Predicate, Context } from './predicate';
export declare class ErrorPredicate extends Predicate<Error> {
/**
* @hidden
*/
constructor(context?: Context<Error>);
/**
* Test an error to have a specific name.
*
* @param expected Expected name of the Error.
*/
name(expected: string): this;
/**
* Test an error to have a specific message.
*
* @param expected Expected message of the Error.
*/
message(expected: string): this;
/**
* Test the error message to include a specific message.
*
* @param message Message that should be included in the error.
*/
messageIncludes(message: string): this;
/**
* Test the error object to have specific keys.
*
* @param keys One or more keys which should be part of the error object.
*/
hasKeys(...keys: string[]): this;
/**
* Test an error to be of a specific instance type.
*
* @param instance The expected instance type of the error.
*/
instanceOf(instance: any): this;
/**
* Test an Error to be a TypeError.
*/
readonly typeError: this;
/**
* Test an Error to be an EvalError.
*/
readonly evalError: this;
/**
* Test an Error to be a RangeError.
*/
readonly rangeError: this;
/**
* Test an Error to be a ReferenceError.
*/
readonly referenceError: this;
/**
* Test an Error to be a SyntaxError.
*/
readonly syntaxError: this;
/**
* Test an Error to be a URIError.
*/
readonly uriError: this;
}

75
node_modules/ow/dist/lib/predicates/map.d.ts generated vendored Normal file
View File

@@ -0,0 +1,75 @@
import { Predicate, Context } from './predicate';
export declare class MapPredicate<T1 = any, T2 = any> extends Predicate<Map<T1, T2>> {
/**
* @hidden
*/
constructor(context?: Context<Map<T1, T2>>);
/**
* Test a Map to have a specific size.
*
* @param size The size of the Map.
*/
size(size: number): this;
/**
* Test an Map to have a minimum size.
*
* @param size The minimum size of the Map.
*/
minSize(size: number): this;
/**
* Test an Map to have a maximum size.
*
* @param size The maximum size of the Map.
*/
maxSize(size: number): this;
/**
* Test a Map to include all the provided keys. The keys are tested by identity, not structure.
*
* @param keys The keys that should be a key in the Map.
*/
hasKeys(...keys: T1[]): this;
/**
* Test a Map to include any of the provided keys. The keys are tested by identity, not structure.
*
* @param keys The keys that could be a key in the Map.
*/
hasAnyKeys(...keys: T1[]): this;
/**
* Test a Map to include all the provided values. The values are tested by identity, not structure.
*
* @param values The values that should be a value in the Map.
*/
hasValues(...values: T2[]): this;
/**
* Test a Map to include any of the provided values. The values are tested by identity, not structure.
*
* @param values The values that could be a value in the Map.
*/
hasAnyValues(...values: T2[]): this;
/**
* Test all the keys in the Map to match the provided predicate.
*
* @param predicate The predicate that should be applied against every key in the Map.
*/
keysOfType(predicate: Predicate<T1>): this;
/**
* Test all the values in the Map to match the provided predicate.
*
* @param predicate The predicate that should be applied against every value in the Map.
*/
valuesOfType(predicate: Predicate<T2>): this;
/**
* Test a Map to be empty.
*/
readonly empty: this;
/**
* Test a Map to be not empty.
*/
readonly nonEmpty: this;
/**
* Test a Map to be deeply equal to the provided Map.
*
* @param expected Expected Map to match.
*/
deepEqual(expected: Map<T1, T2>): this;
}

64
node_modules/ow/dist/lib/predicates/number.d.ts generated vendored Normal file
View File

@@ -0,0 +1,64 @@
import { Predicate, Context } from './predicate';
export declare class NumberPredicate extends Predicate<number> {
/**
* @hidden
*/
constructor(context?: Context<number>);
/**
* Test a number to be in a specified range.
*
* @param start Start of the range.
* @param end End of the range.
*/
inRange(start: number, end: number): this;
/**
* Test a number to be greater than the provided value.
*
* @param x Minimum value.
*/
greaterThan(x: number): this;
/**
* Test a number to be greater than or equal to the provided value.
*
* @param x Minimum value.
*/
greaterThanOrEqual(x: number): this;
/**
* Test a number to be less than the provided value.
*
* @param x Maximum value.
*/
lessThan(x: number): this;
/**
* Test a number to be less than or equal to the provided value.
*
* @param x Minimum value.
*/
lessThanOrEqual(x: number): this;
/**
* Test a number to be equal to a specified number.
*
* @param expected Expected value to match.
*/
equal(expected: number): this;
/**
* Test a number to be an integer.
*/
readonly integer: this;
/**
* Test a number to be finite.
*/
readonly finite: this;
/**
* Test a number to be infinite.
*/
readonly infinite: this;
/**
* Test a number to be positive.
*/
readonly positive: this;
/**
* Test a number to be negative.
*/
readonly negative: this;
}

55
node_modules/ow/dist/lib/predicates/object.d.ts generated vendored Normal file
View File

@@ -0,0 +1,55 @@
import { Predicate, Context } from './predicate';
export declare class ObjectPredicate extends Predicate<object> {
/**
* @hidden
*/
constructor(context?: Context<object>);
/**
* Test if an Object is a plain object.
*/
readonly plain: this;
/**
* Test an object to be empty.
*/
readonly empty: this;
/**
* Test an object to be not empty.
*/
readonly nonEmpty: this;
/**
* Test all the values in the object to match the provided predicate.
*
* @param predicate The predicate that should be applied against every value in the object.
*/
valuesOfType<T>(predicate: Predicate<T>): this;
/**
* Test all the values in the object deeply to match the provided predicate.
*
* @param predicate The predicate that should be applied against every value in the object.
*/
deepValuesOfType<T>(predicate: Predicate<T>): this;
/**
* Test an object to be deeply equal to the provided object.
*
* @param expected Expected object to match.
*/
deepEqual(expected: object): this;
/**
* Test an object to be of a specific instance type.
*
* @param instance The expected instance type of the object.
*/
instanceOf(instance: any): this;
/**
* Test an object to include all the provided keys. You can use [dot-notation](https://github.com/sindresorhus/dot-prop) in a key to access nested properties.
*
* @param keys The keys that should be present in the object.
*/
hasKeys(...keys: string[]): this;
/**
* Test an object to include any of the provided keys. You can use [dot-notation](https://github.com/sindresorhus/dot-prop) in a key to access nested properties.
*
* @param keys The keys that could be a key in the object.
*/
hasAnyKeys(...keys: string[]): this;
}

54
node_modules/ow/dist/lib/predicates/predicate.d.ts generated vendored Normal file
View File

@@ -0,0 +1,54 @@
import { Ow } from '../..';
import { BasePredicate, testSymbol } from './base-predicate';
/**
* @hidden
*/
export interface Validator<T> {
message(value: T, label?: string, result?: any): string;
validator(value: T): any;
}
/**
* @hidden
*/
export interface Context<T> {
validators: Validator<T>[];
label?: string;
}
/**
* @hidden
*/
export declare const validatorSymbol: unique symbol;
/**
* @hidden
*/
export declare class Predicate<T = any> implements BasePredicate<T> {
private readonly type;
private readonly context;
constructor(type: string, context?: Context<T>);
/**
* @hidden
*/
[testSymbol](value: T, main: Ow): void;
/**
* @hidden
*/
readonly [validatorSymbol]: Validator<T>[];
/**
* Invert the following validators.
*/
readonly not: this;
/**
* Assign a label to this predicate for use in error messages.
*
* @param value Label to assign.
*/
label(value: string): this;
/**
* Test if the value matches a custom validation function. The validation function should return `true` if the value
* passes the function. If the function either returns `false` or a string, the function fails and the string will be
* used as error message.
*
* @param fn Validation function.
*/
is(fn: (value: T) => boolean | string): this;
}

57
node_modules/ow/dist/lib/predicates/set.d.ts generated vendored Normal file
View File

@@ -0,0 +1,57 @@
import { Predicate, Context } from './predicate';
export declare class SetPredicate<T = any> extends Predicate<Set<T>> {
/**
* @hidden
*/
constructor(context?: Context<Set<T>>);
/**
* Test a Set to have a specific size.
*
* @param size The size of the Set.
*/
size(size: number): this;
/**
* Test an Size to have a minimum size.
*
* @param size The minimum size of the Set.
*/
minSize(size: number): this;
/**
* Test an Set to have a maximum size.
*
* @param size The maximum size of the Set.
*/
maxSize(size: number): this;
/**
* Test a Set to include all the provided items. The items are tested by identity, not structure.
*
* @param items The items that should be a item in the Set.
*/
has(...items: T[]): this;
/**
* Test a Set to include any of the provided items. The items are tested by identity, not structure.
*
* @param items The items that could be a item in the Set.
*/
hasAny(...items: T[]): this;
/**
* Test all the items in the Set to match the provided predicate.
*
* @param predicate The predicate that should be applied against every item in the Set.
*/
ofType(predicate: Predicate<T>): this;
/**
* Test a Set to be empty.
*/
readonly empty: this;
/**
* Test a Set to be not empty.
*/
readonly nonEmpty: this;
/**
* Test a Set to be deeply equal to the provided Set.
*
* @param expected Expected Set to match.
*/
deepEqual(expected: Set<T>): this;
}

75
node_modules/ow/dist/lib/predicates/string.d.ts generated vendored Normal file
View File

@@ -0,0 +1,75 @@
import { Predicate, Context } from './predicate';
export declare class StringPredicate extends Predicate<string> {
/**
* @hidden
*/
constructor(context?: Context<string>);
/**
* Test a string to have a specific length.
*
* @param length The length of the string.
*/
length(length: number): this;
/**
* Test a string to have a minimum length.
*
* @param length The minimum length of the string.
*/
minLength(length: number): this;
/**
* Test a string to have a maximum length.
*
* @param length The maximum length of the string.
*/
maxLength(length: number): this;
/**
* Test a string against a regular expression.
*
* @param regeExp The regular expression to match the value with.
*/
matches(regExp: RegExp): this;
/**
* Test a string to start with a specific value.
*
* @param searchString The value that should be the start of the string.
*/
startsWith(searchString: string): this;
/**
* Test a string to end with a specific value.
*
* @param searchString The value that should be the end of the string.
*/
endsWith(searchString: string): this;
/**
* Test a string to include a specific value.
*
* @param searchString The value that should be included in the string.
*/
includes(searchString: string): this;
/**
* Test a string to be empty.
*/
readonly empty: this;
/**
* Test a string to be not empty.
*/
readonly nonEmpty: this;
/**
* Test a string to be equal to a specified string.
*
* @param expected Expected value to match.
*/
equals(expected: string): this;
/**
* Test a string to be alphanumeric.
*/
readonly alphanumeric: this;
/**
* Test a string to be numeric.
*/
readonly numeric: this;
/**
* Test a string to be a valid date.
*/
readonly date: this;
}

19
node_modules/ow/dist/lib/predicates/weak-map.d.ts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
import { Predicate, Context } from './predicate';
export declare class WeakMapPredicate<T1 extends object = any, T2 = any> extends Predicate<WeakMap<T1, T2>> {
/**
* @hidden
*/
constructor(context?: Context<WeakMap<T1, T2>>);
/**
* Test a WeakMap to include all the provided keys. The keys are tested by identity, not structure.
*
* @param keys The keys that should be a key in the WeakMap.
*/
hasKeys(...keys: T1[]): this;
/**
* Test a WeakMap to include any of the provided keys. The keys are tested by identity, not structure.
*
* @param keys The keys that could be a key in the WeakMap.
*/
hasAnyKeys(...keys: T1[]): this;
}

19
node_modules/ow/dist/lib/predicates/weak-set.d.ts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
import { Predicate, Context } from './predicate';
export declare class WeakSetPredicate<T extends object = any> extends Predicate<WeakSet<T>> {
/**
* @hidden
*/
constructor(context?: Context<WeakSet<T>>);
/**
* Test a WeakSet to include all the provided items. The items are tested by identity, not structure.
*
* @param items The items that should be a item in the WeakSet.
*/
has(...items: T[]): this;
/**
* Test a WeakSet to include any of the provided items. The items are tested by identity, not structure.
*
* @param items The items that could be a item in the WeakSet.
*/
hasAny(...items: T[]): this;
}

8
node_modules/ow/dist/lib/utils/has-items.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
/**
* @hidden
*/
export interface CollectionLike<T> {
has(item: T): boolean;
}
declare const _default: <T>(source: CollectionLike<T>, items: T[], maxValues?: number) => true | T[];
export default _default;

3
node_modules/ow/dist/lib/utils/of-type-deep.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import { Predicate } from '../predicates/predicate';
declare const _default: (input: any, predicate: Predicate<any>) => string | boolean;
export default _default;

3
node_modules/ow/dist/lib/utils/of-type.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import { Predicate } from '../predicates/predicate';
declare const _default: <T>(source: IterableIterator<T> | Set<T> | T[], predicate: Predicate<T>) => string | boolean;
export default _default;

181
node_modules/ow/dist/licenses.txt generated vendored Normal file
View File

@@ -0,0 +1,181 @@
lodash.isequal@4.5.0
MIT
Copyright JS Foundation and other contributors <https://js.foundation/>
Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
available at https://github.com/lodash/lodash
The following license applies to all parts of this software except as
documented below:
====
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.
====
Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation.
CC0: http://creativecommons.org/publicdomain/zero/1.0/
====
Files located in the node_modules and vendor directories are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.
@sindresorhus/is@0.9.0
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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.
symbol-observable@1.2.0
MIT
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Ben Lesh <ben@benlesh.com>
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.
is-obj@1.0.1
MIT
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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.
dot-prop@4.2.0
MIT
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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.
webpack@4.10.1
MIT
Copyright JS Foundation and other contributors
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.
vali-date@1.0.0
MIT
The MIT License (MIT)
Copyright (c) Sam Verschueren <sam.verschueren@gmail.com> (github.com/SamVerschueren)
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.