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 3013584 commit 43afe96
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 36 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 5, 2024 8:36 PM UTC.
# Last generated Mar 6, 2024 5:38 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 5, 2024 8:36 PM UTC.
# Last generated Mar 6, 2024 5:38 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="hkPl508POnZEqMla4B7LxbpD6KuWXZtdP9um7C2TgCXFi0JiuEl5fooSDDrsWFsiQATbZnnSj68PqrgUUeoYsWyI1mzS3FqXjBWfhzHEJOa8bHkKL1AwqfmMlFwwHKjDt/UxKOU61SxipQFJYO90+HVOecr1GYOklso6UbXbqWmzEu9xXOPheFt7gGFR5wYfYYTo/KnT6V7s9/gt6DppYP2FEnwUWFxVb+fWp37Sgvaww+HdPvt/AFLPbGjtzINQHm2VZnkDxtQj4dyHnBvwu23RfhqQ+qiHs3ZoOvVspOvhwGIoYgfqzkvsSLj3uItKh+J4+OEED/rJf9SAyQLEYkqZ/Wj8b3babyIgukb+g2cVgxCzHWjiGD75k9l+oC/3cFTSdO4NFaIzzHC8TSyMU07VZ4N93FlO0vLHUdmmDnTuMyBoNa/FTOFdiO7owwDEi67rgbWed50JqL24HvNn3+gFeU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RUU4inm27hghUpAuNYT5RQhui67c6YdphJRpCX+/q1lKQff//7f9EIalP0Dm9mDuhQZ8fat55L1V0we7Ni3bDprb09OwTKljKLBk62QAytJhLsBQrlXKHpVdHyceGEL"
DOTENV_VAULT_CI_VERSION=241
DOTENV_VAULT_CI="sq3STahgnunSAvFGdTpwycywyCFJ3J8SLol1hNIhuB1c7xEXIA7OPmEQ2U1wa5J4RZUVN6wSW7naM62zH6ysSXyO266FsZ5znw6lngKCb2YSLb7J39X5alwbsQDJnSQBciP515Wpu8RCZeOuEFOghpU9peigEw723ojWnxVnbKAaUN8FS6wS4wf8z5qrYyvtO4tn2rq24JYx7WFpnKi2tjDxo/nxqvrHicb1hMP/sJbmSsfEAljVOcZeQwc3SmsqkEcQjfcw1KavG7arZ7os5cAYOmYVqsKRhSfBRG0x/G7y9etT27jDB8QnS10wcOeyJgDmrUIstRNhynUAyfVPntBfKSBfA21DOqdLiRFQeT1v2qrsNjv6hl/dbq6/+MfzFyK7DAcnOqYLUr129VJt8xpfAi7TkH1LtzOfDikcDnvrJuX7YX4fQLCa8CucHcsl2DP1mnSsrKksCVUHUorwCsoaGai74rviaARzH4qndpz2iblYB7yFCWNbJdOItE5WCLI7J8STXE3XlhGDHiQLMpd8QWtcCE8HkoE1WhJmDNruBm+d9oIjKj2Y+18EjEOlSi+cnpEx89HMzQWMN4beO5y2tNhrVjMXiStAZFBoReeoL1+0dtVkmUQ/hi7JzycBTyVQcQxM745KjarWdEBvulJh7KGA90MjGEgf1BbBqfgrPcK1FZq1N9C361LEDL1nJWApoXdZZ5v7zqn5RYxj+feM/gY7N3c1dHGWRwuDJ4mit0dyYehbGluXc1aYZwuNbJ+2Y0gr6XWIiK6YRfuTdq2FsGDw3sVh5mB9zOkets8mntWNYgBRCxGWyZw0eUWmwJl25oy2CPfyS0gGIttNAOVfpHqOQnR5AwYhm00f8fKDYlPXrdbpt9oR2bZ2"
DOTENV_VAULT_CI_VERSION=245

# 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 Mar 5, 2024 8:36 PM UTC.
# Last generated Mar 6, 2024 5:38 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 5, 2024 8:36 PM UTC.
# Last generated Mar 6, 2024 5:38 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 5, 2024 8:36 PM UTC.
# Last generated Mar 6, 2024 5:38 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 5, 2024 8:36 PM UTC.
# Last generated Mar 6, 2024 5:38 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 5, 2024 8:36 PM UTC.
* Last generated using `./settings.mjs` Mar 6, 2024 5:38 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 5, 2024 8:36 PM UTC.
# Last generated Mar 6, 2024 5:38 AM UTC.

# Locals

Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.0.274",
"version": "1.0.276",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities.cfw",
"description": "Utilities for JavaScript apps running in a Cloudflare Worker environment.",
Expand Down Expand Up @@ -64,7 +64,7 @@
},
"dependencies": {},
"peerDependencies": {
"@clevercanyon/utilities": "^1.0.884",
"@clevercanyon/utilities": "^1.0.885",
"@cloudflare/ai": "1.0.53",
"@upstash/ratelimit": "1.0.0",
"@upstash/redis": "1.28.0"
Expand Down
10 changes: 5 additions & 5 deletions src/cfw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ export const cfw = globalThis as unknown as $type.cfw.ServiceWorkerGlobalScope &
): 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 @@ -186,8 +191,6 @@ export const handleFetchEvent = async (ircData: InitialRequestContextData): Prom
// ---
// Misc exports.

export const Ai = AiWithBrokenTypes as new (AI: $type.cfw.Fetcher) => AiClass;

/**
* Creates a scheduled event request.
*
Expand All @@ -214,9 +217,6 @@ export const scheduledEventRequest = async (
const headers = $http.parseHeaders(requestInit.headers || {}) as $type.cfw.Headers;
requestInit.headers = headers; // As a reference to our typed `headers`.

// @review: 'scheduled' === scheduledEvent.type ?
console.log(JSON.stringify(scheduledEvent, null, 4));

if (scheduledEvent.cron /* Only scheduled CRON event requests. */) {
// Scheduled CRON event requests get a default IP and geolocation.
const userIP = '127.13.249.56'; // Random private IPv4.
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 5, 2024 8:36 PM UTC.
* Last generated using `./tsconfig.mjs` Mar 6, 2024 5:38 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 5, 2024 8:36 PM UTC.
# Last generated using `./wrangler.mjs` Mar 6, 2024 5:38 AM UTC.
##

send_metrics = false
Expand Down

0 comments on commit 43afe96

Please sign in to comment.