@tramvai/module-cache-warmup 1.68.1 → 1.71.0

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/lib/server.es.js CHANGED
@@ -134,6 +134,10 @@ CacheWarmupModule = __decorate([
134
134
  log.info('Skip cache warmup when @tramvai/module-http-client is not enabled');
135
135
  return;
136
136
  }
137
+ if (process.env.CACHE_WARMUP_DISABLED === 'true') {
138
+ log.info('Skip cache warm up due to CACHE_WARMUP_DISABLED env');
139
+ return;
140
+ }
137
141
  if (process.env.NODE_ENV !== 'production') {
138
142
  log.info('Skip cache warm up in dev environment');
139
143
  return;
package/lib/server.js CHANGED
@@ -143,6 +143,10 @@ exports.CacheWarmupModule = tslib.__decorate([
143
143
  log.info('Skip cache warmup when @tramvai/module-http-client is not enabled');
144
144
  return;
145
145
  }
146
+ if (process.env.CACHE_WARMUP_DISABLED === 'true') {
147
+ log.info('Skip cache warm up due to CACHE_WARMUP_DISABLED env');
148
+ return;
149
+ }
146
150
  if (process.env.NODE_ENV !== 'production') {
147
151
  log.info('Skip cache warm up in dev environment');
148
152
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-cache-warmup",
3
- "version": "1.68.1",
3
+ "version": "1.71.0",
4
4
  "description": "tramvai cache warmup module",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -25,10 +25,10 @@
25
25
  "@tinkoff/url": "0.7.37"
26
26
  },
27
27
  "peerDependencies": {
28
- "@tramvai/core": "1.68.1",
29
- "@tramvai/module-common": "1.68.1",
30
- "@tramvai/state": "1.68.1",
31
- "@tramvai/tokens-http-client": "1.68.1",
28
+ "@tramvai/core": "1.71.0",
29
+ "@tramvai/module-common": "1.71.0",
30
+ "@tramvai/state": "1.71.0",
31
+ "@tramvai/tokens-http-client": "1.71.0",
32
32
  "tslib": "^2.0.3"
33
33
  },
34
34
  "module": "lib/server.es.js",