@hybrd/xmtp 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/jwt.ts +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @hybrd/xmtp@1.3.
|
|
3
|
+
> @hybrd/xmtp@1.3.1 build /Users/ian/Projects/01/hybrid/packages/xmtp
|
|
4
4
|
> tsup
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: {"index":"src/index.ts"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
14
|
|
|
15
|
-
[90m[[
|
|
15
|
+
[90m[[90m2:26:40 PM[90m][39m [43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta]
|
|
16
16
|
|
|
17
17
|
scripts/revoke-installations.ts:89:4:
|
|
18
18
|
[37m 89 │ if ([32mimport.meta[37m.url === [36mfile://${process.argv[1]}[39m) {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
[90m[[
|
|
26
|
+
[90m[[90m2:26:40 PM[90m][39m [43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta]
|
|
27
27
|
|
|
28
28
|
src/client.ts:21:33:
|
|
29
29
|
[37m 21 │ const __filename = fileURLToPath([32mimport.meta[37m.url)
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
36
|
+
[32mESM[39m [1mdist/index.js [22m[32m114.51 KB[39m
|
|
37
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m218.75 KB[39m
|
|
38
|
+
[32mESM[39m ⚡️ Build success in 101ms
|
|
39
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m119.82 KB[39m
|
|
40
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m219.25 KB[39m
|
|
41
|
+
[32mCJS[39m ⚡️ Build success in 101ms
|
|
42
42
|
DTS Build start
|
|
43
|
-
DTS ⚡️ Build success in
|
|
43
|
+
DTS ⚡️ Build success in 3819ms
|
|
44
44
|
DTS dist/index.d.cts 29.23 KB
|
|
45
45
|
DTS dist/index.d.ts 29.23 KB
|
package/dist/index.cjs
CHANGED
|
@@ -3350,16 +3350,16 @@ function getValidatedPayload(c) {
|
|
|
3350
3350
|
return validateXMTPToolsToken(token);
|
|
3351
3351
|
}
|
|
3352
3352
|
var JWT_SECRET = (() => {
|
|
3353
|
-
const secret = process.env.
|
|
3353
|
+
const secret = process.env.XMTP_ENCRYPTION_KEY;
|
|
3354
3354
|
const nodeEnv = process.env.NODE_ENV || "development";
|
|
3355
3355
|
if (nodeEnv === "production" && !secret) {
|
|
3356
3356
|
throw new Error(
|
|
3357
|
-
"
|
|
3357
|
+
"XMTP_ENCRYPTION_KEY environment variable is required in production. Generate a secure random secret for JWT token signing."
|
|
3358
3358
|
);
|
|
3359
3359
|
}
|
|
3360
3360
|
if (!secret) {
|
|
3361
3361
|
console.warn(
|
|
3362
|
-
"\u26A0\uFE0F [SECURITY] Using fallback JWT secret for development. Set
|
|
3362
|
+
"\u26A0\uFE0F [SECURITY] Using fallback JWT secret for development. Set XMTP_ENCRYPTION_KEY environment variable for production."
|
|
3363
3363
|
);
|
|
3364
3364
|
return "fallback-secret-for-dev-only";
|
|
3365
3365
|
}
|