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 23, 2024
1 parent 16a258e commit 33936d9
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 48 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 23, 2024 8:48 AM UTC.
# Last generated Feb 23, 2024 10:51 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 23, 2024 8:48 AM UTC.
# Last generated Feb 23, 2024 10:51 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="A3KkZIjO9zbGJufm4hpZ0qBJdR4ZnqM7DdT2tL7/YXBY6+70pAPfzbNEIkwsg/ePC1a4sfH0KwmPw0q0jMZC8xKsu1loy5LLKDDbC2q3cwGm3MWJfZPyNaCGMeUslL8kZtMzElJ0AYMel3o0nJtHL62s/eL8OXR63ZDlSm08dWrhbIqVqDB11Aed97rIskVklHV61SRfWkIcKJ30CcpfqyENCeCoRx24UGfTJe9Vkb9hxqlIz1ekPGxo6DGpr2XpZvs75Tq5A2abcnjGkUAF/ZIMlVuelpCamXqfFjGbZZpcdkL/zU2K8PzrNiD9OHL4cwkz41Mjr//RCguXNYDqgh6xaVm3MpD7BmGwNLLQb8PNKJnXNTWSaVeJdAk/mw+t9rW4vESifhHwjOhrdIn/+wh8yDNAn5dQXIqdgV9oga+VngxBSZK05cykqXFK4bbp/SsXfttQRTNwSLWw0M+d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VERSION=183

# 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 Feb 23, 2024 8:48 AM UTC.
# Last generated Feb 23, 2024 10:51 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 23, 2024 8:48 AM UTC.
# Last generated Feb 23, 2024 10:51 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 23, 2024 8:48 AM UTC.
# Last generated Feb 23, 2024 10:51 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 23, 2024 8:48 AM UTC.
# Last generated Feb 23, 2024 10:51 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 23, 2024 8:48 AM UTC.
* Last generated using `./settings.mjs` Feb 23, 2024 10:51 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 23, 2024 8:48 AM UTC.
# Last generated Feb 23, 2024 10:51 PM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion dev/.files/wrangler/settings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default async () => {
// This is Clever Canyon’s account ID. ↓
defaultAccountId: 'f1176464a976947aa5665d989814a4b1',

compatibilityDate: '2023-08-15',
compatibilityDate: '2023-12-01',
compatibilityFlags: [], // None, for now.

defaultLocalIP: '0.0.0.0',
Expand Down
44 changes: 22 additions & 22 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.244",
"version": "1.0.245",
"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 @@ -59,7 +59,7 @@
},
"dependencies": {},
"peerDependencies": {
"@clevercanyon/utilities": "^1.0.848",
"@clevercanyon/utilities": "^1.0.849",
"@upstash/ratelimit": "1.0.0",
"@upstash/redis": "1.28.0"
},
Expand Down
16 changes: 8 additions & 8 deletions src/cfw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ export const serviceBindingRequest = async (rcData: StdRequestContextData, reque
const { Request } = cfw,
{ request: originalRequest } = rcData;

const importantParentRequestInit = {
headers: { 'cf-connecting-ip': await $user.ip(originalRequest) },
cf: $obj.omit($obj.cloneDeep(await $user.ipGeoData(originalRequest)), ['ip']),
};
return new Request(
requestInfo, // e.g., Service binding URL.
$obj.mergeDeep(importantParentRequestInit, requestInit) as $type.cfw.RequestInit,
);
requestInit ??= {}; // Initialize.
requestInit.cf ??= {}; // Initialize.
requestInit.headers = $http.parseHeaders(requestInit.headers || {}) as $type.cfw.Headers;

(requestInit.headers as $type.cfw.Headers).set('cf-connecting-ip', await $user.ip(originalRequest));
$obj.updateDeep(requestInit.cf, $obj.omit($obj.cloneDeep(await $user.ipGeoData(originalRequest)), ['ip']));

return new Request(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` Feb 23, 2024 8:48 AM UTC.
* Last generated using `./tsconfig.mjs` Feb 23, 2024 10:51 PM UTC.
*/
{
"include": ["./src/**/*", "./dev-types.d.ts"],
Expand Down
4 changes: 2 additions & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# @note This entire file will be updated automatically.
# @note Instead of editing here, please review `./wrangler.mjs`.
#
# Last generated using `./wrangler.mjs` Feb 23, 2024 8:48 AM UTC.
# Last generated using `./wrangler.mjs` Feb 23, 2024 10:51 PM UTC.
##

send_metrics = false
compatibility_date = "2023-08-15"
compatibility_date = "2023-12-01"
compatibility_flags = [ ]

0 comments on commit 33936d9

Please sign in to comment.