@my-devkit/core 1.0.41 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/command.d.ts → command.d.ts} +0 -0
- package/{dist/command.js → command.js} +0 -0
- package/{dist/command.js.map → command.js.map} +0 -0
- package/{dist/date-helper.d.ts → date-helper.d.ts} +0 -0
- package/{dist/date-helper.js → date-helper.js} +0 -0
- package/{dist/date-helper.js.map → date-helper.js.map} +0 -0
- package/{dist/decorators → decorators}/cacheable.decorator.d.ts +0 -0
- package/{dist/decorators → decorators}/cacheable.decorator.js +0 -0
- package/{dist/decorators → decorators}/cacheable.decorator.js.map +0 -0
- package/{dist/decorators → decorators}/index.d.ts +0 -0
- package/{dist/decorators → decorators}/index.js +0 -0
- package/{dist/decorators → decorators}/index.js.map +0 -0
- package/{dist/decorators → decorators}/retryable.decorator.d.ts +0 -0
- package/{dist/decorators → decorators}/retryable.decorator.js +0 -0
- package/{dist/decorators → decorators}/retryable.decorator.js.map +0 -0
- package/{dist/document.d.ts → document.d.ts} +0 -0
- package/{dist/document.js → document.js} +0 -0
- package/{dist/document.js.map → document.js.map} +0 -0
- package/{dist/enum-helper.d.ts → enum-helper.d.ts} +0 -0
- package/{dist/enum-helper.js → enum-helper.js} +0 -0
- package/{dist/enum-helper.js.map → enum-helper.js.map} +0 -0
- package/{dist/errors → errors}/bad-request-error.d.ts +0 -0
- package/{dist/errors → errors}/bad-request-error.js +0 -0
- package/{dist/errors → errors}/bad-request-error.js.map +0 -0
- package/{dist/errors → errors}/domain-error.d.ts +0 -0
- package/{dist/errors → errors}/domain-error.js +0 -0
- package/{dist/errors → errors}/domain-error.js.map +0 -0
- package/{dist/errors → errors}/error-base.d.ts +0 -0
- package/{dist/errors → errors}/error-base.js +0 -0
- package/{dist/errors → errors}/error-base.js.map +0 -0
- package/{dist/errors → errors}/forbidden-error.d.ts +0 -0
- package/{dist/errors → errors}/forbidden-error.js +0 -0
- package/{dist/errors → errors}/forbidden-error.js.map +0 -0
- package/{dist/errors → errors}/index.d.ts +0 -0
- package/{dist/errors → errors}/index.js +0 -0
- package/{dist/errors → errors}/index.js.map +0 -0
- package/{dist/errors → errors}/not-found-error.d.ts +0 -0
- package/{dist/errors → errors}/not-found-error.js +0 -0
- package/{dist/errors → errors}/not-found-error.js.map +0 -0
- package/{dist/errors → errors}/not-implemented-error.d.ts +0 -0
- package/{dist/errors → errors}/not-implemented-error.js +0 -0
- package/{dist/errors → errors}/not-implemented-error.js.map +0 -0
- package/{dist/errors → errors}/unauthorized-error.d.ts +0 -0
- package/{dist/errors → errors}/unauthorized-error.js +0 -0
- package/{dist/errors → errors}/unauthorized-error.js.map +0 -0
- package/{dist/event.d.ts → event.d.ts} +0 -0
- package/{dist/event.js → event.js} +0 -0
- package/{dist/event.js.map → event.js.map} +0 -0
- package/{dist/guid → guid}/index.d.ts +0 -0
- package/{dist/guid → guid}/index.js +0 -0
- package/{dist/guid → guid}/index.js.map +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/{dist/index.js.map → index.js.map} +0 -0
- package/{dist/logger.d.ts → logger.d.ts} +0 -0
- package/{dist/logger.js → logger.js} +0 -0
- package/{dist/logger.js.map → logger.js.map} +0 -0
- package/{dist/maintenance-model.d.ts → maintenance-model.d.ts} +0 -0
- package/{dist/maintenance-model.js → maintenance-model.js} +0 -0
- package/{dist/maintenance-model.js.map → maintenance-model.js.map} +0 -0
- package/{dist/model.d.ts → model.d.ts} +0 -0
- package/{dist/model.js → model.js} +0 -0
- package/{dist/model.js.map → model.js.map} +0 -0
- package/my-devkit-core-1.0.45.tgz +0 -0
- package/package.json +4 -4
- package/{dist/release-model.d.ts → release-model.d.ts} +0 -0
- package/{dist/release-model.js → release-model.js} +0 -0
- package/{dist/release-model.js.map → release-model.js.map} +0 -0
- package/{dist/retry.d.ts → retry.d.ts} +0 -0
- package/{dist/retry.js → retry.js} +0 -0
- package/{dist/retry.js.map → retry.js.map} +0 -0
- package/{dist/serialize → serialize}/deserialize.d.ts +0 -0
- package/{dist/serialize → serialize}/deserialize.js +0 -0
- package/{dist/serialize → serialize}/deserialize.js.map +0 -0
- package/{dist/serialize → serialize}/index.d.ts +0 -0
- package/{dist/serialize → serialize}/index.js +0 -0
- package/{dist/serialize → serialize}/index.js.map +0 -0
- package/{dist/serialize → serialize}/serializable.d.ts +0 -0
- package/{dist/serialize → serialize}/serializable.js +0 -0
- package/{dist/serialize → serialize}/serializable.js.map +0 -0
- package/{dist/serialize → serialize}/serialize.d.ts +0 -0
- package/{dist/serialize → serialize}/serialize.js +0 -0
- package/{dist/serialize → serialize}/serialize.js.map +0 -0
- package/{dist/serialize → serialize}/type-helper.d.ts +0 -0
- package/{dist/serialize → serialize}/type-helper.js +0 -0
- package/{dist/serialize → serialize}/type-helper.js.map +0 -0
- package/{dist/sleep.d.ts → sleep.d.ts} +0 -0
- package/{dist/sleep.js → sleep.js} +0 -0
- package/{dist/sleep.js.map → sleep.js.map} +0 -0
- package/{dist/validators → validators}/custom-validators/camel-case.d.ts +0 -0
- package/{dist/validators → validators}/custom-validators/camel-case.js +0 -0
- package/{dist/validators → validators}/custom-validators/camel-case.js.map +0 -0
- package/{dist/validators → validators}/custom-validators/equals-to.d.ts +0 -0
- package/{dist/validators → validators}/custom-validators/equals-to.js +0 -0
- package/{dist/validators → validators}/custom-validators/equals-to.js.map +0 -0
- package/{dist/validators → validators}/custom-validators/greater-or-equal-than.d.ts +0 -0
- package/{dist/validators → validators}/custom-validators/greater-or-equal-than.js +0 -0
- package/{dist/validators → validators}/custom-validators/greater-or-equal-than.js.map +0 -0
- package/{dist/validators → validators}/custom-validators/greater-than-date.d.ts +0 -0
- package/{dist/validators → validators}/custom-validators/greater-than-date.js +0 -0
- package/{dist/validators → validators}/custom-validators/greater-than-date.js.map +0 -0
- package/{dist/validators → validators}/custom-validators/index.d.ts +0 -0
- package/{dist/validators → validators}/custom-validators/index.js +0 -0
- package/{dist/validators → validators}/custom-validators/index.js.map +0 -0
- package/{dist/validators → validators}/custom-validators/is-not-in-relative-to.d.ts +0 -0
- package/{dist/validators → validators}/custom-validators/is-not-in-relative-to.js +0 -0
- package/{dist/validators → validators}/custom-validators/is-not-in-relative-to.js.map +0 -0
- package/{dist/validators → validators}/custom-validators/is-optional-if.d.ts +0 -0
- package/{dist/validators → validators}/custom-validators/is-optional-if.js +0 -0
- package/{dist/validators → validators}/custom-validators/is-optional-if.js.map +0 -0
- package/{dist/validators → validators}/custom-validators/pascal-case.d.ts +0 -0
- package/{dist/validators → validators}/custom-validators/pascal-case.js +0 -0
- package/{dist/validators → validators}/custom-validators/pascal-case.js.map +0 -0
- package/{dist/validators → validators}/index.d.ts +0 -0
- package/{dist/validators → validators}/index.js +0 -0
- package/{dist/validators → validators}/index.js.map +0 -0
- package/{dist/validators → validators}/validate.d.ts +0 -0
- package/{dist/validators → validators}/validate.js +0 -0
- package/{dist/validators → validators}/validate.js.map +0 -0
- package/{dist/validators → validators}/validation-error.d.ts +0 -0
- package/{dist/validators → validators}/validation-error.js +0 -0
- package/{dist/validators → validators}/validation-error.js.map +0 -0
- package/{dist/vendors → vendors}/index.d.ts +0 -0
- package/{dist/vendors → vendors}/index.js +0 -0
- package/{dist/vendors → vendors}/index.js.map +0 -0
- package/{dist/vendors → vendors}/lodash.d.ts +0 -0
- package/{dist/vendors → vendors}/lodash.js +0 -0
- package/{dist/vendors → vendors}/lodash.js.map +0 -0
- package/.eslintrc.js +0 -15
- package/.vscode/settings.json +0 -7
- package/dist/package.json +0 -39
- package/my-devkit-core-1.0.41.tgz +0 -0
- package/src/command.ts +0 -9
- package/src/date-helper.ts +0 -26
- package/src/decorators/cacheable.decorator.ts +0 -20
- package/src/decorators/index.ts +0 -2
- package/src/decorators/retryable.decorator.ts +0 -11
- package/src/document.ts +0 -5
- package/src/enum-helper.ts +0 -17
- package/src/errors/bad-request-error.ts +0 -8
- package/src/errors/domain-error.ts +0 -8
- package/src/errors/error-base.ts +0 -3
- package/src/errors/forbidden-error.ts +0 -8
- package/src/errors/index.ts +0 -8
- package/src/errors/not-found-error.ts +0 -8
- package/src/errors/not-implemented-error.ts +0 -8
- package/src/errors/unauthorized-error.ts +0 -8
- package/src/event.ts +0 -32
- package/src/guid/index.ts +0 -3
- package/src/index.ts +0 -20
- package/src/logger.ts +0 -71
- package/src/maintenance-model.ts +0 -12
- package/src/model.ts +0 -15
- package/src/release-model.ts +0 -12
- package/src/retry.ts +0 -41
- package/src/serialize/deserialize.ts +0 -11
- package/src/serialize/index.ts +0 -6
- package/src/serialize/serializable.ts +0 -30
- package/src/serialize/serialize.ts +0 -7
- package/src/serialize/type-helper.ts +0 -167
- package/src/sleep.ts +0 -10
- package/src/validators/custom-validators/camel-case.ts +0 -18
- package/src/validators/custom-validators/equals-to.ts +0 -20
- package/src/validators/custom-validators/greater-or-equal-than.ts +0 -23
- package/src/validators/custom-validators/greater-than-date.ts +0 -28
- package/src/validators/custom-validators/index.ts +0 -7
- package/src/validators/custom-validators/is-not-in-relative-to.ts +0 -25
- package/src/validators/custom-validators/is-optional-if.ts +0 -21
- package/src/validators/custom-validators/pascal-case.ts +0 -18
- package/src/validators/index.ts +0 -24
- package/src/validators/validate.ts +0 -134
- package/src/validators/validation-error.ts +0 -27
- package/src/vendors/index.ts +0 -1
- package/src/vendors/lodash.ts +0 -62
- package/tsconfig.json +0 -20
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { getFromContainer, MetadataStorage, validateSync, ValidationError as ClassValidatorValidationError } from 'class-validator';
|
|
2
|
-
import { ValidationMetadata } from 'class-validator/metadata/ValidationMetadata';
|
|
3
|
-
|
|
4
|
-
import { Logger } from '../logger';
|
|
5
|
-
import { ValidationError } from './validation-error';
|
|
6
|
-
|
|
7
|
-
export function validate(data: unknown): ValidationError[] {
|
|
8
|
-
const errors = validateSync(data);
|
|
9
|
-
return recursiveGetErrors(errors);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const validationPriorities = [
|
|
13
|
-
// common validation methods
|
|
14
|
-
'isDefined',
|
|
15
|
-
'equals',
|
|
16
|
-
'notEquals',
|
|
17
|
-
'isEmpty',
|
|
18
|
-
'isNotEmpty',
|
|
19
|
-
'isIn',
|
|
20
|
-
'isNotIn',
|
|
21
|
-
// type validation methods
|
|
22
|
-
'isArray',
|
|
23
|
-
'isBoolean',
|
|
24
|
-
'isDate',
|
|
25
|
-
'isString',
|
|
26
|
-
'isNumber',
|
|
27
|
-
'isInt',
|
|
28
|
-
'isEnum',
|
|
29
|
-
// number validation methods
|
|
30
|
-
'isDivisibleBy',
|
|
31
|
-
'isPositive',
|
|
32
|
-
'isNegative',
|
|
33
|
-
'max',
|
|
34
|
-
'min',
|
|
35
|
-
// date validation methods
|
|
36
|
-
'minDate',
|
|
37
|
-
'maxDate',
|
|
38
|
-
// string-type validation methods
|
|
39
|
-
'isBooleanString',
|
|
40
|
-
'isNumberString',
|
|
41
|
-
// string validation methods
|
|
42
|
-
'contains',
|
|
43
|
-
'notContains',
|
|
44
|
-
'isAlpha',
|
|
45
|
-
'isAlphanumeric',
|
|
46
|
-
'isAscii',
|
|
47
|
-
'isBase64',
|
|
48
|
-
'isByteLength',
|
|
49
|
-
'isCreditCard',
|
|
50
|
-
'isCurrency',
|
|
51
|
-
'isEmail',
|
|
52
|
-
'isFQDN',
|
|
53
|
-
'isFullWidth',
|
|
54
|
-
'isHalfWidth',
|
|
55
|
-
'isVariableWidth',
|
|
56
|
-
'isHexColor',
|
|
57
|
-
'isHexadecimal',
|
|
58
|
-
'isIP',
|
|
59
|
-
'isISBN',
|
|
60
|
-
'isISIN',
|
|
61
|
-
'isISO8601',
|
|
62
|
-
'isJSON',
|
|
63
|
-
'isLowercase',
|
|
64
|
-
'isMobilePhone',
|
|
65
|
-
'isMongoId',
|
|
66
|
-
'isMultibyte',
|
|
67
|
-
'isSurrogatePair',
|
|
68
|
-
'isUrl',
|
|
69
|
-
'isUUID',
|
|
70
|
-
'isUppercase',
|
|
71
|
-
'length',
|
|
72
|
-
'minLength',
|
|
73
|
-
'maxLength',
|
|
74
|
-
'matches',
|
|
75
|
-
'isMilitaryTime',
|
|
76
|
-
// array validation methods
|
|
77
|
-
'arrayContains',
|
|
78
|
-
'arrayNotContains',
|
|
79
|
-
'arrayNotEmpty',
|
|
80
|
-
'arrayMinSize',
|
|
81
|
-
'arrayMaxSize',
|
|
82
|
-
'arrayUnique',
|
|
83
|
-
// custom
|
|
84
|
-
'camelCase',
|
|
85
|
-
'equalsTo',
|
|
86
|
-
'greaterOrEqualThan',
|
|
87
|
-
'greaterThanDate',
|
|
88
|
-
'isNotInRelativeTo',
|
|
89
|
-
'isOptionalIf',
|
|
90
|
-
'pascalCase'
|
|
91
|
-
];
|
|
92
|
-
|
|
93
|
-
function getMetadatas(validationError: ClassValidatorValidationError, constraintName: string): ValidationMetadata {
|
|
94
|
-
const metadatas = getFromContainer(MetadataStorage);
|
|
95
|
-
const validationMetadatas: ValidationMetadata[] = (metadatas as any).validationMetadatas;
|
|
96
|
-
const filteredMetadatas = validationMetadatas
|
|
97
|
-
.filter(vmd => vmd.target === validationError.target.constructor
|
|
98
|
-
&& vmd.propertyName === validationError.property
|
|
99
|
-
&& (vmd.type === constraintName || (vmd.type === 'customValidation' && vmd.constraints[0] && vmd.constraints[0].name === constraintName)));
|
|
100
|
-
return filteredMetadatas[0];
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function recursiveGetErrors(validationErrors: ClassValidatorValidationError[], errors: ValidationError[] = [],
|
|
104
|
-
propertyName = '', previousValueWasArray = false): ValidationError[] {
|
|
105
|
-
validationErrors.forEach(validationError => {
|
|
106
|
-
let actualPropertyName = propertyName;
|
|
107
|
-
let actualPreviousValueWasArray = previousValueWasArray;
|
|
108
|
-
if (validationError.children.length > 0) {
|
|
109
|
-
if (actualPreviousValueWasArray) {
|
|
110
|
-
actualPropertyName = `${actualPropertyName}[${validationError.property}]`;
|
|
111
|
-
} else {
|
|
112
|
-
actualPropertyName =
|
|
113
|
-
actualPropertyName ? `${actualPropertyName}.${validationError.property}` : validationError.property;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
actualPreviousValueWasArray = Array.isArray(validationError.value);
|
|
117
|
-
validationErrors = validationError.children;
|
|
118
|
-
|
|
119
|
-
errors = recursiveGetErrors(validationErrors, errors, actualPropertyName, actualPreviousValueWasArray);
|
|
120
|
-
} else {
|
|
121
|
-
actualPropertyName = actualPropertyName ? `${actualPropertyName}.${validationError.property}` : validationError.property;
|
|
122
|
-
|
|
123
|
-
const constraintName = validationPriorities.find(cm => Object.keys(validationError.constraints).some(cs => cs === cm));
|
|
124
|
-
if (!constraintName) {
|
|
125
|
-
Logger.warn(`validate: Constraint not found for ${actualPropertyName}`);
|
|
126
|
-
} else {
|
|
127
|
-
const metadatas = getMetadatas(validationError, constraintName);
|
|
128
|
-
errors.push(new ValidationError(actualPropertyName, validationError.value, constraintName, metadatas ? metadatas.message : null));
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
return errors;
|
|
134
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ValidationArguments } from 'class-validator';
|
|
2
|
-
|
|
3
|
-
export class ValidationError {
|
|
4
|
-
constructor(
|
|
5
|
-
public readonly property: string,
|
|
6
|
-
public readonly value: string,
|
|
7
|
-
public readonly type: string,
|
|
8
|
-
public readonly message: string | ((args: ValidationArguments) => string)) {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
public getErrorMessage(): string {
|
|
13
|
-
if (this.message && typeof this.message === 'string') {
|
|
14
|
-
return this.message;
|
|
15
|
-
}
|
|
16
|
-
switch (this.type) {
|
|
17
|
-
case 'isNotEmpty':
|
|
18
|
-
return 'Value is mandatory';
|
|
19
|
-
case 'camelCase':
|
|
20
|
-
return 'Value should be camel case (ex: fooBar)';
|
|
21
|
-
case 'pascalCase':
|
|
22
|
-
return 'Value should be pascal case (ex: FooBar)';
|
|
23
|
-
default:
|
|
24
|
-
return this.type;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
package/src/vendors/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lodash';
|
package/src/vendors/lodash.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
2
|
-
import {
|
|
3
|
-
cloneDeep,
|
|
4
|
-
deburr,
|
|
5
|
-
first,
|
|
6
|
-
flatten,
|
|
7
|
-
flattenDeep,
|
|
8
|
-
groupBy,
|
|
9
|
-
isEqual,
|
|
10
|
-
kebabCase,
|
|
11
|
-
last,
|
|
12
|
-
maxBy,
|
|
13
|
-
minBy,
|
|
14
|
-
shuffle,
|
|
15
|
-
sum,
|
|
16
|
-
sumBy,
|
|
17
|
-
trim,
|
|
18
|
-
trimEnd,
|
|
19
|
-
trimStart,
|
|
20
|
-
uniq,
|
|
21
|
-
words,
|
|
22
|
-
} from 'lodash';
|
|
23
|
-
|
|
24
|
-
// Define type (not exported)
|
|
25
|
-
type List<T> = ArrayLike<T>;
|
|
26
|
-
interface Dictionary<T> { [index: string]: T; }
|
|
27
|
-
type NotVoid = unknown;
|
|
28
|
-
type PropertyName = string | number | symbol;
|
|
29
|
-
type PartialShallow<T> = { [P in keyof T]?: T[P] extends object ? object : T[P] };
|
|
30
|
-
type IterateeShorthand<T> = PropertyName | [PropertyName, any] | PartialShallow<T>;
|
|
31
|
-
type Many<T> = T | ReadonlyArray<T>;
|
|
32
|
-
type ValueIteratee<T> = ((value: T) => NotVoid) | IterateeShorthand<T>;
|
|
33
|
-
type RecursiveArray<T> = Array<T | RecursiveArray<T>>;
|
|
34
|
-
type ListOfRecursiveArraysOrValues<T> = List<T | RecursiveArray<T>>;
|
|
35
|
-
type Flat<T> = T extends string ? T : (T extends List<any> ? never : T);
|
|
36
|
-
|
|
37
|
-
// Export functions with proper type
|
|
38
|
-
export const _uniq: <T>(array: List<T> | null | undefined) => T[] = uniq;
|
|
39
|
-
export const _flatten: <T>(array: List<Many<T>>) => T[] = flatten;
|
|
40
|
-
export const _flattenDeep: <T>(array: ListOfRecursiveArraysOrValues<T>) => Flat<T>[] = flattenDeep;
|
|
41
|
-
export const _sumBy: <T>(collection: List<T>, iteratee?: string | ((value: T) => number)) => number = sumBy;
|
|
42
|
-
export const _sum: (collection: List<any>) => number = sum;
|
|
43
|
-
export const _words: {
|
|
44
|
-
(string?: string, pattern?: string | RegExp): string[];
|
|
45
|
-
(string: string, index: string | number, guard: object): string[];
|
|
46
|
-
} = words;
|
|
47
|
-
export const _isEqual: (value: any, other: any) => boolean = isEqual;
|
|
48
|
-
export const _deburr: (string?: string) => string = deburr;
|
|
49
|
-
export const _kebabCase: (string?: string) => string = kebabCase;
|
|
50
|
-
export const _shuffle: {
|
|
51
|
-
<T>(collection: List<T>): T[];
|
|
52
|
-
<T extends object>(collection: T): T[keyof T][];
|
|
53
|
-
} = shuffle;
|
|
54
|
-
export const _groupBy: <T>(collection: List<T>, iteratee?: ValueIteratee<T>) => Dictionary<T[]> = groupBy;
|
|
55
|
-
export const _cloneDeep: <T>(value: T) => T = cloneDeep;
|
|
56
|
-
export const _maxBy: <T>(collection: List<T>, iteratee?: ValueIteratee<T>) => T = maxBy;
|
|
57
|
-
export const _minBy: <T>(collection: List<T>, iteratee?: ValueIteratee<T>) => T = minBy;
|
|
58
|
-
export const _first: <T>(array: List<T>) => T = first;
|
|
59
|
-
export const _last: <T>(array: List<T>) => T = last;
|
|
60
|
-
export const _trim: (string?: string, chars?: string) => string = trim;
|
|
61
|
-
export const _trimStart: (string?: string, chars?: string) => string = trimStart;
|
|
62
|
-
export const _trimEnd: (string?: string, chars?: string) => string = trimEnd;
|
package/tsconfig.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compileOnSave": false,
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"lib": [
|
|
6
|
-
"es2016",
|
|
7
|
-
"dom"
|
|
8
|
-
],
|
|
9
|
-
"outDir": "./dist",
|
|
10
|
-
"baseUrl": "src",
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"declaration": true,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"emitDecoratorMetadata": true,
|
|
15
|
-
"experimentalDecorators": true,
|
|
16
|
-
"typeRoots": [
|
|
17
|
-
"node_modules/@types"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|