@abdarrahmanabdelnasir/relay-node 0.1.22 → 0.1.23

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.
@@ -141,6 +141,8 @@ export class ConfigCache {
141
141
  const premiumIds = (this.config.premiumUserIds || []).map(String);
142
142
  const isPremiumUser = premiumIds.includes(String(userId));
143
143
  const isPremium = isPremiumRole || isPremiumUser;
144
+ // Diagnostic: log list size and match (no raw IDs)
145
+ console.log(`[commandless] premium_only check: premiumUserIds.length=${premiumIds.length}, isPremiumUser=${isPremiumUser}, isPremiumRole=${isPremiumRole}, allowed=${isPremium}`);
144
146
  if (!isPremium) {
145
147
  return { allowed: false, reason: 'Premium only' };
146
148
  }
@@ -144,6 +144,8 @@ class ConfigCache {
144
144
  const premiumIds = (this.config.premiumUserIds || []).map(String);
145
145
  const isPremiumUser = premiumIds.includes(String(userId));
146
146
  const isPremium = isPremiumRole || isPremiumUser;
147
+ // Diagnostic: log list size and match (no raw IDs)
148
+ console.log(`[commandless] premium_only check: premiumUserIds.length=${premiumIds.length}, isPremiumUser=${isPremiumUser}, isPremiumRole=${isPremiumRole}, allowed=${isPremium}`);
147
149
  if (!isPremium) {
148
150
  return { allowed: false, reason: 'Premium only' };
149
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abdarrahmanabdelnasir/relay-node",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",