chore(deps): update dependency eslint-plugin-unicorn to v70 - abandoned (#29684)

* chore(deps): update dependency eslint-plugin-unicorn to v70

* fix: linting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
renovate[bot]
2026-07-20 23:47:14 -04:00
committed by GitHub
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Daniel Dietzler
parent 8061a2e5ff
commit df970da59e
266 changed files with 1260 additions and 1212 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ describe('uploadFiles', () => {
const testDir = fs.mkdtempSync(path.join(os.tmpdir(), 'test-'));
const testFilePath = path.join(testDir, 'test.png');
const testFileData = 'test';
const baseUrl = 'http://example.com';
const baseUrl = 'https://example.com';
const apiKey = 'key';
const retry = 3;
+3 -2
View File
@@ -56,6 +56,7 @@ class UploadFile extends File {
super([], basename(filepath));
}
// @ts-expect-error size is already a property on the new File interface
get size() {
return this._size;
}
@@ -440,7 +441,7 @@ const uploadFile = async (
throw new Error(await response.text());
}
return response.json();
return response.json() as Promise<AssetMediaResponseDto>;
};
export const findSidecar = (filepath: string): string | undefined => {
@@ -577,7 +578,7 @@ const updateAlbums = async (assets: Asset[], options: UploadOptionsDto) => {
albumUpdateProgress.start(assets.length, 0);
try {
for (const [albumId, assets] of albumToAssets.entries()) {
for (const [albumId, assets] of albumToAssets) {
for (const assetBatch of chunk(assets, Math.min(1000 * concurrency, 65_000))) {
await addAssetsToAlbum({ id: albumId, bulkIdsDto: { ids: assetBatch } });
albumUpdateProgress.increment(assetBatch.length);