repo-util 1.24.70 → 1.24.72

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-util",
3
- "version": "1.24.70",
3
+ "version": "1.24.72",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,12 +21,12 @@
21
21
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp"
22
22
  },
23
23
  "dependencies": {
24
- "aggregation-repository-provider": "^5.3.14",
24
+ "aggregation-repository-provider": "^5.3.17",
25
25
  "bitbucket-repository-provider": "^4.4.22",
26
26
  "commander": "^9.4.1",
27
27
  "etag-cache-leveldb": "^1.4.1",
28
- "gitea-repository-provider": "^2.4.21",
29
- "github-repository-provider": "^7.33.23",
28
+ "gitea-repository-provider": "^2.4.24",
29
+ "github-repository-provider": "^7.33.24",
30
30
  "leveldown": "^6.1.1",
31
31
  "levelup": "^5.1.1",
32
32
  "local-repository-provider": "^8.1.6",
@@ -14,15 +14,15 @@ import {
14
14
  MultiGroupProvider
15
15
  } from "repository-provider";
16
16
  import pkg from "../package.json" assert { type: "json" };
17
- import { initializeRepositoryProvider } from "./setup-provider.mjs";
17
+ import { initializeRepositoryProvider, initializeCommandLine } from "./setup-provider.mjs";
18
18
 
19
19
  const properties = {};
20
20
 
21
+ initializeCommandLine(program);
22
+
21
23
  program
22
24
  .description(pkg.description)
23
25
  .version(pkg.version)
24
- .option("--no-cache", "cache requests")
25
- .option("--statistics", "show cache statistics")
26
26
  .option("--trace", "log level trace")
27
27
  .option("--debug", "log level debug")
28
28
  .option(
@@ -17,10 +17,9 @@ async function createCache() {
17
17
  }
18
18
 
19
19
  export async function initializeRepositoryProvider(program, properties) {
20
-
21
- if(!globalThis.fetch) {
22
- const module = await import("node-fetch");
23
- globalThis.fetch = module.default;
20
+ if (!globalThis.fetch) {
21
+ const module = await import("node-fetch");
22
+ globalThis.fetch = module.default;
24
23
  }
25
24
 
26
25
  const provider = await AggregationProvider.initialize(
@@ -44,3 +43,9 @@ export async function initializeRepositoryProvider(program, properties) {
44
43
 
45
44
  return { provider, options, cache };
46
45
  }
46
+
47
+ export function initializeCommandLine(program) {
48
+ program
49
+ .option("--no-cache", "cache requests")
50
+ .option("--statistics", "show cache statistics");
51
+ }