Skip to content

Commit

Permalink
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.62.0 to…
Browse files Browse the repository at this point in the history
… 6.9.0 (#2140)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.62.0 to 6.9.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.9.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update parser as well

* Fix linter

* tune

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mykola Mokhnach <mokhnach@gmail.com>
  • Loading branch information
dependabot[bot] and mykola-mokhnach authored Oct 24, 2023
1 parent bd83034 commit 29fa00a
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 155 deletions.
8 changes: 4 additions & 4 deletions lib/commands/hid-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1437,8 +1437,8 @@ export enum HIDUsageBCSEvent {
kHIDUsage_BCS_CheckDigitDisable = 0xd7 /* SEL - Check Digit Disable */,
kHIDUsage_BCS_CheckDigitEnableInterleaved2of5OPCC = 0xd8 /* SEL - Check Digit Enable Interleaved 2 of 5 OPCC */,
kHIDUsage_BCS_CheckDigitEnableInterleaved2of5USS = 0xd9 /* SEL - Check Digit Enable Interleaved 2 of 5 USS */,
kHIDUsage_BCS_CheckDigitEnableStandard2of5OPCC = 0xd8 /* SEL - Check Digit Enable Standard 2 of 5 OPCC */,
kHIDUsage_BCS_CheckDigitEnableStandard2of5USS = 0xd9 /* SEL - Check Digit Enable Standard 2 of 5 USS */,
kHIDUsage_BCS_CheckDigitEnableStandard2of5OPCC = kHIDUsage_BCS_CheckDigitEnableInterleaved2of5OPCC /* SEL - Check Digit Enable Standard 2 of 5 OPCC */,
kHIDUsage_BCS_CheckDigitEnableStandard2of5USS = kHIDUsage_BCS_CheckDigitEnableInterleaved2of5USS /* SEL - Check Digit Enable Standard 2 of 5 USS */,
kHIDUsage_BCS_CheckDigitEnableOneMSIPlessey = 0xdc /* SEL - Check Digit Enable One MSI Plessey */,
kHIDUsage_BCS_CheckDigitEnableTwoMSIPlessey = 0xdd /* SEL - Check Digit Enable Two MSI Plessey */,
kHIDUsage_BCS_CheckDigitCodabarEnable = 0xde /* SEL - Check Digit Codabar Enable */,
Expand All @@ -1457,7 +1457,7 @@ export enum HIDUsageBCSEvent {
kHIDUsage_BCS_ScannerDataAccuracy = 0x101 /* DV - Scanner Data Accuracy */,
kHIDUsage_BCS_RawDataPolarity = 0x102 /* NArry - Raw Data Polarity */,
kHIDUsage_BCS_PolarityInvertedBarCode = 0x103 /* SEL - Polarity Inverted Bar Code */,
kHIDUsage_BCS_PolarityNormalBarCode = 0x103 /* SEL - Polarity Normal Bar Code */,
kHIDUsage_BCS_PolarityNormalBarCode = kHIDUsage_BCS_PolarityInvertedBarCode /* SEL - Polarity Normal Bar Code */,
/* Reserved 0x105 */
kHIDUsage_BCS_MinimumLengthToDecode = 0x106 /* DV - Minimum Length to Decode */,
kHIDUsage_BCS_MaximumLengthToDecode = 0x107 /* DV - Maximum Length to Decode */,
Expand Down Expand Up @@ -1596,7 +1596,7 @@ export enum HIDPageEvent {
/* Reserved 0x88 - 0x8B */
kHIDPage_BarCodeScanner = 0x8c /* (Point of Sale) USB Device Class Definition for Bar Code Scanner Devices */,
kHIDPage_WeighingDevice = 0x8d /* (Point of Sale) USB Device Class Definition for Weighing Devices */,
kHIDPage_Scale = 0x8d /* (Point of Sale) USB Device Class Definition for Scale Devices */,
kHIDPage_Scale = kHIDPage_WeighingDevice /* (Point of Sale) USB Device Class Definition for Scale Devices */,
kHIDPage_MagneticStripeReader = 0x8e,
/* ReservedPointofSalepages 0x8F */
kHIDPage_CameraControl = 0x90 /* USB Device Class Definition for Image Class Devices */,
Expand Down
52 changes: 21 additions & 31 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,41 +189,31 @@ async function clearSystemFiles(wda) {
log.debug(`Did not find the temporary XCTest logs root at '${globPattern}'`);
} else {
// perform the cleanup asynchronously
/** @type {Promise[]} */
const promises = [];
for (const dstFolder of dstFolders) {
let scheduledFilesCount = 0;
B.resolve(
fs.walkDir(dstFolder, true, (itemPath, isDir) => {
if (isDir) {
return;
}
const fileName = path.basename(itemPath);
if (!XCTEST_LOG_FILES_PATTERNS.some((p) => p.test(fileName))) {
return;
}

// delete the file asynchronously
// eslint-disable-next-line promise/prefer-await-to-then
fs.unlink(itemPath).catch((e) => {
log.info(e.message);
const promise = (async () => {
try {
await fs.walkDir(dstFolder, true, (itemPath, isDir) => {
if (isDir) {
return;
}
const fileName = path.basename(itemPath);
if (XCTEST_LOG_FILES_PATTERNS.some((p) => p.test(fileName))) {
fs.rimraf(itemPath);
}
});
scheduledFilesCount++;
// eslint-disable-next-line promise/prefer-await-to-then
}),
)
.finally(() => {
if (scheduledFilesCount > 0) {
log.info(
`Scheduled ${scheduledFilesCount} temporary XCTest log ` +
`${util.pluralize('file', scheduledFilesCount)} for cleanup in '${dstFolder}'`,
);
}
// eslint-disable-next-line promise/prefer-await-to-then
})
.catch((e) => {
} catch (e) {
log.debug(e.stack);
log.info(e.message);
});
}
})();
promises.push(promise);
}
log.debug(`Started XCTest logs cleanup in '${dstFolders}'`);
if (promises.length) {
await B.all(promises);
}
log.debug(`Started background XCTest logs cleanup in '${dstFolders}'`);
}

if (await fs.exists(logsRoot)) {
Expand Down
Loading

0 comments on commit 29fa00a

Please sign in to comment.