@graphql-mesh/cache-redis 0.105.0-alpha-20251010093057-4eeae9412ec39cfbab6e001ecaf527cf94f4ea31 → 0.105.0-alpha-20251031173939-bb731bdf9338fe03f467c8627692608f9604bcac

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/cjs/index.js CHANGED
@@ -74,7 +74,7 @@ class RedisCache {
74
74
  redisUrl.searchParams.set('family', '6');
75
75
  }
76
76
  const urlStr = redisUrl.toString();
77
- options.logger.debug(`Connecting to Redis at ${urlStr}`);
77
+ safelyLogURL(options.logger, urlStr);
78
78
  this.client = new ioredis_1.default(urlStr);
79
79
  }
80
80
  else {
@@ -162,3 +162,10 @@ function scanPatterns(redis, pattern, cursor = '0', keys = []) {
162
162
  return scanPatterns(redis, pattern, nextCursor, keys);
163
163
  });
164
164
  }
165
+ function safelyLogURL(log, url) {
166
+ const logURL = new URL(url);
167
+ if (logURL.password) {
168
+ logURL.password = '*'.repeat(logURL.password.length);
169
+ }
170
+ log.debug(`Connecting to Redis at ${logURL}`);
171
+ }
package/esm/index.js CHANGED
@@ -71,7 +71,7 @@ export default class RedisCache {
71
71
  redisUrl.searchParams.set('family', '6');
72
72
  }
73
73
  const urlStr = redisUrl.toString();
74
- options.logger.debug(`Connecting to Redis at ${urlStr}`);
74
+ safelyLogURL(options.logger, urlStr);
75
75
  this.client = new Redis(urlStr);
76
76
  }
77
77
  else {
@@ -158,3 +158,10 @@ function scanPatterns(redis, pattern, cursor = '0', keys = []) {
158
158
  return scanPatterns(redis, pattern, nextCursor, keys);
159
159
  });
160
160
  }
161
+ function safelyLogURL(log, url) {
162
+ const logURL = new URL(url);
163
+ if (logURL.password) {
164
+ logURL.password = '*'.repeat(logURL.password.length);
165
+ }
166
+ log.debug(`Connecting to Redis at ${logURL}`);
167
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/cache-redis",
3
- "version": "0.105.0-alpha-20251010093057-4eeae9412ec39cfbab6e001ecaf527cf94f4ea31",
3
+ "version": "0.105.0-alpha-20251031173939-bb731bdf9338fe03f467c8627692608f9604bcac",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
@@ -8,11 +8,11 @@
8
8
  "dependencies": {
9
9
  "@graphql-mesh/cross-helpers": "^0.4.10",
10
10
  "@graphql-mesh/string-interpolation": "0.5.9",
11
- "@graphql-mesh/types": "^0.104.13",
11
+ "@graphql-mesh/types": "^0.104.14",
12
12
  "@opentelemetry/api": "^1.9.0",
13
13
  "@whatwg-node/disposablestack": "^0.0.6",
14
14
  "ioredis": "^5.3.2",
15
- "ioredis-mock": "^8.8.3",
15
+ "ioredis-mock": "^8.13.1",
16
16
  "tslib": "^2.4.0"
17
17
  },
18
18
  "repository": {