diff --git a/.env.vault b/.env.vault index 5734e08..caefdeb 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="S9uLuPcgsFKWDBaPog3qJcIspuSnw14XDnVfVMkxf981a2UImG6Ad0IDeVw/Agg6xqwKadz2woSxIR5ICfhvL1ohwzvibVBho/Ynf6C+NcgQmspDk1h3sM/D/H97OGESVQG/ydBDEnJXRTpIgJzJZ1F+g4UBXXNas3L1+R/Zquw+hCJQPCUTTpSV8qOtgUjmuaw9Y9vR276AKUeK89HhVNthToLAmDjEvgzWVoutLI3CR9NfvikLQ8LKga1xUk3cki1AdVZ6kJXd8bNgnm3jz9prANTuf2sH6WwEYTA7JDOjO+hQTYKnhXXZ9f9WZj+H7ltng8KNH1xxYlEQJ0LE7LOiI3jrVCZON0yGO2H+JtqGChrMgfkHAXiOK7349tGLygkcwSjl4KWki1s/SAPMliIDupsxjQeW+4La2AI/BaV0cV8rTXv0OGNVJ/OTVU8Hcq582lOVtkPBBqqpVWmxFFq0jY3/wvLfMlf46QIj3fGspM7tXae935UjagGDcJe50dL1AkGAvrjFztaNcJNPxy56NCtxVDEEcwN7eGCMZLQNcrb0n3KJyD0xOA98OEIRQd9cmObmrxqRN9qBrVvYeq6O/pOXfuStdnFaVJaYfNNJYfZDCtfgJmTsARVg7lzA6DZzFBT/kU5+d3ol1eooTJgCKkTeAqBKnNyt55vnq4Kvxgx1z9/TDAf0aSccmePa3869nyZtm7xk/n7/nAv9GU45f9qakpihodIp+8tiyJ08o67XxSh1M9GCrK3fNmISW1p85PpLxsFf2R5Lk80Kih4T6O+HhX7mQ7jo1kFWR+wimhs1zGxE507Vx8+jj5FdQ4PIuZC/EfnBLazGLaF/D+r+zXFnbN08yh7irym+VGjHKVi86D/GWtNee0bG" -DOTENV_VAULT_DEV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RgzBXS2grWsVXGjtJL+g7YeevA9sFpNyZnRHHoQ1gwzQV4Fs2ghvVaZ6FGSNbaC/GQpmPfq2dmtH+g6ZjbCxvgwCu7f9RkYPC31louRuDw4Rq78AT9QnknXdPKhUoXYxJBlT3ZIWE1yN0SmtZHrGZ4LuoKWK7VEgB5CwbcUXlaCVVSjtA/odSjPY8y1OMJc5rQsfgmlffUTjL9knNAXfaqy6dNGEzjZ2yYA2EaezeVPgFXLpmUw95kyMPwUU82TF24yIXdlnmVIqeH03t2w0b+3zmn58BorGHUiN+wabuaG2fRW4XjjuPDm3z75txSUhJPO+xUKe8nYJKzsbmSsTkMKGeZt9OX3LAATxPBdpafbwPbphWUmyjkeRkHFNZdEpDOvyjwhhWL6npT5ImR8ejCV5o7Skwq99H8jct3+WWg9Px2DO6XIkMs1Ckp+g2ulbec+z6Gz7kFwtwBLczV1QZPC53NGjSeX/B1paJfve4D4QgAK4iM1jwecfqVuXbCk5YvPjzuPS6ZrdHxbWmV1EmG4Qk+uxrbJeqV8+o13CAhf2Fa0W2taIMhT78s/gKutvJzlQhOkMwEClqzDqZkVtI3+KoUfk/G4Mha5uz5B7fv8PHHDzxj8VjsBKx32s+/cB" +DOTENV_VAULT_CI_VERSION=363 # stage DOTENV_VAULT_STAGE="bfqZYD8oVLWMZ0JR5LICV+sB/btaXavszxZLxTfwSH8U5fg=" diff --git a/package-lock.json b/package-lock.json index a633ff3..dc1e5b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@clevercanyon/utilities.cfw", - "version": "1.0.333", + "version": "1.0.334", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@clevercanyon/utilities.cfw", - "version": "1.0.333", + "version": "1.0.334", "cpu": [ "x64", "arm64" @@ -924,9 +924,9 @@ } }, "node_modules/@clevercanyon/utilities.cfw": { - "version": "1.0.333", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.333.tgz", - "integrity": "sha512-a02tzyWTYxlCqGXB7J6QzvsPaGZwZf8JJlWXTGlCaA3CGFwxxqojI0Ydd67EoLQBwIeuZWF3qJC5INjtbmn2LA==", + "version": "1.0.334", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.334.tgz", + "integrity": "sha512-1+LNCPAV9Z3Nn/Z59GVZPIPCSV1pn7qv8B7Ip1YpdTG4SWujc6NzEZnQKbGmfiNATIljy6Ht4KRK5yVBrASltA==", "cpu": [ "x64", "arm64" @@ -952,9 +952,9 @@ } }, "node_modules/@clevercanyon/utilities.node": { - "version": "1.0.215", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.node/-/utilities.node-1.0.215.tgz", - "integrity": "sha512-RRX3LNGBgzquZGugqrBkpi+OIG8vGUlAExVXKHcv2U71/Pj8eKd7AQ6T9LnsF0eim99gvzjyswwIuvdbv5EvLA==", + "version": "1.0.216", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.node/-/utilities.node-1.0.216.tgz", + "integrity": "sha512-r5RQ8JQSxfSgi3GASiE78NlT29M+QUqWPQLggQCaiOrlQzr3jU7u92lEKeh63DdHAibxDIxYuG1z4cTAeXQ+CQ==", "cpu": [ "x64", "arm64" diff --git a/package.json b/package.json index d92bdd7..179aa9c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "1.0.334", + "version": "1.0.335", "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/smtp.ts b/src/smtp.ts index e26ae8d..47457ce 100644 --- a/src/smtp.ts +++ b/src/smtp.ts @@ -51,7 +51,9 @@ export const send = async (rcData: $type.$cfw.RequestContextData, options: SendO method: 'POST', headers: { 'content-type': $json.contentType(), - 'authorization': $env.get('SSR_APP_ROOT_API_BEARER_TOKEN', { type: 'string', require: true }), + 'authorization': + $env.get('SSR_APP_ROOT_API_BEARER_TOKEN', { type: 'string' }) || // + $env.get('APP_ROOT_API_BEARER_TOKEN', { type: 'string', require: true }), }, body: $json.stringify({ data: opts } as RequestPayload), signal: AbortSignal.timeout($time.secondInMilliseconds * 15),