Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Apr 4, 2024
1 parent 2669bb4 commit ccc931a
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 4, 2024 11:53 PM UTC.
# Last generated Apr 4, 2024 11:57 PM UTC.

[production]
node >= 20.9.0
Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 4, 2024 11:53 PM UTC.
# Last generated Apr 4, 2024 11:57 PM UTC.

# Locals

Expand Down
8 changes: 4 additions & 4 deletions .env.vault
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ DOTENV_VAULT_MAIN="3rfi+ClkONvfHPiU9FTBcC1+Um/L8QeM9dRw1jFzEqzZXw=="
DOTENV_VAULT_MAIN_VERSION=1

# dev
DOTENV_VAULT_DEV="soKiKFF6PaUiJymdH24sf+AYMxJkXrbgVYTptfKaDRP+6aFlcr6g+97pyxx+tJ8k2AbeQVY8GXy/jZyFpEnqTpNIba1fKWWjEk9oekPiG8WWWuy+CoTfDa/IQ58tjByJxJ0xRl6UOaThURKA5J3LqdB/P7ZebuIQ+gKnON/Nro538q7B2Rxyb/UM3GyO+4/1ryN9TwAYA3Gfr0/d5/EMOq1et+FQZjdg/dDQZID1cRtyb6uUtQ0EO2ASagzhATspodoDaQ1JJPsuZjVZbDvjhNMIsEnWX5AUxCibkhgENyx1j1XV+78Z5DQ+8kalguhdDX43JqCdnbAVw/qV6tzS+Ikt6ThVPKO1yzoJP3r7BySmomzx9cCzLMz7flu/lJVsRQwkOF9tgZjYPpA0N+bT4f14ajc342+CC/WSZ4FgtzLK59XQddpupjrVcDXUTEtont+oThQRzznvdPfRORpWHi7p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V_VAULT_CI_VERSION=307

# stage
DOTENV_VAULT_STAGE="bfqZYD8oVLWMZ0JR5LICV+sB/btaXavszxZLxTfwSH8U5fg="
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 4, 2024 11:53 PM UTC.
# Last generated Apr 4, 2024 11:57 PM UTC.

# Default

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 4, 2024 11:53 PM UTC.
# Last generated Apr 4, 2024 11:57 PM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 4, 2024 11:53 PM UTC.
# Last generated Apr 4, 2024 11:57 PM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 4, 2024 11:53 PM UTC.
# Last generated Apr 4, 2024 11:57 PM UTC.

# Packages

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review `./settings.mjs`.
*
* Last generated using `./settings.mjs` Apr 4, 2024 11:53 PM UTC.
* Last generated using `./settings.mjs` Apr 4, 2024 11:57 PM UTC.
*/
{
"editor.formatOnType": false,
Expand Down
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 4, 2024 11:53 PM UTC.
# Last generated Apr 4, 2024 11:57 PM UTC.

# Locals

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.0.306",
"version": "1.0.307",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities.cfw",
"description": "Utilities for JavaScript apps running in a Cloudflare Worker environment.",
Expand Down
9 changes: 5 additions & 4 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ export type CatchThrownOptions = {
* Catches an error thrown by an API.
*
* @param rcData Request context data.
* @param thrown Thrown; e.g., error, response.
* @param options {@see CatchThrownOptions}.
*/
export const catchThrown = async (rcData: $type.$cfw.RequestContextData, options: CatchThrownOptions): Promise<void> => {
export const catchThrown = async (rcData: $type.$cfw.RequestContextData, thrown: unknown, options: CatchThrownOptions): Promise<void> => {
if ($is.response(thrown)) throw thrown;

const { auditLogger } = rcData,
opts = $obj.defaults({}, options) as Required<CatchThrownOptions>,
{ responseType, responseConfig, thrown, expectedCauses } = opts;

if ($is.response(thrown)) throw thrown;
{ responseType, responseConfig, expectedCauses } = opts;

const message = $error.safeMessageFrom(thrown, {
expectedCauses,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review `./tsconfig.mjs`.
*
* Last generated using `./tsconfig.mjs` Apr 4, 2024 11:53 PM UTC.
* Last generated using `./tsconfig.mjs` Apr 4, 2024 11:57 PM UTC.
*/
{
"include": ["./src/**/*", "./dev-types.d.ts"],
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# @note This entire file will be updated automatically.
# @note Instead of editing here, please review `./wrangler.mjs`.
#
# Last generated using `./wrangler.mjs` Apr 4, 2024 11:53 PM UTC.
# Last generated using `./wrangler.mjs` Apr 4, 2024 11:57 PM UTC.
##

send_metrics = false
Expand Down

0 comments on commit ccc931a

Please sign in to comment.