@rockster/class-pipe 0.0.1 → 0.0.3
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/decorators/common/expose.decorator.js.map +1 -1
- package/decorators/common/transform-output.decorator.d.ts +1 -1
- package/decorators/common/transform-output.decorator.js.map +1 -1
- package/decorators/date/is-date.decorator.js.map +1 -1
- package/decorators/string/is-vat.decorator.d.ts +1 -1
- package/decorators/string/is-vat.decorator.js.map +1 -1
- package/functions/check.d.ts +20 -14
- package/functions/is-property-optional.d.ts +1 -1
- package/package.json +10 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expose.decorator.js","sourceRoot":"","sources":["../../../decorators/common/expose.decorator.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAQ7D,MAAM,MAAM,GAAG,CAAC,OAAuB,EAAE,EAAE;IAC/C,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,EAAE;QACpC,MAAM,QAAQ,GAAG,SAAS;aACtB,OAAO;aACP,cAAc,CACZ,MAAM,EACN,WAAW,CACb,CAAC;QACL,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;QACvB,QAAQ,CAAC,UAAU,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC;QAC1C,QAAQ,CAAC,YAAY,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC;QACxC,QAAQ,CAAC,iBAAiB,GAAG,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAA,KAAK,SAAS;YAChE,CAAC,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAA;YACpB,CAAC,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"expose.decorator.js","sourceRoot":"","sources":["../../../decorators/common/expose.decorator.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAQ7D,MAAM,MAAM,GAAG,CAAC,OAAuB,EAAE,EAAE;IAC/C,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,EAAE;QACpC,MAAM,QAAQ,GAAG,SAAS;aACtB,OAAO;aACP,cAAc,CACZ,MAAM,EACN,WAAW,CACb,CAAC;QACL,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;QACvB,QAAQ,CAAC,UAAU,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC;QAC1C,QAAQ,CAAC,YAAY,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC;QACxC,QAAQ,CAAC,iBAAiB,GAAG,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAA,KAAK,SAAS;YAChE,CAAC,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAA;YACpB,CAAC,CAAC,KAAK,CAAC;QACX,IAAA,mCAAe,EAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC,CAAA;AACJ,CAAC,CAAA;AAhBY,QAAA,MAAM,UAgBlB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TransformHandle } from "../../interfaces";
|
|
2
|
-
export declare const TransformOutput: <TParent = unknown>(output: TransformHandle<TParent>) => (target: any, propertyKey: string) => void;
|
|
2
|
+
export declare const TransformOutput: <TValue = unknown, TParent = unknown>(output: TransformHandle<TValue, TParent>) => (target: any, propertyKey: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-output.decorator.js","sourceRoot":"","sources":["../../../decorators/common/transform-output.decorator.ts"],"names":[],"mappings":";;;AAEO,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"transform-output.decorator.js","sourceRoot":"","sources":["../../../decorators/common/transform-output.decorator.ts"],"names":[],"mappings":";;;AAEO,MAAM,eAAe,GAAG,CAAsC,MAAwC,EAAE,EAAE;IAC9G,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,EAAE;QACpC,MAAM,QAAQ,GAAG,SAAS;aACtB,OAAO;aACP,cAAc,CACZ,MAAM,EACN,WAAW,CACb,CAAC;QACL,QAAQ,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;IACtC,CAAC,CAAA;AACJ,CAAC,CAAA;AAVY,QAAA,eAAe,mBAU3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-date.decorator.js","sourceRoot":"","sources":["../../../decorators/date/is-date.decorator.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"is-date.decorator.js","sourceRoot":"","sources":["../../../decorators/date/is-date.decorator.ts"],"names":[],"mappings":";;;;;;AACA,uEAAmE;AACnE,mEAA+D;AAC/D,+DAA2D;AAC3D,2FAAmF;AACnF,6DAAyD;AACzD,oDAA4B;AAQrB,MAAM,MAAM,GAAG,CACnB,OAAiB,EAClB,EAAE;IACD,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,EAAE;QACpC,MAAM,eAAe,GAAG,8BAA8B,CAAC;QACvD,MAAM,OAAO,GAAG,IAAA,wBAAU,EACvB,eAAe,EACf,OAAO,CACT,CAAC,OAAO,CAAC,UAAU,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;YAClC,CAAC,CAAC,iBAAiB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,KAAK;YACvC,CAAC,CAAC,EAAE,CACN,CAAC;QACF,MAAM,QAAQ,GAAG,SAAS;aACtB,OAAO;aACP,cAAc,CACZ,MAAM,EACN,WAAW,CACb,CAAC;QACL,QAAQ,CAAC,IAAI,GAAG,4BAAY,CAAC,IAAI,CAAC;QAClC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC;YAC7B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,WAAW;YACpB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,OAAO,CAAC;YACf,OAAO;YACP,eAAe;YACf,QAAQ,EAAE;gBACP,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;aACzB;SACH,CAAC,CAAC;QACH,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC;YACtB,OAAO;YACP,QAAQ,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;gBAE1C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;gBACrC,MAAM,UAAU,GAAG,IAAA,8BAAa,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;gBAClD,IAAI,UAAU,EAAE,CAAC;oBAAC,OAAO;gBAAC,CAAC;gBAC3B,MAAM,OAAO,GAAG,IAAA,0BAAW,EAAC,GAAG,EAAE;oBAC9B,MAAM,IAAI,GAAG,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC;oBAC3B,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;gBACzB,CAAC,CAAC,CAAC;gBAEH,IAAA,kDAAqB,EAAC;oBACnB,QAAQ,EAAE,CAAC,OAAO;oBAClB,SAAS;oBACT,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,MAAM;oBACN,WAAW;oBACX,KAAK;oBACL,KAAK;iBACP,CAAC,CAAC;YACN,CAAC;SACH,CAAC,CAAC;IACN,CAAC,CAAA;AACJ,CAAC,CAAA;AAxDY,QAAA,MAAM,UAwDlB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IValidatorOptions } from '../../interfaces/validator-options';
|
|
2
2
|
type Options = IValidatorOptions;
|
|
3
|
-
export declare const IsVAT: (countryCode?:
|
|
3
|
+
export declare const IsVAT: (countryCode?: validator.VATCountryCode, options?: Options) => (target: any, propertyKey: string) => void;
|
|
4
4
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-vat.decorator.js","sourceRoot":"","sources":["../../../decorators/string/is-vat.decorator.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAElC,uEAAmE;AACnE,mEAAgF;AAChF,+DAA2D;AAC3D,2FAAmF;AACnF,6DAAyD;AAOlD,MAAM,KAAK,GAAG,CAClB,
|
|
1
|
+
{"version":3,"file":"is-vat.decorator.js","sourceRoot":"","sources":["../../../decorators/string/is-vat.decorator.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAElC,uEAAmE;AACnE,mEAAgF;AAChF,+DAA2D;AAC3D,2FAAmF;AACnF,6DAAyD;AAOlD,MAAM,KAAK,GAAG,CAClB,WAAsC,EACtC,OAAiB,EAClB,EAAE;IACD,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,EAAE;QACpC,MAAM,eAAe,GAAG,4BAA4B,CAAC;QACrD,MAAM,OAAO,GAAG,IAAA,wBAAU,EACvB,eAAe,EACf,OAAO,CACT,CAAC;QACF,MAAM,QAAQ,GAAG,SAAS;aACtB,OAAO;aACP,cAAc,CACZ,MAAM,EACN,WAAW,CACb,CAAC;QACL,QAAQ,CAAC,IAAI,GAAG,4BAAY,CAAC,MAAM,CAAC;QACpC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC;YAC7B,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,WAAW;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC;YAC5B,OAAO;YACP,eAAe;YACf,QAAQ,EAAE;gBACP,WAAW;aACb;SACH,CAAC,CAAC;QACH,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC;YACtB,OAAO,EAAE,OAAO;YAChB,QAAQ,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;gBAE1C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;gBACrC,MAAM,UAAU,GAAG,IAAA,8BAAa,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;gBAClD,IAAI,UAAU,EAAE,CAAC;oBAAC,OAAO;gBAAC,CAAC;gBAC3B,MAAM,OAAO,GAAG,IAAA,0BAAW,EAAC,GAAG,EAAE,CAAC,CAC/B,mBAAS,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CACrC,CAAC,CAAC;gBAEH,IAAA,kDAAqB,EAAC;oBACnB,QAAQ,EAAE,CAAC,OAAO;oBAClB,SAAS;oBACT,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,MAAM;oBACN,WAAW;oBACX,KAAK;oBACL,KAAK;iBACP,CAAC,CAAC;YACN,CAAC;SACH,CAAC,CAAC;IACN,CAAC,CAAA;AACJ,CAAC,CAAA;AArDY,QAAA,KAAK,SAqDjB"}
|
package/functions/check.d.ts
CHANGED
|
@@ -4,22 +4,26 @@ export declare const check: {
|
|
|
4
4
|
contains(str: string, seed: any, options?: import("validator").ContainsOptions): boolean;
|
|
5
5
|
equals(str: string, comparison: string): boolean;
|
|
6
6
|
isAbaRouting(str: string): boolean;
|
|
7
|
-
isAfter(str: string,
|
|
7
|
+
isAfter(str: string, dateStringOrOptions?: string | import("validator").IsAfterOptions): boolean;
|
|
8
8
|
isAlpha(str: string, locale?: import("validator").AlphaLocale, options?: import("validator").IsAlphaOptions): boolean;
|
|
9
9
|
isAlphanumeric(str: string, locale?: import("validator").AlphanumericLocale, options?: import("validator").IsAlphanumericOptions): boolean;
|
|
10
10
|
isAscii(str: string): boolean;
|
|
11
|
-
isBase32(str: string): boolean;
|
|
11
|
+
isBase32(str: string, options?: import("validator").IsBase32Options): boolean;
|
|
12
12
|
isBase58(str: string): boolean;
|
|
13
13
|
isBase64(str: string, options?: import("validator").IsBase64Options): boolean;
|
|
14
|
-
isBefore(str: string,
|
|
14
|
+
isBefore(str: string, dateStringOrOptions?: string | import("validator").IsBeforeOptions): boolean;
|
|
15
15
|
isBIC(str: string): boolean;
|
|
16
|
-
isByteLength(str: string,
|
|
16
|
+
isByteLength(str: string, optionsOrMin?: number | import("validator").IsByteLengthOptions): boolean;
|
|
17
|
+
isByteLength(str: string, min: number, max: number): boolean;
|
|
17
18
|
isCreditCard(str: string, options?: import("validator").IsCreditCardOptions): boolean;
|
|
18
19
|
isCurrency(str: string, options?: import("validator").IsCurrencyOptions): boolean;
|
|
19
20
|
isEthereumAddress(str: string): boolean;
|
|
20
21
|
isBtcAddress(str: string): boolean;
|
|
21
22
|
isDataURI(str: string): boolean;
|
|
22
|
-
isDate(
|
|
23
|
+
isDate(input: Date, formatOrOptions: import("validator").IsDateOptions & {
|
|
24
|
+
strictMode: true;
|
|
25
|
+
}): false;
|
|
26
|
+
isDate(input: string | Date, formatOrOptions?: string | import("validator").IsDateOptions): boolean;
|
|
23
27
|
isDecimal(str: string, options?: import("validator").IsDecimalOptions): boolean;
|
|
24
28
|
isDivisibleBy(str: string, number: number): boolean;
|
|
25
29
|
isMailtoURI(str: string, options?: import("validator").IsEmailOptions): boolean;
|
|
@@ -31,12 +35,12 @@ export declare const check: {
|
|
|
31
35
|
isHexadecimal(str: string): boolean;
|
|
32
36
|
isHexColor(str: string): boolean;
|
|
33
37
|
isHSL(str: string): boolean;
|
|
34
|
-
isRgbColor(str: string,
|
|
38
|
+
isRgbColor(str: string, includePercentValuesOrOptions?: boolean | import("validator").IsRgbColorOptions): boolean;
|
|
35
39
|
isIdentityCard(str: string, locale?: "any" | import("validator").IdentityCardLocale): boolean;
|
|
36
40
|
isIMEI(str: string, options?: import("validator").IsIMEIOptions): boolean;
|
|
37
41
|
isIn(str: string, values: any[]): boolean;
|
|
38
42
|
isInt(str: string, options?: import("validator").IsIntOptions): boolean;
|
|
39
|
-
isIP(str: string,
|
|
43
|
+
isIP(str: string, versionOrOptions?: import("validator").IPVersion | import("validator").IsIPOptions): boolean;
|
|
40
44
|
isIPRange(str: string, version?: import("validator").IPVersion): boolean;
|
|
41
45
|
isISBN(str: string, version?: import("validator").ISBNVersion): boolean;
|
|
42
46
|
isEAN(str: string): boolean;
|
|
@@ -49,11 +53,12 @@ export declare const check: {
|
|
|
49
53
|
isISSN(str: string, options?: import("validator").IsISSNOptions): boolean;
|
|
50
54
|
isISRC(str: string): boolean;
|
|
51
55
|
isRFC3339(str: string): boolean;
|
|
52
|
-
isJSON(str: string): boolean;
|
|
56
|
+
isJSON(str: string, options?: import("validator").IsJSONOptions): boolean;
|
|
53
57
|
isJWT(str: string): boolean;
|
|
54
|
-
isLatLong(str: string): boolean;
|
|
55
|
-
isLength(str: string,
|
|
56
|
-
|
|
58
|
+
isLatLong(str: string, options?: import("validator").IsLatLongOptions): boolean;
|
|
59
|
+
isLength(str: string, minOrOptions?: number | import("validator").IsLengthOptions): boolean;
|
|
60
|
+
isLength(str: string, min: number, max: number): boolean;
|
|
61
|
+
isLicensePlate(str: string, locale: import("validator").LicensePlateLocale | "any"): boolean;
|
|
57
62
|
isLicensePlate(str: string, locale: string): unknown;
|
|
58
63
|
isLocale(str: string): boolean;
|
|
59
64
|
isLowercase(str: string): boolean;
|
|
@@ -74,18 +79,19 @@ export declare const check: {
|
|
|
74
79
|
isStrongPassword(str: string, options?: import("validator").StrongPasswordOptions & {
|
|
75
80
|
returnScore?: false | undefined;
|
|
76
81
|
}): boolean;
|
|
77
|
-
isStrongPassword(str: string, options
|
|
82
|
+
isStrongPassword(str: string, options?: import("validator").StrongPasswordOptions & {
|
|
78
83
|
returnScore: true;
|
|
79
84
|
}): number;
|
|
85
|
+
isStrongPassword(str: string, options?: import("validator").StrongPasswordOptions): boolean | number;
|
|
80
86
|
isSurrogatePair(str: string): boolean;
|
|
81
87
|
isTime(str: string, options?: import("validator").IsTimeOptions): boolean;
|
|
82
88
|
isUppercase(str: string): boolean;
|
|
83
89
|
isULID(str: string): boolean;
|
|
84
90
|
isUUID(str: string, version?: import("validator").UUIDVersion): boolean;
|
|
85
91
|
isVariableWidth(str: string): boolean;
|
|
86
|
-
isVAT(str: string, countryCode:
|
|
92
|
+
isVAT(str: string, countryCode: import("validator").VATCountryCode): boolean;
|
|
87
93
|
isWhitelisted(str: string, chars: string | string[]): boolean;
|
|
88
|
-
matches(str: string, pattern: RegExp): boolean;
|
|
94
|
+
matches(str: string, pattern: RegExp | string): boolean;
|
|
89
95
|
matches(str: string, pattern: string, modifiers?: string): boolean;
|
|
90
96
|
isSlug(str: string): boolean;
|
|
91
97
|
blacklist(input: string, chars: string): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IProperty } from "../interfaces";
|
|
1
|
+
import { IProperty } from "../interfaces/property";
|
|
2
2
|
export declare const isPropertyOptional: (property: IProperty, groups?: string[]) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rockster/class-pipe",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"main": "index",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:dev": "npm run pre:build && tsc -p tsconfig.prod.json -w",
|
|
10
10
|
"post:publish": "cd ./dist && npm publish"
|
|
11
11
|
},
|
|
12
|
-
"author": "
|
|
12
|
+
"author": "Hubseat",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/node": "^20.8.10",
|
|
@@ -20,13 +20,15 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://
|
|
23
|
+
"url": "https://git.hubseat.io/rockster/rockster-class-pipe"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@rockster/class-injector": "0.0.
|
|
27
|
-
"@rockster/class-memory": "0.0.
|
|
28
|
-
"@rockster/common": "0.0.
|
|
29
|
-
"@types/validator": "^13.15.
|
|
30
|
-
"
|
|
26
|
+
"@rockster/class-injector": "0.0.2",
|
|
27
|
+
"@rockster/class-memory": "0.0.3",
|
|
28
|
+
"@rockster/common": "0.0.3",
|
|
29
|
+
"@types/validator": "^13.15.10",
|
|
30
|
+
"dot-object": "^2.1.4",
|
|
31
|
+
"moment": "^2.30.1",
|
|
32
|
+
"validator": "^13.15.26"
|
|
31
33
|
}
|
|
32
34
|
}
|