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 27, 2024
1 parent 8b2643e commit 20701ee
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 24 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 27, 2024 6:00 PM UTC.
# Last generated Mar 27, 2024 6:04 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 27, 2024 6:00 PM UTC.
# Last generated Mar 27, 2024 6:04 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="7GW98NfL4hM4N6HbfeDXCKreVxKvcVPupFRnZ8XJ+pomaQ=="
DOTENV_VAULT_MAIN_VERSION=1

# dev
DOTENV_VAULT_DEV="HmEhjNwk5eZc0g64dXlim9tFhemZnHTabVSjeppTsnWZuhfn5fpi2b5KxiFPZhyDSNNBpenomK1kBYRl26X/1KgOa7BUbhDuWRo52ce7hI80Az7z3uvYXJu2mTFcKBWdyBbBsx94ZaJpLrDlJNluAM4kXWSEW/82bkt2DLPsx5b2dlnx0GGG+Ld2/1YsOqsKWn1JuSaWxOIoptB74/0p62YeLgdggTIa82+7NOtO/USb9LOYxLEJqquWDyz0LpHW2g=="
DOTENV_VAULT_DEV_VERSION=487
DOTENV_VAULT_DEV="2vFAyDmjHvJQI1QzZUE5eOhLTEP4yoq88b78QUrbRnOp6LU+ZF5VI8Hy55aOv8+0G+Aqkak3wx7jQ32eA3MqPb5IjIOnnwNcnhMY+e53OUfCH6559IcDZvBjZcKAtOqvcvBicrZbV48UBUjz/xntBELRU6K8UYBLRA0h5wOG19DqcKyDuu+FPLBUcqpMY7SiIW0D6j+s5bNtrSIQEq7Kw4klQCh4Q7AJSu8rMWRVoKAxTweJokweulKFb4/b/CFzBQ=="
DOTENV_VAULT_DEV_VERSION=489

# ci
DOTENV_VAULT_CI="8QN6RRXl3/GIpQPzfn7RgEhG1wkDe06kMtgpCnWjyOtdYxlok+kWcpgDp4q4NM2dMxofeyvKfuw94xlYz/pm7ZRy+qLoWp/wTVGkkhtEqRT8oXtTtv2J23UwduASIHh86EO+hvRYFHJ9ZqqUY4uWPzd89Xfkk+Zq+7N1jE6Ycg=="
DOTENV_VAULT_CI_VERSION=487
DOTENV_VAULT_CI="HVbfUcgn6vaBHLj8tGkkVxcGRw7Ur6gqRDwGm68VofWOH6707DFJpX+6l9UjHCTjvPG7WsDvm4uHAhz9obiADP3vBdiWZ34n44A2iOPoCntmru3LSTD9bNmt01hoPN32ortL1UGh0YU8Vmf1i6VMEpnCjoTFinW9caexPUyvIA=="
DOTENV_VAULT_CI_VERSION=489

# stage
DOTENV_VAULT_STAGE="aRP8su2YV4jZu3w1HZ/SLaots0IwJDFw75TCpvXEFeNp7tw="
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 27, 2024 6:00 PM UTC.
# Last generated Mar 27, 2024 6:04 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 27, 2024 6:00 PM UTC.
# Last generated Mar 27, 2024 6:04 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 27, 2024 6:00 PM UTC.
# Last generated Mar 27, 2024 6:04 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 27, 2024 6:00 PM UTC.
# Last generated Mar 27, 2024 6:04 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 27, 2024 6:00 PM UTC.
* Last generated using `./settings.mjs` Mar 27, 2024 6:04 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 27, 2024 6:00 PM UTC.
# Last generated Mar 27, 2024 6:04 PM UTC.

# Locals

Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.0.930",
"version": "1.0.931",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities",
"description": "Utilities for JavaScript apps running in any environment.",
Expand Down
25 changes: 21 additions & 4 deletions src/tests/crypto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,10 @@ describe('$crypto', async () => {
email1 = await $crypto.emailVerify(token1);

// Hash is 64 bytes in length.
// User ID is 20 bytes in length.
// Expire time is 10 bytes in length.
// Plus byte length of base64-encoded email.
expect($str.byteLength(token1)).toBeGreaterThan(74);
expect($str.byteLength(token1)).toBeGreaterThan(94);
expect(email1).toBe(emailAddress1);

// ---
Expand All @@ -258,20 +259,36 @@ describe('$crypto', async () => {
email2 = await $crypto.emailVerify(token2);

// Hash is 64 bytes in length.
// User ID is 20 bytes in length.
// Expire time is 10 bytes in length.
// Plus byte length of base64-encoded email.
expect($str.byteLength(token2)).toBeGreaterThan(74);
expect($str.byteLength(token2)).toBeGreaterThan(94);
expect(email2).toBe('');

// ---

const token3 = 'x!@#$%^&*()_+ha2VDat9sWwGf6WYNu8ToEWcfhTGK9dZG3CHQRvVKWsE72tWh6eaiCtFBgnmed4g1234567890',
const token3 = 'x!@#$%^&*()_+00000000000000000123ha2VDat9sWwGf6WYNu8ToEWcfhTGK9dZG3CHQRvVKWsE72tWh6eaiCtFBgnmed4g1234567890',
email3 = await $crypto.emailVerify(token3);

// Hash is 64 bytes in length.
// User ID is 20 bytes in length.
// Expire time is 10 bytes in length.
// Plus byte length of base64-encoded email.
expect($str.byteLength(token3)).toBeGreaterThan(74);
expect($str.byteLength(token3)).toBeGreaterThan(94);
expect(email3).toBe('');

// ---

const userId4 = 123,
emailAddress4 = 'user@x.tld',
token4 = await $crypto.emailToken(emailAddress4, userId4),
email4 = await $crypto.emailVerify(token4, userId4);

// Hash is 64 bytes in length.
// User ID is 20 bytes in length.
// Expire time is 10 bytes in length.
// Plus byte length of base64-encoded email.
expect($str.byteLength(token4)).toBeGreaterThan(94);
expect(email4).toBe(emailAddress4);
});
});
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 27, 2024 6:00 PM UTC.
* Last generated using `./tsconfig.mjs` Mar 27, 2024 6:04 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 27, 2024 6:00 PM UTC.
# Last generated using `./wrangler.mjs` Mar 27, 2024 6:04 PM UTC.
##

send_metrics = false
Expand Down

0 comments on commit 20701ee

Please sign in to comment.