@nestia/e2e 0.8.2 → 0.8.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/README.md
CHANGED
|
@@ -21,8 +21,8 @@ Nestia is a set of helper libraries for NestJS, supporting below features:
|
|
|
21
21
|
- Automatic E2E test functions generator
|
|
22
22
|
- `@nestia/e2e`: Test program utilizing e2e test functions
|
|
23
23
|
- `@nestia/benchmark`: Benchmark program using e2e test functions
|
|
24
|
-
- `@nestia/chat`: Super A.I. Chatbot by Swagger document
|
|
25
24
|
- `@nestia/editor`: Swagger-UI with Online TypeScript Editor
|
|
25
|
+
- `@agentica`: Agentic AI library specialized in LLM function calling
|
|
26
26
|
- `nestia`: Just CLI (command line interface) tool
|
|
27
27
|
|
|
28
28
|
> [!NOTE]
|
package/lib/TestValidator.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export declare namespace TestValidator {
|
|
|
81
81
|
* @param title Title of error message when sorting is invalid
|
|
82
82
|
* @example https://github.com/samchon/nestia-template/blob/master/src/test/features/api/bbs/test_api_bbs_article_index_sort.ts
|
|
83
83
|
*/
|
|
84
|
-
const sort: (title: string) => <T extends object, Fields extends string, Sortable extends Array<`-${Fields}` | `+${Fields}`> =
|
|
84
|
+
const sort: (title: string) => <T extends object, Fields extends string, Sortable extends Array<`-${Fields}` | `+${Fields}`> = Array<`-${Fields}` | `+${Fields}`>>(getter: (sortable: Sortable) => Promise<T[]>) => (...fields: Fields[]) => (comp: (x: T, y: T) => number, filter?: (elem: T) => boolean) => (direction: "+" | "-", trace?: boolean) => Promise<void>;
|
|
85
85
|
type Sortable<Literal extends string> = Array<`-${Literal}` | `+${Literal}`>;
|
|
86
86
|
}
|
|
87
87
|
interface IEntity<Type extends string | number | bigint> {
|
|
@@ -8,7 +8,9 @@ var json_equal_to = function (exception) {
|
|
|
8
8
|
var iterate = function (accessor) {
|
|
9
9
|
return function (x) {
|
|
10
10
|
return function (y) {
|
|
11
|
-
if (typeof x
|
|
11
|
+
if (typeof x === "function" || typeof y === "function")
|
|
12
|
+
return;
|
|
13
|
+
else if (typeof x !== typeof y)
|
|
12
14
|
container.push(accessor);
|
|
13
15
|
else if (x instanceof Array)
|
|
14
16
|
if (!(y instanceof Array))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json_equal_to.js","sourceRoot":"","sources":["../../src/internal/json_equal_to.ts"],"names":[],"mappings":";;;AAAO,IAAM,aAAa,GACxB,UAAC,SAAmC;IACpC,OAAA,UAAI,CAAI;QACR,OAAA,UAAC,CAAI;YACH,IAAM,SAAS,GAAa,EAAE,CAAC;YAC/B,IAAM,OAAO,GACX,UAAC,QAAgB;gBACjB,OAAA,UAAC,CAAM;oBACP,OAAA,UAAC,CAAM;wBACL,IAAI,OAAO,CAAC,KAAK,OAAO,CAAC;4BAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"json_equal_to.js","sourceRoot":"","sources":["../../src/internal/json_equal_to.ts"],"names":[],"mappings":";;;AAAO,IAAM,aAAa,GACxB,UAAC,SAAmC;IACpC,OAAA,UAAI,CAAI;QACR,OAAA,UAAC,CAAI;YACH,IAAM,SAAS,GAAa,EAAE,CAAC;YAC/B,IAAM,OAAO,GACX,UAAC,QAAgB;gBACjB,OAAA,UAAC,CAAM;oBACP,OAAA,UAAC,CAAM;wBACL,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,OAAO,CAAC,KAAK,UAAU;4BAAE,OAAO;6BAC1D,IAAI,OAAO,CAAC,KAAK,OAAO,CAAC;4BAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;6BACpD,IAAI,CAAC,YAAY,KAAK;4BACzB,IAAI,CAAC,CAAC,CAAC,YAAY,KAAK,CAAC;gCAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;;gCAC/C,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CA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C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAClB,OAAO,SAAS,CAAC;QACnB,CAAC;IA/BD,CA+BC;AAhCD,CAgCC,CAAC;AAlCS,QAAA,aAAa,iBAkCtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/e2e",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "E2E test utilify functions",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"rimraf": "^6.0.1",
|
|
40
40
|
"ts-node": "^10.9.1",
|
|
41
41
|
"ts-patch": "^3.3.0",
|
|
42
|
-
"typescript": "~5.
|
|
42
|
+
"typescript": "~5.8.2",
|
|
43
43
|
"typescript-transform-paths": "^3.4.7",
|
|
44
|
-
"typia": "^
|
|
44
|
+
"typia": "^8.0.0"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"lib",
|
|
@@ -7,7 +7,8 @@ export const json_equal_to =
|
|
|
7
7
|
(accessor: string) =>
|
|
8
8
|
(x: any) =>
|
|
9
9
|
(y: any): void => {
|
|
10
|
-
if (typeof x
|
|
10
|
+
if (typeof x === "function" || typeof y === "function") return;
|
|
11
|
+
else if (typeof x !== typeof y) container.push(accessor);
|
|
11
12
|
else if (x instanceof Array)
|
|
12
13
|
if (!(y instanceof Array)) container.push(accessor);
|
|
13
14
|
else array(accessor)(x)(y);
|