renovate 40.0.2 → 40.0.4

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.memCacheProvider = exports.MemoryHttpCacheProvider = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const memCache = tslib_1.__importStar(require("../../cache/memory"));
6
+ const clone_1 = require("../../clone");
6
7
  const abstract_http_cache_provider_1 = require("./abstract-http-cache-provider");
7
8
  class MemoryHttpCacheProvider extends abstract_http_cache_provider_1.AbstractHttpCacheProvider {
8
9
  cacheKey(url) {
@@ -10,7 +11,8 @@ class MemoryHttpCacheProvider extends abstract_http_cache_provider_1.AbstractHtt
10
11
  }
11
12
  load(url) {
12
13
  const data = memCache.get(this.cacheKey(url));
13
- return Promise.resolve(data);
14
+ const cloned = (0, clone_1.clone)(data); // Ensures cached responses cannot be mutated
15
+ return Promise.resolve(cloned);
14
16
  }
15
17
  persist(url, data) {
16
18
  memCache.set(this.cacheKey(url), data);
@@ -1 +1 @@
1
- {"version":3,"file":"memory-http-cache-provider.js","sourceRoot":"","sources":["../../../../lib/util/http/cache/memory-http-cache-provider.ts"],"names":[],"mappings":";;;;AAAA,qEAA+C;AAE/C,iFAA2E;AAG3E,MAAa,uBAAwB,SAAQ,wDAAyB;IAC5D,QAAQ,CAAC,GAAW;QAC1B,OAAO,8BAA8B,GAAG,EAAE,CAAC;IAC7C,CAAC;IAEkB,IAAI,CAAC,GAAW;QACjC,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAY,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;QACzD,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAEkB,OAAO,CAAC,GAAW,EAAE,IAAe;QACrD,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;QACvC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAEQ,KAAK,CAAC,YAAY,CAAI,GAAW;QACxC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,MAAM,CAAC,YAA+B,CAAC;IAChD,CAAC;CACF;AAvBD,0DAuBC;AAEY,QAAA,gBAAgB,GAAG,IAAI,uBAAuB,EAAE,CAAC","sourcesContent":["import * as memCache from '../../cache/memory';\nimport type { HttpResponse } from '../types';\nimport { AbstractHttpCacheProvider } from './abstract-http-cache-provider';\nimport type { HttpCache } from './schema';\n\nexport class MemoryHttpCacheProvider extends AbstractHttpCacheProvider {\n private cacheKey(url: string): string {\n return `memory-cache-http-provider:${url}`;\n }\n\n protected override load(url: string): Promise<unknown> {\n const data = memCache.get<HttpCache>(this.cacheKey(url));\n return Promise.resolve(data);\n }\n\n protected override persist(url: string, data: HttpCache): Promise<void> {\n memCache.set(this.cacheKey(url), data);\n return Promise.resolve();\n }\n\n override async bypassServer<T>(url: string): Promise<HttpResponse<T> | null> {\n const cached = await this.get(url);\n if (!cached) {\n return null;\n }\n\n return cached.httpResponse as HttpResponse<T>;\n }\n}\n\nexport const memCacheProvider = new MemoryHttpCacheProvider();\n"]}
1
+ {"version":3,"file":"memory-http-cache-provider.js","sourceRoot":"","sources":["../../../../lib/util/http/cache/memory-http-cache-provider.ts"],"names":[],"mappings":";;;;AAAA,qEAA+C;AAC/C,uCAAoC;AAEpC,iFAA2E;AAG3E,MAAa,uBAAwB,SAAQ,wDAAyB;IAC5D,QAAQ,CAAC,GAAW;QAC1B,OAAO,8BAA8B,GAAG,EAAE,CAAC;IAC7C,CAAC;IAEkB,IAAI,CAAC,GAAW;QACjC,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAY,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;QACzD,MAAM,MAAM,GAAG,IAAA,aAAK,EAAC,IAAI,CAAC,CAAC,CAAC,6CAA6C;QACzE,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAEkB,OAAO,CAAC,GAAW,EAAE,IAAe;QACrD,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;QACvC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAEQ,KAAK,CAAC,YAAY,CAAI,GAAW;QACxC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,MAAM,CAAC,YAA+B,CAAC;IAChD,CAAC;CACF;AAxBD,0DAwBC;AAEY,QAAA,gBAAgB,GAAG,IAAI,uBAAuB,EAAE,CAAC","sourcesContent":["import * as memCache from '../../cache/memory';\nimport { clone } from '../../clone';\nimport type { HttpResponse } from '../types';\nimport { AbstractHttpCacheProvider } from './abstract-http-cache-provider';\nimport type { HttpCache } from './schema';\n\nexport class MemoryHttpCacheProvider extends AbstractHttpCacheProvider {\n private cacheKey(url: string): string {\n return `memory-cache-http-provider:${url}`;\n }\n\n protected override load(url: string): Promise<unknown> {\n const data = memCache.get<HttpCache>(this.cacheKey(url));\n const cloned = clone(data); // Ensures cached responses cannot be mutated\n return Promise.resolve(cloned);\n }\n\n protected override persist(url: string, data: HttpCache): Promise<void> {\n memCache.set(this.cacheKey(url), data);\n return Promise.resolve();\n }\n\n override async bypassServer<T>(url: string): Promise<HttpResponse<T> | null> {\n const cached = await this.get(url);\n if (!cached) {\n return null;\n }\n\n return cached.httpResponse as HttpResponse<T>;\n }\n}\n\nexport const memCacheProvider = new MemoryHttpCacheProvider();\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "renovate",
3
3
  "description": "Automated dependency updates. Flexible so you don't need to be.",
4
- "version": "40.0.2",
4
+ "version": "40.0.4",
5
5
  "type": "commonjs",
6
6
  "bin": {
7
7
  "renovate": "dist/renovate.js",
@@ -209,7 +209,7 @@
209
209
  "fs-extra": "11.3.0",
210
210
  "git-url-parse": "16.1.0",
211
211
  "github-url-from-git": "1.5.0",
212
- "glob": "11.0.1",
212
+ "glob": "11.0.2",
213
213
  "global-agent": "3.0.0",
214
214
  "good-enough-parser": "1.1.23",
215
215
  "google-auth-library": "9.15.1",