@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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @hybrd/xmtp@1.3.0 build /Users/ian/Projects/01/hybrid/packages/xmtp
3
+ > @hybrd/xmtp@1.3.1 build /Users/ian/Projects/01/hybrid/packages/xmtp
4
4
  > tsup
5
5
 
6
6
  CLI Building entry: {"index":"src/index.ts"}
@@ -12,7 +12,7 @@
12
12
  CJS Build start
13
13
  ESM Build start
14
14
 
15
- [1:37:26 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
15
+ [2:26:40 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
16
16
 
17
17
  scripts/revoke-installations.ts:89:4:
18
18
   89 │ if (import.meta.url === file://${process.argv[1]}) {
@@ -23,7 +23,7 @@
23
23
 
24
24
 
25
25
 
26
- [1:37:26 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
26
+ [2:26:40 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
27
27
 
28
28
  src/client.ts:21:33:
29
29
   21 │ const __filename = fileURLToPath(import.meta.url)
@@ -33,13 +33,13 @@
33
33
 
34
34
 
35
35
 
36
- CJS dist/index.cjs 119.81 KB
37
- CJS dist/index.cjs.map 219.24 KB
38
- CJS ⚡️ Build success in 37ms
39
- ESM dist/index.js 114.50 KB
40
- ESM dist/index.js.map 218.73 KB
41
- ESM ⚡️ Build success in 38ms
36
+ ESM dist/index.js 114.51 KB
37
+ ESM dist/index.js.map 218.75 KB
38
+ ESM ⚡️ Build success in 101ms
39
+ CJS dist/index.cjs 119.82 KB
40
+ CJS dist/index.cjs.map 219.25 KB
41
+ CJS ⚡️ Build success in 101ms
42
42
  DTS Build start
43
- DTS ⚡️ Build success in 3824ms
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.XMTP_JWT_SECRET;
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
- "XMTP_JWT_SECRET environment variable is required in production. Generate a secure random secret for JWT token signing."
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 XMTP_JWT_SECRET environment variable for production."
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
  }