mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-06 06:17:11 -04:00
🔧:build SSR dist and deploy
This commit is contained in:
parent
76c26901d7
commit
c59ad6aedb
465 changed files with 214127 additions and 2 deletions
16
dist/server/chunks/chunk-f1b4cc24.js
vendored
Normal file
16
dist/server/chunks/chunk-f1b4cc24.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
function withDefaultOnError(cb, defaultValue) {
|
||||
try {
|
||||
return cb();
|
||||
} catch (_) {
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
async function withDefaultOnErrorAsync(cb, defaultValue) {
|
||||
try {
|
||||
return await cb();
|
||||
} catch (_) {
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
export { withDefaultOnErrorAsync as a, withDefaultOnError as w };
|
Loading…
Add table
Add a link
Reference in a new issue