Skip to content

Commit

Permalink
chore: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Oct 4, 2024
1 parent ba8b146 commit c7e246c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 23 deletions.
2 changes: 2 additions & 0 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Will return `false` in the Browser.
*/
export function isServerSide(): boolean {
// eslint-disable-next-line unicorn/prefer-global-this
return typeof window === 'undefined'
}

Expand All @@ -15,5 +16,6 @@ export function isServerSide(): boolean {
* Will return `false` in Node.js.
*/
export function isClientSide(): boolean {
// eslint-disable-next-line unicorn/prefer-global-this
return typeof window !== 'undefined'
}
1 change: 1 addition & 0 deletions src/number/number.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function _isBetween<T extends number | string>(
}

export function _clamp(x: number, minIncl: number, maxIncl: number): number {
// eslint-disable-next-line unicorn/prefer-math-min-max
return x <= minIncl ? minIncl : x >= maxIncl ? maxIncl : x
}

Expand Down
46 changes: 23 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz#d50e8d37b1176207b4fe9acedec386c565a44a54"
integrity sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==

"@babel/helper-validator-identifier@^7.24.5", "@babel/helper-validator-identifier@^7.25.7":
"@babel/helper-validator-identifier@^7.24.7", "@babel/helper-validator-identifier@^7.25.7":
version "7.25.7"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz#77b7f60c40b15c97df735b38a66ba1d7c3e93da5"
integrity sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==
Expand Down Expand Up @@ -1300,9 +1300,9 @@
typescript "^5.0.2"

"@naturalcycles/dev-lib@^15.0.3":
version "15.19.0"
resolved "https://registry.yarnpkg.com/@naturalcycles/dev-lib/-/dev-lib-15.19.0.tgz#d3fe91291353a3b3d45e00f0efe86e64633da117"
integrity sha512-68RH5bl765MIsYCLGQdmYr2LjhjD1fKZUw0KVpUvVPNHdTQpX4q0HUi4nJgyEibZUi9Epzl+F2NxUIQfNuqA6A==
version "15.20.0"
resolved "https://registry.yarnpkg.com/@naturalcycles/dev-lib/-/dev-lib-15.20.0.tgz#79104a22c30874e8bfd3bdac8d03a541cca5c33e"
integrity sha512-u8s6PlKp4jrKe2x9ZJrLOQbFOt1gRXP/Cy8hpnjzWw14zcLf+FMk6As2SKye/yNgIuQ18J2xHs/ptEGphEw+4Q==
dependencies:
"@biomejs/biome" "^1.8.3"
"@commitlint/cli" "^19.0.0"
Expand All @@ -1320,7 +1320,7 @@
eslint-plugin-jest "^28.0.0"
eslint-plugin-jsdoc "^50.0.0"
eslint-plugin-simple-import-sort "^12.1.1"
eslint-plugin-unicorn "^55.0.0"
eslint-plugin-unicorn "^56.0.0"
eslint-plugin-vue "^9.0.0"
expect-type "^1.0.0"
globals "^15.8.0"
Expand Down Expand Up @@ -2410,9 +2410,9 @@ camelcase@^6.2.0:
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==

caniuse-lite@^1.0.30001663:
version "1.0.30001666"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001666.tgz#112d77e80f1762f62a1b71ba92164e0cb3f3dd13"
integrity sha512-gD14ICmoV5ZZM1OdzPWmpx+q4GyefaK06zi8hmfHV5xe4/2nOQX3+Dw5o+fSqOws2xVwL9j+anOPFwHzdEdV4g==
version "1.0.30001667"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz#99fc5ea0d9c6e96897a104a8352604378377f949"
integrity sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw==

ccount@^2.0.0:
version "2.0.1"
Expand Down Expand Up @@ -2641,7 +2641,7 @@ copy-anything@^3.0.2:
dependencies:
is-what "^4.1.8"

core-js-compat@^3.37.0:
core-js-compat@^3.38.1:
version "3.38.1"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.38.1.tgz#2bc7a298746ca5a7bcb9c164bcb120f2ebc09a09"
integrity sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==
Expand Down Expand Up @@ -2978,26 +2978,26 @@ eslint-plugin-simple-import-sort@^12.1.1:
resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-12.1.1.tgz#e64bfdaf91c5b98a298619aa634a9f7aa43b709e"
integrity sha512-6nuzu4xwQtE3332Uz0to+TxDQYRLTKRESSc2hefVT48Zc8JthmN23Gx9lnYhu0FtkRSL1oxny3kJ2aveVhmOVA==

eslint-plugin-unicorn@^55.0.0:
version "55.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-55.0.0.tgz#e2aeb397914799895702480970e7d148df5bcc7b"
integrity sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==
eslint-plugin-unicorn@^56.0.0:
version "56.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-56.0.0.tgz#9fd3ebe6f478571734541fa745026b743175b59e"
integrity sha512-aXpddVz/PQMmd69uxO98PA4iidiVNvA0xOtbpUoz1WhBd4RxOQQYqN618v68drY0hmy5uU2jy1bheKEVWBjlPw==
dependencies:
"@babel/helper-validator-identifier" "^7.24.5"
"@babel/helper-validator-identifier" "^7.24.7"
"@eslint-community/eslint-utils" "^4.4.0"
ci-info "^4.0.0"
clean-regexp "^1.0.0"
core-js-compat "^3.37.0"
esquery "^1.5.0"
globals "^15.7.0"
core-js-compat "^3.38.1"
esquery "^1.6.0"
globals "^15.9.0"
indent-string "^4.0.0"
is-builtin-module "^3.2.1"
jsesc "^3.0.2"
pluralize "^8.0.0"
read-pkg-up "^7.0.1"
regexp-tree "^0.1.27"
regjsparser "^0.10.0"
semver "^7.6.1"
semver "^7.6.3"
strip-indent "^3.0.0"

eslint-plugin-vue@^9.0.0:
Expand Down Expand Up @@ -3431,7 +3431,7 @@ globals@^14.0.0:
resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e"
integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==

globals@^15.7.0, globals@^15.8.0:
globals@^15.8.0, globals@^15.9.0:
version "15.10.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-15.10.0.tgz#a7eab3886802da248ad8b6a9ccca6573ff899c9b"
integrity sha512-tqFIbz83w4Y5TCbtgjZjApohbuh7K9BxGYFm7ifwDR240tvdb7P9x+/9VvUKlmkPoiknoJtanI8UOrqxS3a7lQ==
Expand Down Expand Up @@ -4335,9 +4335,9 @@ lint-staged@^15.0.1:
yaml "~2.5.0"

listr2@~8.2.4:
version "8.2.4"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-8.2.4.tgz#486b51cbdb41889108cb7e2c90eeb44519f5a77f"
integrity sha512-opevsywziHd3zHCVQGAj8zu+Z3yHNkkoYhWIGnq54RrCVwLz0MozotJEDnKsIBLvkfLGN6BLOyAeRrYI0pKA4g==
version "8.2.5"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-8.2.5.tgz#5c9db996e1afeb05db0448196d3d5f64fec2593d"
integrity sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==
dependencies:
cli-truncate "^4.0.0"
colorette "^2.0.20"
Expand Down Expand Up @@ -5222,7 +5222,7 @@ semver@^6.3.0, semver@^6.3.1:
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==

semver@^7.3.2, semver@^7.3.6, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.1, semver@^7.6.3:
semver@^7.3.2, semver@^7.3.6, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3:
version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==
Expand Down

0 comments on commit c7e246c

Please sign in to comment.