Update dependency filesize to v10.1.1 (#116)
All checks were successful
continuous-integration/drone/push Build is passing

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [filesize](https://filesizejs.com) ([source](https://github.com/avoidwork/filesize.js)) | dependencies | patch | [`10.1.0` -> `10.1.1`](https://renovatebot.com/diffs/npm/filesize/10.1.0/10.1.1) |

---

### Release Notes

<details>
<summary>avoidwork/filesize.js (filesize)</summary>

### [`v10.1.1`](https://github.com/avoidwork/filesize.js/blob/HEAD/CHANGELOG.md#1011)

[Compare Source](https://github.com/avoidwork/filesize.js/compare/10.1.0...10.1.1)

-   Rework types to allow Parameters\<typeof filesize> to function properly [`#180`](https://github.com/avoidwork/filesize.js/pull/180)
-   Bump [@&#8203;babel/traverse](https://github.com/babel/traverse) from 7.23.0 to 7.23.2 [`#178`](https://github.com/avoidwork/filesize.js/pull/178)
-   change: rework types to allow usages like Parameters\<typeof filesize> [`fbfc87f`](fbfc87f4d2)
-   Generating CHANGELOG.md [`d80c457`](d80c4579e1)
-   fix: types for partial now return a higher order function [`af4a6ef`](af4a6efe8e)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->

Reviewed-on: #116
This commit is contained in:
Pierre HUBERT 2024-03-22 10:38:13 +00:00
parent ca5aa30e92
commit b1398fee2d
3 changed files with 5 additions and 6 deletions

View File

@ -2734,10 +2734,9 @@
"license": "MIT"
},
"node_modules/filesize": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.0.tgz",
"integrity": "sha512-GTLKYyBSDz3nPhlLVPjPWZCnhkd9TrrRArNcy8Z+J2cqScB7h2McAzR6NBX6nYOoWafql0roY8hrocxnZBv9CQ==",
"license": "BSD-3-Clause",
"version": "10.1.1",
"resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.1.tgz",
"integrity": "sha512-L0cdwZrKlwZQkMSFnCflJ6J2Y+5egO/p3vgRSDQGxQt++QbUZe5gMbRO6kg6gzwQDPvq2Fk9AmoxUNfZ5gdqaQ==",
"engines": {
"node": ">= 10.4.0"
}

View File

@ -5,7 +5,7 @@ use diesel::result::{DatabaseErrorKind, Error};
use diesel::{Connection, PgConnection};
use std::cell::RefCell;
thread_local! {
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = RefCell::new(None);
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = const { RefCell::new(None) };
}
/// Execute a request on the database

View File

@ -7,7 +7,7 @@ use std::cell::RefCell;
use std::time::Duration;
thread_local! {
static REDIS_CONNECTION: RefCell<Option<redis::Client>> = RefCell::new(None);
static REDIS_CONNECTION: RefCell<Option<redis::Client>> = const { RefCell::new(None) };
}
/// Execute a request on Redis