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 Mar 16, 2024
1 parent 4682155 commit 83eaac3
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 29 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 Mar 16, 2024 1:27 PM UTC.
# Last generated Mar 16, 2024 6:23 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 Mar 16, 2024 1:27 PM UTC.
# Last generated Mar 16, 2024 6:23 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="1O0cYOF/FlUUEXaQGATWmzHpVQ241EnjCZYaAVqgwAKm0xv+GPUZbBGNaVoaE6keUUL2DRvfLE2z+l6+rv2kb979t5T+9WaZKMY5kHUgYP3YuKaBzPqoKa0G785JlH1+7exn8CwCzb5+A6Rh0SRJTo4kQi+LA9t2vIb8dlmzcqJTIYK95sbhHtDPAN3L1ZLipCxBCosLHt7yoim3A3YAwwUAV7G4JvCUGYeS/VN0Chlm5uWEDD0utd7v1XXxiyNfaQ=="
DOTENV_VAULT_DEV_VERSION=461
DOTENV_VAULT_DEV="KTkZsq9IrH/SMhrj1Ux9TdOLFbyrPTHSXYWgBbLqYETy5cPEBU4tES0bE7VbFTyoXg2XOoZHYwWIAJ0S70eZXBqrNo01t7Tuza4puAM8CaTpoXtbsTf388zeVBVD7Mv44SAFIAoFqDJgn3fiG28JKKLJecdk3UoOKdIgY/JJmtSkyn1oZSg94abLUsciSPPi7qEJzGVlOjTdUqv6W3Cp1e5a9698d5zWEtxFO6WsZQxgiBXdon/ZjVhz4cfrHkWiuQ=="
DOTENV_VAULT_DEV_VERSION=463

# ci
DOTENV_VAULT_CI="SZjAXZsdqeqtxcdrWlS0wCo/MsMQtrgRFpk3gZ8/sf6h/DwmxNNvPghrcQHOO3E/xoYqYiBr48juochkdIzJk6dD8FB+IBQGW8bihMNzkvkKalyhfEXrtI1dqKTwNxcdsfrAU7O6plVSPcSDLwOR9ZgxvxOu7ZTWFHIZ9YM1IQ=="
DOTENV_VAULT_CI_VERSION=461
DOTENV_VAULT_CI="QeppaXeS0hY13B+HhFsge7Pj815wD9L4te9xFY1Gj8n8mRt34ukiMiW1HYc57cUgN4PJXWxhrXpzhQTh+4Nt/K0uKTTeCMzLXMbFL3+MB8dIvruBmhcUCyEFF1vBWTiTWOrbMFbXtlB/p3ignH3NB/XbvIrulaMv/Je1g/Vp/Q=="
DOTENV_VAULT_CI_VERSION=463

# 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 Mar 16, 2024 1:27 PM UTC.
# Last generated Mar 16, 2024 6:23 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 Mar 16, 2024 1:27 PM UTC.
# Last generated Mar 16, 2024 6:23 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 Mar 16, 2024 1:27 PM UTC.
# Last generated Mar 16, 2024 6:23 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 Mar 16, 2024 1:27 PM UTC.
# Last generated Mar 16, 2024 6:23 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` Mar 16, 2024 1:27 PM UTC.
* Last generated using `./settings.mjs` Mar 16, 2024 6:23 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 Mar 16, 2024 1:27 PM UTC.
# Last generated Mar 16, 2024 6:23 PM UTC.

# Locals

Expand Down
16 changes: 8 additions & 8 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.917",
"version": "1.0.918",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities",
"description": "Utilities for JavaScript apps running in any environment.",
Expand Down
12 changes: 12 additions & 0 deletions src/resources/types/cfw.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Types.
*/
// organize-imports-ignore

import { type $type } from '#index.ts';
export type * from '@cloudflare/workers-types/experimental';
import type * as cfw from '@cloudflare/workers-types/experimental';

export type Request = cfw.Request & {
c10n?: $type.RequestC10n['c10n'];
};
3 changes: 2 additions & 1 deletion src/resources/types/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Defines types for environments.
* Types.
*/

interface Navigator {
globalPrivacyControl: string;
}
Expand Down
3 changes: 2 additions & 1 deletion src/resources/types/gtag.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Defines types for Google Analytics.
* Types.
*/

interface Window {
dataLayer: IArguments[];
gtag: (...args: unknown[]) => void;
Expand Down
3 changes: 2 additions & 1 deletion src/resources/types/turnstile.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Defines types for Turnstile.
* Types.
*/

interface Window {
onloadTurnstile: () => void;
}
Expand Down
12 changes: 9 additions & 3 deletions src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import '#@initialize.ts';

import { type Dayjs } from 'dayjs';
import type * as cfw from '#@types/cfw.ts';
import { type Interface as LoggerInterface } from '#@classes/logger.ts';
import type * as cfw from '@cloudflare/workers-types/experimental';
import { $to, type $http } from '#index.ts';

// ---
Expand Down Expand Up @@ -56,6 +56,7 @@ export type { $RawHeadersInit as RawHeadersInit };

export type { $Request as Request };
export type { $RequestInit as RequestInit };
export type { $RequestC10n as RequestC10n };

export type { $Response as Response };
export type { $ResponseInit as ResponseInit };
Expand Down Expand Up @@ -491,9 +492,14 @@ type $Headers = Headers | cfw.Headers;
type $HeadersInit = HeadersInit | cfw.HeadersInit | $StrKeyable<{ [x: string]: string }>;
type $RawHeadersInit = HeadersInit | cfw.HeadersInit | $StrKeyable<{ [x: string]: string }> | string;

type $Request = Request | cfw.Request;
type $Request = (Request | cfw.Request) & { cache?: string };
type $RequestInit = (RequestInit | cfw.RequestInit) & { cache?: string };

type $RequestC10n = {
c10n?: {
scheduledEvent?: $cfw.ScheduledEvent;
serviceBinding?: { subrequestCounter: $cfw.SubrequestCounter };
};
};
type $Response = Response | cfw.Response;
type $ResponseInit = ResponseInit | cfw.ResponseInit;
type $BodyInit = BodyInit | cfw.BodyInit;
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` Mar 16, 2024 1:27 PM UTC.
* Last generated using `./tsconfig.mjs` Mar 16, 2024 6:23 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` Mar 16, 2024 1:27 PM UTC.
# Last generated using `./wrangler.mjs` Mar 16, 2024 6:23 PM UTC.
##

send_metrics = false
Expand Down

0 comments on commit 83eaac3

Please sign in to comment.