Skip to content

Commit 8e3970c

Browse files
committed
v14.5.2
1 parent 33502e9 commit 8e3970c

File tree

3 files changed

+61
-55
lines changed

3 files changed

+61
-55
lines changed

docs/additional_info/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 14.5.2 (05-May-2025)
4+
5+
* Display a warning message for files downloads when the request is too big (thanks, @kosmos2uh)
6+
37
## 14.5.1 (04-May-2025)
48

59
* Minor code tweaks

package-lock.json

Lines changed: 54 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/collections/files.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export class Files extends BaseCollection<File, QueuedProcess> {
3939
headers: Headers,
4040
): T {
4141
if (this.isResponseTooBig(headers)) {
42-
console.warn('\x1b[33m\x1b[1mWarning:\x1b[0m Project too big for sync export. Please use our async export lokaliseApi.files().async_download() method.');
42+
console.warn(
43+
"\x1b[33m\x1b[1mWarning:\x1b[0m Project too big for sync export. Please use our async export lokaliseApi.files().async_download() method.",
44+
);
4345
}
4446
return {
4547
...super.returnBareJSON<T>(json, headers),

0 commit comments

Comments
 (0)