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 6, 2024
1 parent 43afe96 commit c2733c2
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 38 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 6, 2024 5:38 AM UTC.
# Last generated Mar 6, 2024 5:44 AM 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 6, 2024 5:38 AM UTC.
# Last generated Mar 6, 2024 5:44 AM 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="Z2neo6qDCxFAqysWleQLxd99TA9Au+qub6IvYwwU5XoejHz47fFd4oBdn1R3NuXYx3uyZBMCut8edJy8itYd+KC36J64yYT03TQeEy6skFQRt1bVmjL0ExMArvyae9MPukV11SWd4I7Ko14W5zJncg4WAo2CDRnjLCpt1nuLlgMejfKjoiQsxuGRIm72d2sccJwReM+XAwQIfJAcxTAR63YYRO5RmkVyqdpE4liLTwa91nTytlBcM6D9TW04Q0TDjU9RRVhRlDxOd7W4m5iDUxDCYrGT5zOtIbsOXj5psOx7n804Kx/Ui336FNQJ9aX9q7Omgfn5oqEi2+a6Ai189qHAM/LIMQ2kDzvly6jDQESQMEBAcBLhOK0c4yc/GY9xG4D3/1Eb1Tiv7vDMbfwCAGGN0r4jJRfAuQheqV7Yeg/yK7HblZlTtorXJ11IBSP9MDsmg8LGo6m9dL/zZHCNvi3HyQK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AGE="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 Mar 6, 2024 5:38 AM UTC.
# Last generated Mar 6, 2024 5:44 AM 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 6, 2024 5:38 AM UTC.
# Last generated Mar 6, 2024 5:44 AM 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 6, 2024 5:38 AM UTC.
# Last generated Mar 6, 2024 5:44 AM 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 6, 2024 5:38 AM UTC.
# Last generated Mar 6, 2024 5:44 AM 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 6, 2024 5:38 AM UTC.
* Last generated using `./settings.mjs` Mar 6, 2024 5:44 AM 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 6, 2024 5:38 AM UTC.
# Last generated Mar 6, 2024 5:44 AM 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.276",
"version": "1.0.277",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities.cfw",
"description": "Utilities for JavaScript apps running in a Cloudflare Worker environment.",
Expand Down
34 changes: 17 additions & 17 deletions src/cfw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import '#@initialize.ts';
import { $app, $bytes, $class, $crypto, $env, $error, $http, $is, $mm, $obj, $url, $user, type $type } from '@clevercanyon/utilities';

// @ts-ignore -- Broken types.
import { Ai as AiWithBrokenTypes } from '@cloudflare/ai';
import type { Ai as AiClass } from '@cloudflare/ai/dist/ai.d.ts';
import { Ai as AiClass } from '@cloudflare/ai';
import type { Ai as AiInstance } from '@cloudflare/ai/dist/ai.d.ts';

/**
* Defines types.
Expand Down Expand Up @@ -76,21 +76,6 @@ export type StdRequestContextData = Readonly<{
*/
let initializedGlobals = false;

/**
* Cloudflare worker global scope.
*/
export const cfw = globalThis as unknown as $type.cfw.ServiceWorkerGlobalScope & {
fetch(
this: void, // {@see https://typescript-eslint.io/rules/unbound-method/}.
...args: Parameters<$type.cfw.ServiceWorkerGlobalScope['fetch']>
): ReturnType<$type.cfw.ServiceWorkerGlobalScope['fetch']>;
};

/**
* Cloudflare Worker AI class definition.
*/
export const Ai = AiWithBrokenTypes as new (AI: $type.cfw.Fetcher) => AiClass;

/**
* Initializes worker globals.
*
Expand Down Expand Up @@ -191,6 +176,21 @@ export const handleFetchEvent = async (ircData: InitialRequestContextData): Prom
// ---
// Misc exports.

/**
* Cloudflare worker global scope.
*/
export const cfw = globalThis as unknown as $type.cfw.ServiceWorkerGlobalScope & {
fetch(
this: void, // {@see https://typescript-eslint.io/rules/unbound-method/}.
...args: Parameters<$type.cfw.ServiceWorkerGlobalScope['fetch']>
): ReturnType<$type.cfw.ServiceWorkerGlobalScope['fetch']>;
};

/**
* Cloudflare Worker AI class definition.
*/
export const Ai = AiClass as new (AI: $type.cfw.Fetcher) => AiInstance;

/**
* Creates a scheduled event request.
*
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 6, 2024 5:38 AM UTC.
* Last generated using `./tsconfig.mjs` Mar 6, 2024 5:44 AM 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 6, 2024 5:38 AM UTC.
# Last generated using `./wrangler.mjs` Mar 6, 2024 5:44 AM UTC.
##

send_metrics = false
Expand Down

0 comments on commit c2733c2

Please sign in to comment.