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 Feb 27, 2024
1 parent 8d20a30 commit 9ea82d0
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 20 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 Feb 27, 2024 5:10 PM UTC.
# Last generated Feb 27, 2024 5:24 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 Feb 27, 2024 5:10 PM UTC.
# Last generated Feb 27, 2024 5:24 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="7GW98NfL4hM4N6HbfeDXCKreVxKvcVPupFRnZ8XJ+pomaQ=="
DOTENV_VAULT_MAIN_VERSION=1

# dev
DOTENV_VAULT_DEV="T+gZ785hnltwm0GDV25uNCLfU1Zo0wrK9eDdh7H5w3dGnru0LCz+N4LkukdTqOUDXEAZ7PDfHgyK7fT7vDADFV8PWbqBveQin9WWYOuT9DvCJrwl9nVWY1UaKID8dWuM1tXrJP9IjzmeexCELH8vqlL0VhECCjyje0aJLUv/cDxhXXp8Ia/CfxKFnDxfDWtilJ2VASimsGx2r5d8UrzTmK4d3pIDkCgZjQJClWInCAbmPbJvkundWcG1yqwEt0zMCQ=="
DOTENV_VAULT_DEV_VERSION=371
DOTENV_VAULT_DEV="RHMRFqxw3Fa1Ge/AbF9dRgOrZtrCyXyLsiDqZoOjWt9KWojrH5oY9jRunlkYQ4YFaYDR+HpWL4K90awAWVmirb5VSyDB6jFMNc88kBo/6+Xdi+dii2t5XK73DXE5YpOD0cpLM5m0LpiFmMQvUUaVMd027ri8o8D1pWE+ZttVQoiNgWWC5LscbBQ0RmFAUiwW39il/EUq8cnBS1uc/HR3/dP9TXqWHlR1wJ8AYtFZA8HNDdPsAlGQjBctIO1TtR6hTg=="
DOTENV_VAULT_DEV_VERSION=373

# ci
DOTENV_VAULT_CI="FtBmhM1M7y20zop+C0hUhJiEITRbvZKceu0ti+sTrecOSJj5OfjBRFEH0muKhHTMVr3ZqC3D4UpyZj0xkAn5PJZ/jWjJq3wAc/Re+UluTuLiOeI8dLCsqcm0/e03XkN3grRROGQut2IddH8NsSSVlpE/PhQARvBPcjw0ZwmocQ=="
DOTENV_VAULT_CI_VERSION=371
DOTENV_VAULT_CI="pgUI9/wVTUoensfm9cS6YRl5YmWHDoWsrGXKxglERuWDe+7dR/UF7UmJpBsNx8ksbb0A7C935NaoWc8w2yPKs6yIgrVbjNMfBVKzormDWfGArkBJZ3/x2QK1Xb/+guwcZbKtPinGMqVhITQ7U68MGKcSxVSeM9rRErWIPC1vUA=="
DOTENV_VAULT_CI_VERSION=373

# stage
DOTENV_VAULT_STAGE="aRP8su2YV4jZu3w1HZ/SLaots0IwJDFw75TCpvXEFeNp7tw="
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 Feb 27, 2024 5:10 PM UTC.
# Last generated Feb 27, 2024 5:24 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 Feb 27, 2024 5:10 PM UTC.
# Last generated Feb 27, 2024 5:24 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 Feb 27, 2024 5:10 PM UTC.
# Last generated Feb 27, 2024 5:24 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 Feb 27, 2024 5:10 PM UTC.
# Last generated Feb 27, 2024 5:24 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` Feb 27, 2024 5:10 PM UTC.
* Last generated using `./settings.mjs` Feb 27, 2024 5:24 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 Feb 27, 2024 5:10 PM UTC.
# Last generated Feb 27, 2024 5:24 PM UTC.

# Locals

Expand Down
10 changes: 5 additions & 5 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.872",
"version": "1.0.873",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities",
"description": "Utilities for JavaScript apps running in any environment.",
Expand Down
15 changes: 15 additions & 0 deletions src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,17 @@ export const contentIsHTML = $fnꓺmemo(2, (headers: $type.HeadersInit): boolean
return contentIsType(headers, 'html'); // Leverages existing utility.
});

/**
* Content is binary?
*
* @param headers HTTP headers.
*
* @returns True if content is binary.
*/
export const contentIsBinary = $fnꓺmemo(2, (headers: $type.HeadersInit): boolean => {
return $mime.typeIsBinary(cleanContentType(headers));
});

/**
* Content is encoded?
*
Expand All @@ -960,6 +971,8 @@ export const contentIsEncoded = $fnꓺmemo(2, (headers: $type.HeadersInit): bool
* @param response HTTP response.
*
* @returns True if response is HTML.
*
* @todo: Deprecate this in favor of {@see contentIsHTML()}.
*/
export const responseIsHTML = $fnꓺmemo(2, (response: $type.Response): boolean => {
return contentIsHTML(response.headers);
Expand All @@ -971,6 +984,8 @@ export const responseIsHTML = $fnꓺmemo(2, (response: $type.Response): boolean
* @param response HTTP response.
*
* @returns True if response is encoded.
*
* @todo: Deprecate this in favor of {@see contentIsEncoded()}.
*/
export const responseIsEncoded = $fnꓺmemo(2, (response: $type.Response): boolean => {
return contentIsEncoded(response.headers);
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` Feb 27, 2024 5:10 PM UTC.
* Last generated using `./tsconfig.mjs` Feb 27, 2024 5:24 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` Feb 27, 2024 5:10 PM UTC.
# Last generated using `./wrangler.mjs` Feb 27, 2024 5:24 PM UTC.
##

send_metrics = false
Expand Down

0 comments on commit 9ea82d0

Please sign in to comment.