@nestia/e2e 8.0.0-dev.20250829 → 8.0.0-dev.20250829-2

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.
@@ -64,10 +64,10 @@ export declare namespace ArrayUtil {
64
64
  * const urls = ['url1', 'url2', 'url3'];
65
65
  *
66
66
  * await ArrayUtil.asyncForEach(urls, async (url, index) => {
67
- * console.log(`Processing ${index}: ${url}`);
68
- * const data = await fetch(url);
69
- * await processData(data);
70
- * console.log(`Completed ${index}: ${url}`);
67
+ * console.log(`Processing ${index}: ${url}`);
68
+ * const data = await fetch(url);
69
+ * await processData(data);
70
+ * console.log(`Completed ${index}: ${url}`);
71
71
  * });
72
72
  * console.log('All URLs processed sequentially');
73
73
  * ```
@@ -92,11 +92,11 @@ export declare namespace ArrayUtil {
92
92
  * const userIds = [1, 2, 3, 4, 5];
93
93
  *
94
94
  * const userDetails = await ArrayUtil.asyncMap(userIds)(
95
- * async (id, index) => {
96
- * console.log(`Fetching user ${id} (${index + 1}/${userIds.length})`);
97
- * const response = await fetch(`/api/users/${id}`);
98
- * return await response.json();
99
- * }
95
+ * async (id, index) => {
96
+ * console.log(`Fetching user ${id} (${index + 1}/${userIds.length})`);
97
+ * const response = await fetch(`/api/users/${id}`);
98
+ * return await response.json();
99
+ * }
100
100
  * );
101
101
  * console.log('All users fetched:', userDetails);
102
102
  * ```
@@ -106,7 +106,7 @@ export declare namespace ArrayUtil {
106
106
  * @returns A function that takes a transformation function and returns a
107
107
  * Promise resolving to the transformed array
108
108
  */
109
- const asyncMap: <Input>(elements: readonly Input[]) => <Output>(closure: (elem: Input, index: number, array: readonly Input[]) => Promise<Output>) => Promise<Output[]>;
109
+ const asyncMap: <Input, Output>(elements: readonly Input[], closure: (elem: Input, index: number, array: readonly Input[]) => Promise<Output>) => Promise<Output[]>;
110
110
  /**
111
111
  * Executes an asynchronous function a specified number of times sequentially.
112
112
  *
@@ -137,8 +137,8 @@ export declare namespace ArrayUtil {
137
137
  /**
138
138
  * Checks if at least one element in the array satisfies the given condition.
139
139
  *
140
- * Similar to JavaScript's native some() method. Returns true immediately
141
- * when the first element satisfying the condition is found.
140
+ * Similar to JavaScript's native some() method. Returns true immediately when
141
+ * the first element satisfying the condition is found.
142
142
  *
143
143
  * @example
144
144
  * ```typescript
@@ -180,9 +180,9 @@ export declare namespace ArrayUtil {
180
180
  *
181
181
  * // Generate an array of default user objects
182
182
  * const users = ArrayUtil.repeat(3, index => ({
183
- * id: index + 1,
184
- * name: `User${index + 1}`,
185
- * email: `user${index + 1}@example.com`
183
+ * id: index + 1,
184
+ * name: `User${index + 1}`,
185
+ * email: `user${index + 1}@example.com`
186
186
  * }));
187
187
  * console.log(users);
188
188
  * // [
package/lib/ArrayUtil.js CHANGED
@@ -141,10 +141,10 @@ var ArrayUtil;
141
141
  * const urls = ['url1', 'url2', 'url3'];
142
142
  *
143
143
  * await ArrayUtil.asyncForEach(urls, async (url, index) => {
144
- * console.log(`Processing ${index}: ${url}`);
145
- * const data = await fetch(url);
146
- * await processData(data);
147
- * console.log(`Completed ${index}: ${url}`);
144
+ * console.log(`Processing ${index}: ${url}`);
145
+ * const data = await fetch(url);
146
+ * await processData(data);
147
+ * console.log(`Completed ${index}: ${url}`);
148
148
  * });
149
149
  * console.log('All URLs processed sequentially');
150
150
  * ```
@@ -180,11 +180,11 @@ var ArrayUtil;
180
180
  * const userIds = [1, 2, 3, 4, 5];
181
181
  *
182
182
  * const userDetails = await ArrayUtil.asyncMap(userIds)(
183
- * async (id, index) => {
184
- * console.log(`Fetching user ${id} (${index + 1}/${userIds.length})`);
185
- * const response = await fetch(`/api/users/${id}`);
186
- * return await response.json();
187
- * }
183
+ * async (id, index) => {
184
+ * console.log(`Fetching user ${id} (${index + 1}/${userIds.length})`);
185
+ * const response = await fetch(`/api/users/${id}`);
186
+ * return await response.json();
187
+ * }
188
188
  * );
189
189
  * console.log('All users fetched:', userDetails);
190
190
  * ```
@@ -194,33 +194,31 @@ var ArrayUtil;
194
194
  * @returns A function that takes a transformation function and returns a
195
195
  * Promise resolving to the transformed array
196
196
  */
197
- ArrayUtil.asyncMap = function (elements) {
198
- return function (closure) { return __awaiter(_this, void 0, void 0, function () {
199
- var ret;
200
- var _this = this;
201
- return __generator(this, function (_a) {
202
- switch (_a.label) {
203
- case 0:
204
- ret = [];
205
- return [4 /*yield*/, ArrayUtil.asyncForEach(elements, function (elem, index, array) { return __awaiter(_this, void 0, void 0, function () {
206
- var output;
207
- return __generator(this, function (_a) {
208
- switch (_a.label) {
209
- case 0: return [4 /*yield*/, closure(elem, index, array)];
210
- case 1:
211
- output = _a.sent();
212
- ret.push(output);
213
- return [2 /*return*/];
214
- }
215
- });
216
- }); })];
217
- case 1:
218
- _a.sent();
219
- return [2 /*return*/, ret];
220
- }
221
- });
222
- }); };
223
- };
197
+ ArrayUtil.asyncMap = function (elements, closure) { return __awaiter(_this, void 0, void 0, function () {
198
+ var ret;
199
+ var _this = this;
200
+ return __generator(this, function (_a) {
201
+ switch (_a.label) {
202
+ case 0:
203
+ ret = [];
204
+ return [4 /*yield*/, ArrayUtil.asyncForEach(elements, function (elem, index, array) { return __awaiter(_this, void 0, void 0, function () {
205
+ var output;
206
+ return __generator(this, function (_a) {
207
+ switch (_a.label) {
208
+ case 0: return [4 /*yield*/, closure(elem, index, array)];
209
+ case 1:
210
+ output = _a.sent();
211
+ ret.push(output);
212
+ return [2 /*return*/];
213
+ }
214
+ });
215
+ }); })];
216
+ case 1:
217
+ _a.sent();
218
+ return [2 /*return*/, ret];
219
+ }
220
+ });
221
+ }); };
224
222
  /**
225
223
  * Executes an asynchronous function a specified number of times sequentially.
226
224
  *
@@ -289,8 +287,8 @@ var ArrayUtil;
289
287
  /**
290
288
  * Checks if at least one element in the array satisfies the given condition.
291
289
  *
292
- * Similar to JavaScript's native some() method. Returns true immediately
293
- * when the first element satisfying the condition is found.
290
+ * Similar to JavaScript's native some() method. Returns true immediately when
291
+ * the first element satisfying the condition is found.
294
292
  *
295
293
  * @example
296
294
  * ```typescript
@@ -332,9 +330,9 @@ var ArrayUtil;
332
330
  *
333
331
  * // Generate an array of default user objects
334
332
  * const users = ArrayUtil.repeat(3, index => ({
335
- * id: index + 1,
336
- * name: `User${index + 1}`,
337
- * email: `user${index + 1}@example.com`
333
+ * id: index + 1,
334
+ * name: `User${index + 1}`,
335
+ * email: `user${index + 1}@example.com`
338
336
  * }));
339
337
  * console.log(users);
340
338
  * // [
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayUtil.js","sourceRoot":"","sources":["../src/ArrayUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,IAAiB,SAAS,CA6SzB;AA7SD,WAAiB,SAAS;;IACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACU,qBAAW,GAAG,UACzB,QAA0B,EAC1B,IAIqB;;;;;;oBAEf,GAAG,GAAY,EAAE,CAAC;oBACxB,qBAAM,UAAA,YAAY,CAAC,QAAQ,EAAE,UAAO,IAAI,EAAE,KAAK,EAAE,KAAK;;;;4CAC9B,qBAAM,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,EAAA;;wCAA9C,IAAI,GAAY,SAA8B;wCACpD,IAAI,IAAI,KAAK,IAAI;4CAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;6BACnC,CAAC,EAAA;;oBAHF,SAGE,CAAC;oBACH,sBAAO,GAAG,EAAC;;;SACZ,CAAC;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACU,sBAAY,GAAG,UAC1B,QAA0B,EAC1B,OAIiB;;;wBAEjB,qBAAM,UAAA,WAAW,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAC,KAAK;wBACvC,OAAA,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,CA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AAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7D,IAAM,MAAM,GAAU,EAAE,CAAC;QAEzB,IAAM,GAAG,GAAG,UAAC,KAAa;YACxB,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM;gBACxB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAC,EAAE,EAAE,GAAG,IAAK,OAAA,KAAK,CAAC,GAAG,CAAC,EAAV,CAAU,CAAC,CAAC,CAAC;iBAChD,CAAC;gBACJ,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;gBACpB,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAEf,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;gBACrB,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;YACjB,CAAC;QACH,CAAC,CAAC;QACF,GAAG,CAAC,CAAC,CAAC,CAAC;QACP,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC,EA5SgB,SAAS,yBAAT,SAAS,QA4SzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/e2e",
3
- "version": "8.0.0-dev.20250829",
3
+ "version": "8.0.0-dev.20250829-2",
4
4
  "description": "E2E test utilify functions",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
package/src/ArrayUtil.ts CHANGED
@@ -79,10 +79,10 @@ export namespace ArrayUtil {
79
79
  * const urls = ['url1', 'url2', 'url3'];
80
80
  *
81
81
  * await ArrayUtil.asyncForEach(urls, async (url, index) => {
82
- * console.log(`Processing ${index}: ${url}`);
83
- * const data = await fetch(url);
84
- * await processData(data);
85
- * console.log(`Completed ${index}: ${url}`);
82
+ * console.log(`Processing ${index}: ${url}`);
83
+ * const data = await fetch(url);
84
+ * await processData(data);
85
+ * console.log(`Completed ${index}: ${url}`);
86
86
  * });
87
87
  * console.log('All URLs processed sequentially');
88
88
  * ```
@@ -119,11 +119,11 @@ export namespace ArrayUtil {
119
119
  * const userIds = [1, 2, 3, 4, 5];
120
120
  *
121
121
  * const userDetails = await ArrayUtil.asyncMap(userIds)(
122
- * async (id, index) => {
123
- * console.log(`Fetching user ${id} (${index + 1}/${userIds.length})`);
124
- * const response = await fetch(`/api/users/${id}`);
125
- * return await response.json();
126
- * }
122
+ * async (id, index) => {
123
+ * console.log(`Fetching user ${id} (${index + 1}/${userIds.length})`);
124
+ * const response = await fetch(`/api/users/${id}`);
125
+ * return await response.json();
126
+ * }
127
127
  * );
128
128
  * console.log('All users fetched:', userDetails);
129
129
  * ```
@@ -133,22 +133,21 @@ export namespace ArrayUtil {
133
133
  * @returns A function that takes a transformation function and returns a
134
134
  * Promise resolving to the transformed array
135
135
  */
136
- export const asyncMap =
137
- <Input>(elements: readonly Input[]) =>
138
- async <Output>(
139
- closure: (
140
- elem: Input,
141
- index: number,
142
- array: readonly Input[],
143
- ) => Promise<Output>,
144
- ): Promise<Output[]> => {
145
- const ret: Output[] = [];
146
- await asyncForEach(elements, async (elem, index, array) => {
147
- const output: Output = await closure(elem, index, array);
148
- ret.push(output);
149
- });
150
- return ret;
151
- };
136
+ export const asyncMap = async <Input, Output>(
137
+ elements: readonly Input[],
138
+ closure: (
139
+ elem: Input,
140
+ index: number,
141
+ array: readonly Input[],
142
+ ) => Promise<Output>,
143
+ ): Promise<Output[]> => {
144
+ const ret: Output[] = [];
145
+ await asyncForEach(elements, async (elem, index, array) => {
146
+ const output: Output = await closure(elem, index, array);
147
+ ret.push(output);
148
+ });
149
+ return ret;
150
+ };
152
151
 
153
152
  /**
154
153
  * Executes an asynchronous function a specified number of times sequentially.
@@ -189,8 +188,8 @@ export namespace ArrayUtil {
189
188
  /**
190
189
  * Checks if at least one element in the array satisfies the given condition.
191
190
  *
192
- * Similar to JavaScript's native some() method. Returns true immediately
193
- * when the first element satisfying the condition is found.
191
+ * Similar to JavaScript's native some() method. Returns true immediately when
192
+ * the first element satisfying the condition is found.
194
193
  *
195
194
  * @example
196
195
  * ```typescript
@@ -236,9 +235,9 @@ export namespace ArrayUtil {
236
235
  *
237
236
  * // Generate an array of default user objects
238
237
  * const users = ArrayUtil.repeat(3, index => ({
239
- * id: index + 1,
240
- * name: `User${index + 1}`,
241
- * email: `user${index + 1}@example.com`
238
+ * id: index + 1,
239
+ * name: `User${index + 1}`,
240
+ * email: `user${index + 1}@example.com`
242
241
  * }));
243
242
  * console.log(users);
244
243
  * // [