Skip to content

Commit 478c983

Browse files
author
Danny McCormick
authored
Enable large numbers of children to be pushed in find (microsoft#509)
* Get rid of ... operator and reverse * Update package.json * Update package-lock.json
1 parent ca5952d commit 478c983

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

node/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-task-lib",
3-
"version": "3.0.2-preview",
3+
"version": "3.1.0-preview",
44
"description": "Azure Pipelines Task SDK",
55
"main": "./task.js",
66
"typings": "./task.d.ts",

node/task.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,9 @@ export function find(findPath: string, options?: FindOptions): string[] {
918918
let childItems: _FindItem[] =
919919
fs.readdirSync(item.path)
920920
.map((childName: string) => new _FindItem(path.join(item.path, childName), childLevel));
921-
stack.push(...childItems.reverse());
921+
for (var i = childItems.length - 1; i >= 0; i--) {
922+
stack.push(childItems[i]);
923+
}
922924
}
923925
else {
924926
debug(` ${item.path} (file)`);

0 commit comments

Comments
 (0)