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 763306f commit 9135ca8
Show file tree
Hide file tree
Showing 14 changed files with 62 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 3:09 PM UTC.
# Last generated Mar 6, 2024 5:15 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 6, 2024 3:09 PM UTC.
# Last generated Mar 6, 2024 5:15 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="xHca0KBPB5T5REB6ji3ghs0+l4POJffpYmq6v3ts4V7JQInNMb7KUuaDkeBZAQNRWXNZuLdPsftxfB89xu28jqLXDla66jHqBQL7A7SFq2aodFLaIalZGRKVzwon6iqkcgmIYcEUGO7mvj+dt1O7uYEJ65qrf2qmk2jatzXkfGsCBkfteTK+M1SD7GaBkQy7frcjClRp3ntfKvcE8xnnOCyWZpzSnDhZ9uViEnwWFpacFtbPxE2J6TP8zdX2VZXXgxCB2zWg0QXz8elGwCE+I027qplcTeSYeXeTnJmisyod8c/Esb9XLw7V6xZOlXoo8EfMgJnOrBIgTAa6FSBfZcRUhyguriJScOAzBzJYdSZNAhrNSFs1tQE4di1wgRx7DYMh6hVO1D0Ck+QMOcd/SqwwI4dX+qHOaylE5Qf7iXPPw2WVad5Akcv2Tx1YNFy7gwAmhm7RmR2TRcAp8bDXhQ/L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F9"
DOTENV_VAULT_CI_VERSION=251

# 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 6, 2024 3:09 PM UTC.
# Last generated Mar 6, 2024 5:15 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 6, 2024 3:09 PM UTC.
# Last generated Mar 6, 2024 5:15 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 6, 2024 3:09 PM UTC.
# Last generated Mar 6, 2024 5:15 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 6, 2024 3:09 PM UTC.
# Last generated Mar 6, 2024 5:15 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 6, 2024 3:09 PM UTC.
* Last generated using `./settings.mjs` Mar 6, 2024 5:15 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 6, 2024 3:09 PM UTC.
# Last generated Mar 6, 2024 5:15 PM UTC.

# Locals

Expand Down
61 changes: 42 additions & 19 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.278",
"version": "1.0.279",
"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.886",
"@clevercanyon/utilities": "^1.0.887",
"@cloudflare/ai": "1.0.53",
"@upstash/ratelimit": "1.0.0",
"@upstash/redis": "1.28.0"
Expand Down
7 changes: 4 additions & 3 deletions src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,14 @@ export const fetch = async (rcData: $cfw.StdRequestContextData, parseable: $type
* @returns Promise of response from worker using another worker as a proxy.
*/
export const fetchWorker = async (rcData: $cfw.StdRequestContextData, requestInfo: $type.cfw.RequestInfo, requestInit?: $type.cfw.RequestInit): Promise<$type.cfw.Response> => {
const { fetch, Request } = cfw;
const { fetch, Request } = cfw,
proxyRoute = 'https://worker-proxy.c10n.workers.dev/';

if ($is.string(requestInfo) || $is.url(requestInfo)) {
requestInfo = 'https://worker-proxy.c10n.workers.dev/?url=' + $url.encode(requestInfo.toString());
requestInfo = $url.addQueryVar('url', requestInfo.toString(), proxyRoute);
//
} else if (requestInfo instanceof Request) {
requestInfo = new Request('https://worker-proxy.c10n.workers.dev/?url=' + $url.encode(requestInfo.url), requestInfo);
requestInfo = new Request($url.addQueryVar('url', requestInfo.url, proxyRoute), requestInfo);
}
return fetch(requestInfo, requestInit);
};
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 3:09 PM UTC.
* Last generated using `./tsconfig.mjs` Mar 6, 2024 5:15 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 6, 2024 3:09 PM UTC.
# Last generated using `./wrangler.mjs` Mar 6, 2024 5:15 PM UTC.
##

send_metrics = false
Expand Down

0 comments on commit 9135ca8

Please sign in to comment.