From e8f409b4c307f75b3f868489a7d8ad3229c622fc Mon Sep 17 00:00:00 2001 From: Jason Caldwell Date: Thu, 11 Apr 2024 20:21:31 -0400 Subject: [PATCH] Project update. [p][robotic] --- .browserslistrc | 2 +- .dockerignore | 2 +- .env.vault | 8 ++--- .gitattributes | 2 +- .gitignore | 2 +- .npmignore | 2 +- .prettierignore | 2 +- .vscode/settings.json | 2 +- .vscodeignore | 2 +- package-lock.json | 80 +++++++++++++++++++++---------------------- package.json | 2 +- src/http.ts | 22 ++++++------ src/user.ts | 30 ++++++++-------- tsconfig.json | 2 +- wrangler.toml | 2 +- 15 files changed, 81 insertions(+), 81 deletions(-) diff --git a/.browserslistrc b/.browserslistrc index e34ecd19..235853a5 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 11:08 AM UTC. +# Last generated Apr 12, 2024 12:20 AM UTC. [production] node >= 20.9.0 diff --git a/.dockerignore b/.dockerignore index ae7a0031..87f2be80 100644 --- a/.dockerignore +++ b/.dockerignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 11:08 AM UTC. +# Last generated Apr 12, 2024 12:20 AM UTC. # Locals diff --git a/.env.vault b/.env.vault index e8949a9f..be4e1e4d 100644 --- a/.env.vault +++ b/.env.vault @@ -8,12 +8,12 @@ DOTENV_VAULT_MAIN="7GW98NfL4hM4N6HbfeDXCKreVxKvcVPupFRnZ8XJ+pomaQ==" DOTENV_VAULT_MAIN_VERSION=1 # dev -DOTENV_VAULT_DEV="X+sBdBmkwgJE/a/hzf6jSJu91xivh5yPbDNjPHIN3kUWGKlzjbWh6bKCNmzpT2sC0owFgZ/R7R4f3mwgWHfg9Xf+zwEaMek24/V551CUyid79ysq7xOse2yFkelm9SsscG+ML6zHHAYv1Cw7alr4zvmXMgyl6U+B9BgM2DA+tLHMJpQApUp+3yNSWSUp/Wf3UBysI/femwWj72pU/VGo/fHtBQ0IdiWYQXXzpYbZWEt4/M3AogkMahPEEiNXEQPl2g==" -DOTENV_VAULT_DEV_VERSION=541 +DOTENV_VAULT_DEV="nQmAGkQBrA0LJ6//jfhUoXrjBO7oNohwaU8qDw2eSW1tjVyt86be1LqAG7kLceYuc55x5geqwbfOX8IMZrt1ULiiTcRYLSRXUItObBmlpSv+muLpGgbqmmH5qa2Enag9zCwyRIPDx5Bc2346as+PyZIyweeHWY2qVvoGQUfGOoz6tXClyO3xJNrTlCMj/8tNP2q8HLFl244Gmzh8r9VibplUAvA65J/aha+t8rQpSL3v0uQq6Sty/HqO4DzTO9olwA==" +DOTENV_VAULT_DEV_VERSION=543 # ci -DOTENV_VAULT_CI="vnrCPcwxExEIa5nOZsOGKL4xAg7nw4caLK2cbtUxo6WoFNfpONcC13+AY10qCZJAjori3/GB32FQwQbYx5k76SJow7i6cuFXLQ2Ww3S2Ahcr98jeCA19ssjFZ+gDll77ErMrsgBr+3loK95alJvHaDTgKTeICEpxw4p+qBk7vA==" -DOTENV_VAULT_CI_VERSION=541 +DOTENV_VAULT_CI="KMYgM4Bd+iN2msYMa/wX6ydZY+CSjemRuiFliQBhQHJh6mswo47Wa4V7mbcs0UVkpHAfDrH0WuLw+lYVEMlKH6mQN2k/iq1GG7iLgkdJw+ADaZknJPrHAL9hZxYv2E32MMiP3A3a/VMGApyztwfveRgFxHsSNKfDZxz7cWzlAw==" +DOTENV_VAULT_CI_VERSION=543 # stage DOTENV_VAULT_STAGE="aRP8su2YV4jZu3w1HZ/SLaots0IwJDFw75TCpvXEFeNp7tw=" diff --git a/.gitattributes b/.gitattributes index 09b1f09e..8dacc9ca 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 11:08 AM UTC. +# Last generated Apr 12, 2024 12:20 AM UTC. # Default diff --git a/.gitignore b/.gitignore index df0fd9a1..3f48be41 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 11:08 AM UTC. +# Last generated Apr 12, 2024 12:20 AM UTC. # Locals diff --git a/.npmignore b/.npmignore index 73726e2a..eb0a1bfb 100644 --- a/.npmignore +++ b/.npmignore @@ -25,7 +25,7 @@ # Generated data. # -# Last generated Apr 11, 2024 11:08 AM UTC. +# Last generated Apr 12, 2024 12:20 AM UTC. # Locals diff --git a/.prettierignore b/.prettierignore index 107986b6..c25ac170 100644 --- a/.prettierignore +++ b/.prettierignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 11:08 AM UTC. +# Last generated Apr 12, 2024 12:20 AM UTC. # Packages diff --git a/.vscode/settings.json b/.vscode/settings.json index b60cb19c..bd66eee2 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 11:08 AM UTC. + * Last generated using `./settings.mjs` Apr 12, 2024 12:20 AM UTC. */ { "editor.formatOnType": false, diff --git a/.vscodeignore b/.vscodeignore index 3912bfee..fe9ec1d3 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Apr 11, 2024 11:08 AM UTC. +# Last generated Apr 12, 2024 12:20 AM UTC. # Locals diff --git a/package-lock.json b/package-lock.json index bbabb194..a0feaa6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@clevercanyon/utilities", - "version": "1.0.956", + "version": "1.0.957", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@clevercanyon/utilities", - "version": "1.0.956", + "version": "1.0.957", "cpu": [ "x64", "arm64" @@ -956,9 +956,9 @@ } }, "node_modules/@clevercanyon/utilities": { - "version": "1.0.956", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities/-/utilities-1.0.956.tgz", - "integrity": "sha512-Fg3mFEDwBVomrswVyWxkMHkM/VWpdt0hZ2CtXdD/DJGnMt6HhdXL5NM8O8kp/I7xSeynC/YXrTzQIRAWGMVeiA==", + "version": "1.0.957", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities/-/utilities-1.0.957.tgz", + "integrity": "sha512-eaqsXXZ/Pw6qrXF+MNyo8ABI41bct88j0Ph2a88f2BlOdMb9g/gPdVQ30iprZrcxDlNSOU5j0FwWd2ygzfk9zQ==", "cpu": [ "x64", "arm64" @@ -983,7 +983,7 @@ "ignore": "5.3.0", "ip-regex": "5.0.0", "micro-memoize": "4.1.2", - "micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.146", + "micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.147", "parse-css-color": "0.2.1", "preact": "10.20.1", "preact-render-to-string": "6.4.1", @@ -992,9 +992,9 @@ } }, "node_modules/@clevercanyon/utilities.bash": { - "version": "1.0.213", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.bash/-/utilities.bash-1.0.213.tgz", - "integrity": "sha512-1nJ2KkIzWEZ4qQGxAFnzRlx2lqHdNO69Y7wcsEYUWAQiKfXAP8FOwcQpZN23eTHUahZb5gKKSKrj9LKIX8Zfvg==", + "version": "1.0.214", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.bash/-/utilities.bash-1.0.214.tgz", + "integrity": "sha512-ikA5EKf74pLDcM4hETqo0SaL7dr7pnLRcpPmh9UVMoIPRDOBCx2+3oMgGOLDZzXMoNQa4J7+c3f6S4mghmBFbQ==", "cpu": [ "x64", "arm64" @@ -1012,14 +1012,14 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.955", - "@clevercanyon/utilities.node": "^1.0.208" + "@clevercanyon/utilities": "^1.0.957", + "@clevercanyon/utilities.node": "^1.0.209" } }, "node_modules/@clevercanyon/utilities.cfp": { - "version": "1.0.257", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfp/-/utilities.cfp-1.0.257.tgz", - "integrity": "sha512-57vj361rOljof59K1/Ah5Ng4RPOdOSBxROD5tqGVBG+H6CV25X5wFfYvxabreYYPnedbYPmx9v9oLMaoLXdOrQ==", + "version": "1.0.258", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfp/-/utilities.cfp-1.0.258.tgz", + "integrity": "sha512-R3S1QeeIaDNAO64MairdKmSyYopVVZot8UDswNIl3jOOJtXvd9KZunpB0Si0YFJOULWghI11P67I4u7uWyrqkg==", "cpu": [ "x64", "arm64" @@ -1037,15 +1037,15 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.955", - "@clevercanyon/utilities.cfw": "^1.0.321", - "@clevercanyon/utilities.web": "^1.0.161" + "@clevercanyon/utilities": "^1.0.957", + "@clevercanyon/utilities.cfw": "^1.0.322", + "@clevercanyon/utilities.web": "^1.0.162" } }, "node_modules/@clevercanyon/utilities.cfw": { - "version": "1.0.321", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.321.tgz", - "integrity": "sha512-bQGUxt9NxRS5hbRKd55GGsh9DfB5qpGOZG/om2eQ0Kk2uwtzA0j5HRPjivzsFyJsHuRnYmoPMZ37+MS3sH2/pQ==", + "version": "1.0.322", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.322.tgz", + "integrity": "sha512-Wm+X9+Djb5KfWsfd0JU6AZKzaSsO+DsDhWvqhsh1brU39v1q6e2FNAfs6Yt9Yl1MNCQo47q9U5isf1HxvpJuBg==", "cpu": [ "x64", "arm64" @@ -1064,16 +1064,16 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.955", + "@clevercanyon/utilities": "^1.0.957", "@cloudflare/ai": "1.0.53", "@upstash/ratelimit": "1.0.0", "@upstash/redis": "1.28.0" } }, "node_modules/@clevercanyon/utilities.node": { - "version": "1.0.208", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.node/-/utilities.node-1.0.208.tgz", - "integrity": "sha512-Qdox6kDxAqc8f18HZ/N2qaDbfufzDUvu+UQL2f5bUSsWzpFM8bmGNUvo7z4XQ6V4z0s/XzkcZR0F91LtQ8mEqw==", + "version": "1.0.209", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.node/-/utilities.node-1.0.209.tgz", + "integrity": "sha512-hxFmk64nWnww2HxSHxEUw2JvbSaxykvwRGm6ieW5uYUkqtXHzvXQ8477VX5nUKhalzhzid9NQCrA7iF3KpY80w==", "cpu": [ "x64", "arm64" @@ -1091,8 +1091,8 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/split-cmd.fork": "^1.0.144", - "@clevercanyon/utilities": "^1.0.955", + "@clevercanyon/split-cmd.fork": "^1.0.145", + "@clevercanyon/utilities": "^1.0.957", "@upstash/ratelimit": "1.0.0", "@upstash/redis": "1.28.0", "archiver": "6.0.1", @@ -1105,16 +1105,16 @@ "globby": "14.0.0", "prettier": "3.1.0", "shescape": "2.0.2", - "spawn-please": "npm:@clevercanyon/spawn-please.fork@^2.0.138", + "spawn-please": "npm:@clevercanyon/spawn-please.fork@^2.0.139", "term-img": "6.0.0", "yargs": "17.7.2", "yargs-parser": "21.1.1" } }, "node_modules/@clevercanyon/utilities.web": { - "version": "1.0.162", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.web/-/utilities.web-1.0.162.tgz", - "integrity": "sha512-26zD3v2JWZuLfM7ir3ytUHCGr3ACpHeQSCnvGg0JFPwRGNAjrRc0ITzT/eEwxebMAUlW2QHR4jO7ZWJdGOn0Xg==", + "version": "1.0.163", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.web/-/utilities.web-1.0.163.tgz", + "integrity": "sha512-DitRSqEvQcGh7Qny7yOxDbv/t1bmecWN3YhK/3XKsxBTLfd6q4ZlIQhkz5MKBamIOzv1B6pASw26cj6+RF3AAQ==", "cpu": [ "x64", "arm64" @@ -1133,7 +1133,7 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.955" + "@clevercanyon/utilities": "^1.0.957" } }, "node_modules/@cloudflare/ai": { @@ -9515,9 +9515,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.733", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.733.tgz", - "integrity": "sha512-gUI9nhI2iBGF0OaYYLKOaOtliFMl+Bt1rY7VmEjwxOxqoYLub/D9xmduPEhbw2imE6gYkJKhIE5it+KE2ulVxQ==", + "version": "1.4.734", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.734.tgz", + "integrity": "sha512-pYfGUc+ll8AOzLbLC0lfgwkvCZIV+sKGuFFsSNuF3K3ujrmem8jIjg/t6DNq0J7biTSS1hCt/Hts0nmA3ZyprQ==", "dev": true }, "node_modules/emittery": { @@ -14260,9 +14260,9 @@ }, "node_modules/is-number": { "name": "@clevercanyon/is-number.fork", - "version": "7.0.144", - "resolved": "https://registry.npmjs.org/@clevercanyon/is-number.fork/-/is-number.fork-7.0.144.tgz", - "integrity": "sha512-04livG+EeQd0pDugWkI1UvMeAfiGi8ojaTm2XYTHLwF/awaa3gEKObUZJV23ejpoDFYJCsHRarrZ2O+LQ0DyeA==", + "version": "7.0.145", + "resolved": "https://registry.npmjs.org/@clevercanyon/is-number.fork/-/is-number.fork-7.0.145.tgz", + "integrity": "sha512-2XQtrJmDat125UxWmpKxD8AKyWVNlGDkn2Wz23/AvrnnAMhXZhl/a9MLbwOTOWi0dwELiuuTM7kCMrpPH0tmjw==", "cpu": [ "x64", "arm64" @@ -21494,9 +21494,9 @@ } }, "node_modules/postcss-custom-properties": { - "version": "13.3.6", - "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-13.3.6.tgz", - "integrity": "sha512-vVVIwQbJiIz+PBLMIWA6XMi53Zg66/f474KolA7x0Das6EwkATc/9ZvM6zZx2gs7ZhcgVHjmWBbHkK9FlCgLeA==", + "version": "13.3.7", + "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-13.3.7.tgz", + "integrity": "sha512-0N9F/GUCr/D0IazjzHahyYW2bQVDT6qDtEudiGHAhMd3XqhfM3VmfYVlkc/40DOhsPtngSNb54/Ctu8msvFOvQ==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index f887c750..f0dc682f 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "1.0.957", + "version": "1.0.958", "license": "GPL-3.0-or-later", "name": "@clevercanyon/utilities", "description": "Utilities for JavaScript apps running in any environment.", diff --git a/src/http.ts b/src/http.ts index ff3da8ff..324989e3 100644 --- a/src/http.ts +++ b/src/http.ts @@ -413,33 +413,33 @@ export const requestPathIsSEORelatedFile = $fnꓺmemo(2, (request: $type.Request }); /** - * Request path is in an admin area? + * Request path is in an account area? * * @param request HTTP request. * @param url Optional pre-parsed URL. Default is taken from `request`. * - * @returns True if request path is in an admin area. + * @returns True if request path is in an account area. */ -export const requestPathIsInAdmin = $fnꓺmemo(2, (request: $type.Request, _url?: $type.URL): boolean => { +export const requestPathIsInAccount = $fnꓺmemo(2, (request: $type.Request, _url?: $type.URL): boolean => { const url = _url || $url.parse(request.url); if ('/' === url.pathname) return false; - return /\/(?:[^/]+[-_])?admin(?:[-_][^/]+)?(?:$|\/)/iu.test(url.pathname); + return /\/(?:[^/]+[-_])?account(?:[-_][^/]+)?(?:$|\/)/iu.test(url.pathname); }); /** - * Request path is in an account area? + * Request path is in an admin area? * * @param request HTTP request. * @param url Optional pre-parsed URL. Default is taken from `request`. * - * @returns True if request path is in an account area. + * @returns True if request path is in an admin area. */ -export const requestPathIsInAccount = $fnꓺmemo(2, (request: $type.Request, _url?: $type.URL): boolean => { +export const requestPathIsInAdmin = $fnꓺmemo(2, (request: $type.Request, _url?: $type.URL): boolean => { const url = _url || $url.parse(request.url); if ('/' === url.pathname) return false; - return /\/(?:[^/]+[-_])?account(?:[-_][^/]+)?(?:$|\/)/iu.test(url.pathname); + return /\/(?:[^/]+[-_])?admin(?:[-_][^/]+)?(?:$|\/)/iu.test(url.pathname); }); /** @@ -760,8 +760,8 @@ const prepareResponseHeaders = async (request: $type.Request, url: $type.URL, cf if ( 'none' === cfg.cacheVersion || !requestHasCacheableMethod(request) || - requestPathIsInAdmin(request, url) || requestPathIsInAccount(request, url) || + requestPathIsInAdmin(request, url) || (!cfg.cacheUsers && requestIsFromUser(request)) ) { sMaxAge = 0; // No server-side cache. @@ -801,10 +801,10 @@ const prepareResponseHeaders = async (request: $type.Request, url: $type.URL, cf } else if (requestPathIsStatic(request, url)) { cacheControl($time.yearInSeconds); // - } else if (requestPathIsInAdmin(request, url)) { + } else if (requestPathIsInAccount(request, url)) { cacheControl(0); // Do not cache. // - } else if (requestPathIsInAccount(request, url)) { + } else if (requestPathIsInAdmin(request, url)) { cacheControl(0); // Do not cache. // } else if (!cfg.cacheUsers && requestIsFromUser(request)) { diff --git a/src/user.ts b/src/user.ts index 97d1794f..ecfbcb63 100644 --- a/src/user.ts +++ b/src/user.ts @@ -44,7 +44,7 @@ export type AuthData = { authToken: string; }; export type UpdateAuthDataOptions = { - isCustomer?: boolean; + asCustomer?: boolean; request?: $type.Request; responseHeaders?: $type.Headers; callback?: (authData: $type.ReadonlyDeep) => void | Promise; @@ -534,18 +534,18 @@ export const updateAuthData = async (token: string, options?: UpdateAuthDataOpti const opts = $obj.defaults({}, options || {}) as UpdateAuthDataOptions, rrOpts = $obj.pick(opts, ['request', 'responseHeaders']), // - ꓺid = await $crypto.authVerify(token), - ꓺutxId = ꓺid ? await $crypto.hmacSHA(String(ꓺid), 36) : '', - ꓺutxCustomerId = ꓺid && opts.isCustomer ? await $crypto.hmacSHA('customer:' + String(ꓺid), 36) : '', + _id = await $crypto.authVerify(token), + _utxId = _id ? await $crypto.hmacSHA(String(_id), 36) : '', + _utxCustomerId = _id && opts.asCustomer ? await $crypto.hmacSHA('customer:' + String(_id), 36) : '', // - ꓺauthToken = ꓺid ? await $crypto.authToken(ꓺid) : '', - newAuthData = { utxId: ꓺutxId, utxCustomerId: ꓺutxCustomerId, authToken: ꓺauthToken }; + newAuthToken = _id ? await $crypto.authToken(_id) : '', // New auth token. + newData = { utxId: _utxId, utxCustomerId: _utxCustomerId, authToken: newAuthToken }; if (opts.request && opts.responseHeaders) { - if (ꓺauthToken) { - $cookie.set('utx_user_id', ꓺutxId, { ...rrOpts }); - $cookie.set('utx_customer_id', ꓺutxCustomerId, { ...rrOpts }); - $cookie.set($crypto.authTokenName(), ꓺauthToken, { ...rrOpts, httpOnly: true }); + if (newAuthToken) { + $cookie.set('utx_user_id', _utxId, { ...rrOpts }); + $cookie.set('utx_customer_id', _utxCustomerId, { ...rrOpts }); + $cookie.set($crypto.authTokenName(), newAuthToken, { ...rrOpts, httpOnly: true }); } else { $cookie.delete('utx_user_id', { ...rrOpts }); $cookie.delete('utx_customer_id', { ...rrOpts }); @@ -553,12 +553,12 @@ export const updateAuthData = async (token: string, options?: UpdateAuthDataOpti } } else if ($env.isCFW()) throw Error('5tqY9PzB'); // See notes above. // - else await $app.updateEtcConfig({ user: { ...newAuthData } }); + else await $app.updateEtcConfig({ user: { ...newData } }); id.flush(), utxId.flush(), utxCustomerId.flush(); authToken.flush(), isLoggedIn.flush(); - if (opts.callback) await opts.callback(newAuthData); + if (opts.callback) await opts.callback(newData); }; // --- @@ -770,18 +770,18 @@ export const updateAuthorData = async (updates: $type.PartialDeep, o rrOpts = $obj.pick(opts, ['request', 'responseHeaders']), // // Reuses an existing UTX author ID, else we generate a new one. - ꓺutxAuthorId = utxAuthorId(opts.request) || (await $crypto.hmacSHA($crypto.randomString(256), 36)), + _utxAuthorId = utxAuthorId(opts.request) || (await $crypto.hmacSHA($crypto.randomString(256), 36)), // currentData = authorData(opts.request), // Merges updates into current author data. newData = $obj.deepFreeze($obj.mergeClonesDeep(currentData, updates)) as unknown as $type.ReadonlyDeep; if ((opts.request && opts.responseHeaders) || $env.isWeb()) { - $cookie.set('utx_author_id', ꓺutxAuthorId, { ...rrOpts }); + $cookie.set('utx_author_id', _utxAuthorId, { ...rrOpts }); $cookie.set('author', $json.stringify(newData), { ...rrOpts }); // } else if ($env.isCFW()) throw Error('v7GuJwND'); // See notes above. // - else await $app.updateEtcConfig({ user: { utxAuthorId: ꓺutxAuthorId, author: newData } }); + else await $app.updateEtcConfig({ user: { utxAuthorId: _utxAuthorId, author: newData } }); utxAuthorId.flush(), isAuthor.flush(), authorData.flush(); if (opts.callback) await opts.callback(newData); diff --git a/tsconfig.json b/tsconfig.json index 6e765d40..4505911c 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 11:08 AM UTC. + * Last generated using `./tsconfig.mjs` Apr 12, 2024 12:20 AM UTC. */ { "include": ["./src/**/*", "./dev-types.d.ts"], diff --git a/wrangler.toml b/wrangler.toml index dda3d23d..001effd7 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 11:08 AM UTC. +# Last generated using `./wrangler.mjs` Apr 12, 2024 12:20 AM UTC. ## send_metrics = false