diff --git a/.browserslistrc b/.browserslistrc index e58389e..9f77d1c 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 1:02 AM UTC. +# Last generated Apr 11, 2024 2:14 AM UTC. [production] node >= 20.9.0 diff --git a/.dockerignore b/.dockerignore index eedfb68..90cfe3c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 1:02 AM UTC. +# Last generated Apr 11, 2024 2:14 AM UTC. # Locals diff --git a/.env.vault b/.env.vault index 123030a..e50e0e4 100644 --- a/.env.vault +++ b/.env.vault @@ -8,12 +8,12 @@ DOTENV_VAULT_MAIN="3rfi+ClkONvfHPiU9FTBcC1+Um/L8QeM9dRw1jFzEqzZXw==" DOTENV_VAULT_MAIN_VERSION=1 # dev -DOTENV_VAULT_DEV="njsFGLSv0kBz1adK09eIlhUH8AKRYiogqQKfOyhXv7MDEW7IUcCG3HQUktw09w+HkEItjMQsdij8pNVrSMH6oN21u1aQ5dEIlLoYytsAFxIGblFpKwERHR/hqwBh4BjDmzS8sFTuEt9WzHcFCtqB5C2OELgE7JwvqtCkjuBW3+qI5cKpyeNLGkK/jd4/pibqGctcmjs0zRbfEP2eLAVkepV4waHo3OpV/T9VmVDTzLHJuGnDjqFbnwML2lkz/TJp0jDaCg0w3OgyJ15UMbiYJRTF1a70ZBsVa4vhCCaoKxPdWG2bnjnECADPdyXDJlSklgt2DJB1kFD87rRjcXEgi//zCYJMjSTpHeniE3ecqcUaCJ/8Bi4BSPelLMMq6+UhZdMv89GDzV7cp8706aWf7BrQYIVS8NuFaxHrrPqilHVDS5corUbPg2v8xnanGh/rz8K+rkrleK3io5lH1MnlzdNsW9knHCk1pW5HsKLLll6M0QhyX6UwFAu7pCDPR4BH93oQ1/p4SP9Tw/OSnnPbGrUEx6i0MFrUjNlSwnEfUq1EY7SHHDhxbqbtCAliz/dxjidqAOKkmKFdHQQPD6Z4el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a4247e..d52c3b6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 1:02 AM UTC. +# Last generated Apr 11, 2024 2:14 AM UTC. # Default diff --git a/.gitignore b/.gitignore index 442509d..a519bcf 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 1:02 AM UTC. +# Last generated Apr 11, 2024 2:14 AM UTC. # Locals diff --git a/.npmignore b/.npmignore index dd99bf2..cca2be3 100644 --- a/.npmignore +++ b/.npmignore @@ -25,7 +25,7 @@ # Generated data. # -# Last generated Apr 11, 2024 1:02 AM UTC. +# Last generated Apr 11, 2024 2:14 AM UTC. # Locals diff --git a/.prettierignore b/.prettierignore index 6e454c6..df486fd 100644 --- a/.prettierignore +++ b/.prettierignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 1:02 AM UTC. +# Last generated Apr 11, 2024 2:14 AM UTC. # Packages diff --git a/.vscode/settings.json b/.vscode/settings.json index 9caee42..9f3bd8f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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` Apr 11, 2024 1:02 AM UTC. + * Last generated using `./settings.mjs` Apr 11, 2024 2:14 AM UTC. */ { "editor.formatOnType": false, diff --git a/.vscodeignore b/.vscodeignore index 6935523..c7c14cd 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 1:02 AM UTC. +# Last generated Apr 11, 2024 2:14 AM UTC. # Locals diff --git a/package-lock.json b/package-lock.json index 9202cbf..2c1d96c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@clevercanyon/utilities.cfw", - "version": "1.0.315", + "version": "1.0.316", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@clevercanyon/utilities.cfw", - "version": "1.0.315", + "version": "1.0.316", "cpu": [ "x64", "arm64" @@ -982,9 +982,9 @@ } }, "node_modules/@clevercanyon/utilities.bash": { - "version": "1.0.210", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.bash/-/utilities.bash-1.0.210.tgz", - "integrity": "sha512-ySuH0sc7yhkK5STy7WIJ6VhwqDtPMAdrKB9Srv+AWBujb+IfVzdDco7lJotlkc8+Voo19IR88ebjhnf2fihfuw==", + "version": "1.0.211", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.bash/-/utilities.bash-1.0.211.tgz", + "integrity": "sha512-izXgwJnpU4uogt3b7KUugSaMljGXmZdu0Dvr7JyrYP7/+ncVvlw7gLIE0Equz/XSqTYotjGfgLcXOyD97mU6eg==", "cpu": [ "x64", "arm64" @@ -1002,14 +1002,14 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.947", - "@clevercanyon/utilities.node": "^1.0.205" + "@clevercanyon/utilities": "^1.0.953", + "@clevercanyon/utilities.node": "^1.0.206" } }, "node_modules/@clevercanyon/utilities.cfp": { - "version": "1.0.254", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfp/-/utilities.cfp-1.0.254.tgz", - "integrity": "sha512-2dt5YR7nVGEsh6yjTKwJnhIveuRy0P5w0T47nao1108UaOugTIQ+CqesJI/6btFolanOP9qVnP7s8gjWduU73w==", + "version": "1.0.255", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfp/-/utilities.cfp-1.0.255.tgz", + "integrity": "sha512-NZMWLekaf3Ay3+cjNz+7MBthij0MbmYxwUMdvPZ0Y+G5VcWPW7bRh9tfGXehjL7kP3uO6P4hLmMgwzdI4a9n6w==", "cpu": [ "x64", "arm64" @@ -1027,15 +1027,15 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.952", - "@clevercanyon/utilities.cfw": "^1.0.314", + "@clevercanyon/utilities": "^1.0.953", + "@clevercanyon/utilities.cfw": "^1.0.315", "@clevercanyon/utilities.web": "^1.0.159" } }, "node_modules/@clevercanyon/utilities.cfw": { - "version": "1.0.315", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.315.tgz", - "integrity": "sha512-CM1cw8UR2nA6aIjM7VYFhxDNuteJaHzk7WepCJChqS2qYc4WR9IQRkyJ5Dbdw1oJ+F2vxYLG5KNntjKj+kJXtQ==", + "version": "1.0.316", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.316.tgz", + "integrity": "sha512-7S7yS3kEg9E7eTp3GxvbqF4rLIBSR3JdMJLzFWBJPlVrwcUIwcaduKkpSCuRgt7+Ouv8feYGgqPObyGoUzWo3g==", "cpu": [ "x64", "arm64" @@ -1054,7 +1054,7 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.952", + "@clevercanyon/utilities": "^1.0.953", "@cloudflare/ai": "1.0.53", "@upstash/ratelimit": "1.0.0", "@upstash/redis": "1.28.0" @@ -1102,9 +1102,9 @@ } }, "node_modules/@clevercanyon/utilities.web": { - "version": "1.0.159", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.web/-/utilities.web-1.0.159.tgz", - "integrity": "sha512-FdRtojBwi4mhSGg2DePBoijM8BIvunmvOYCvCj5eS53DammdA7lXpmGtxqsxNF11y3GcUChEZD4OxDZOQAjVhw==", + "version": "1.0.160", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.web/-/utilities.web-1.0.160.tgz", + "integrity": "sha512-zkbylImprkFRuIsI74gwy6A+AUr5V0vMSrWdRACMtCY7kdRGEmknv6XP1DFZOrZnpT5VVmvOv7EFRSK/WRNf/w==", "cpu": [ "x64", "arm64" @@ -1123,7 +1123,7 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.947" + "@clevercanyon/utilities": "^1.0.953" } }, "node_modules/@cloudflare/ai": { @@ -12650,9 +12650,9 @@ }, "node_modules/fill-range": { "name": "@clevercanyon/fill-range.fork", - "version": "7.0.138", - "resolved": "https://registry.npmjs.org/@clevercanyon/fill-range.fork/-/fill-range.fork-7.0.138.tgz", - "integrity": "sha512-3SW5+G4fMfKNgHINhMziP7e9pcbgEo2uXNDwyO6mRH4oz96IdN6ATnNTEAF9q1reuy52LJUR83kFI2zJO7w0Pg==", + "version": "7.0.139", + "resolved": "https://registry.npmjs.org/@clevercanyon/fill-range.fork/-/fill-range.fork-7.0.139.tgz", + "integrity": "sha512-fVRi7OCLJlx/jtnj1apJ6gJ2+L5F+VF20t1r3USfO14M6YX0LUKdBn3GZDq8QqRHICO2KqYZWSASPNtYB+j0Qg==", "cpu": [ "x64", "arm64" @@ -12662,7 +12662,7 @@ "linux" ], "dependencies": { - "to-regex-range": "npm:@clevercanyon/to-regex-range.fork@^5.0.138" + "to-regex-range": "npm:@clevercanyon/to-regex-range.fork@^5.0.139" }, "engines": { "node": "^20.5.0 || ^20.9.0 || ^21.6.2", diff --git a/package.json b/package.json index 4435230..6fc897a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "1.0.316", + "version": "1.0.317", "license": "GPL-3.0-or-later", "name": "@clevercanyon/utilities.cfw", "description": "Utilities for JavaScript apps running in a Cloudflare Worker environment.", diff --git a/src/cfw.ts b/src/cfw.ts index 51d3552..b0d5168 100644 --- a/src/cfw.ts +++ b/src/cfw.ts @@ -4,7 +4,7 @@ import '#@initialize.ts'; -import { $app, $bytes, $class, $crypto, $env, $error, $http, $is, $mm, $obj, $url, $user, type $type } from '@clevercanyon/utilities'; +import { $app, $bytes, $class, $crypto, $env, $error, $http, $is, $mm, $obj, $to, $url, $user, type $type } from '@clevercanyon/utilities'; // @ts-ignore -- Broken types. import { Ai as AiClass } from '@cloudflare/ai'; @@ -387,7 +387,7 @@ const subrequestCounterProxy = (target: Type, subrequestCou supportedTargetC9rNames = ['cachestorage', 'cache', 'fetcher', 'd1database', 'd1preparedstatement', 'r2bucket', 'r2multipartupload', 'kvnamespace', 'workerqueue']; if (!targetC9rName || !supportedTargetC9rNames.includes(targetC9rName)) { - throw Error('QGySmpVX'); // Unexpected object type. + throw Error('Error code: HHRYyaEn. Unexpected object type: `' + $to.string(targetC9rName) + '`'); } return new Proxy(target, { get(target: Type, property: $type.ObjectKey, receiver: unknown): unknown { diff --git a/tsconfig.json b/tsconfig.json index 7618310..a308d34 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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` Apr 11, 2024 1:02 AM UTC. + * Last generated using `./tsconfig.mjs` Apr 11, 2024 2:14 AM UTC. */ { "include": ["./src/**/*", "./dev-types.d.ts"], diff --git a/wrangler.toml b/wrangler.toml index adba465..73739f8 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -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` Apr 11, 2024 1:02 AM UTC. +# Last generated using `./wrangler.mjs` Apr 11, 2024 2:14 AM UTC. ## send_metrics = false