github-repository-provider 9.0.8 → 9.0.10

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": "github-repository-provider",
3
- "version": "9.0.8",
3
+ "version": "9.0.10",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -25,17 +25,17 @@
25
25
  "license": "BSD-2-Clause",
26
26
  "scripts": {
27
27
  "prepare": "npm run prepare:typescript",
28
- "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
28
+ "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
29
29
  "test": "npm run test:ava",
30
30
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
31
31
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
32
32
  "docs": "documentation readme --section=API ./src/**/*.mjs",
33
33
  "lint": "npm run lint:docs && npm run lint:typescript",
34
34
  "lint:docs": "documentation lint ./src/**/*.mjs",
35
- "lint:typescript": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
35
+ "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
36
36
  },
37
37
  "dependencies": {
38
- "content-entry": "^9.0.2",
38
+ "content-entry": "^11.0.0",
39
39
  "fetch-link-util": "^1.1.1",
40
40
  "fetch-rate-limit-util": "^4.2.2",
41
41
  "matching-iterator": "^2.1.3",
@@ -43,7 +43,7 @@
43
43
  "repository-provider": "^35.2.15"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/node": "^20.11.25",
46
+ "@types/node": "^20.11.26",
47
47
  "ava": "^6.1.2",
48
48
  "c8": "^9.1.0",
49
49
  "documentation": "^14.0.3",
@@ -1,7 +1,7 @@
1
1
  import { matcher } from "matching-iterator";
2
2
  import { Branch } from "repository-provider";
3
3
  import {
4
- BaseCollectionEntry,
4
+ CollectionEntry,
5
5
  BufferContentEntryMixin,
6
6
  ContentEntry
7
7
  } from "content-entry";
@@ -115,7 +115,7 @@ export class GithubBranch extends Branch {
115
115
  switch (entry.type) {
116
116
  case "tree":
117
117
  {
118
- const e = new BaseCollectionEntry(entry.path);
118
+ const e = new CollectionEntry(entry.path);
119
119
  this.#entries.set(e.path, e);
120
120
  yield e;
121
121
  }
@@ -24,12 +24,7 @@ export class GithubBranch extends Branch {
24
24
  * @param {string} name
25
25
  */
26
26
  entry(name: string): Promise<any>;
27
- entries(patterns: any): AsyncGenerator<{
28
- [x: string]: any;
29
- readonly isCollection: boolean;
30
- readonly types: string[];
31
- readonly mode: number;
32
- } | LazyBufferContentEntry, void, unknown>;
27
+ entries(patterns: any): AsyncGenerator<CollectionEntry | LazyBufferContentEntry, void, unknown>;
33
28
  /**
34
29
  * https://developer.github.com/v3/repos/contents/
35
30
  * @param {AsyncIterator<ContentEntry>} entries
@@ -39,6 +34,7 @@ export class GithubBranch extends Branch {
39
34
  }
40
35
  import { Branch } from "repository-provider";
41
36
  import { ContentEntry } from "content-entry";
37
+ import { CollectionEntry } from "content-entry";
42
38
  declare const LazyBufferContentEntry_base: new (name: string) => {
43
39
  readonly string: string;
44
40
  readonly readStream: ReadableStream<any>;
@@ -61,7 +57,7 @@ declare const LazyBufferContentEntry_base: new (name: string) => {
61
57
  isBlob: boolean;
62
58
  isCollection: boolean;
63
59
  };
64
- equals(other: any): Promise<boolean>;
60
+ equals(other: import("content-entry").BaseEntry): Promise<boolean>;
65
61
  };
66
62
  declare class LazyBufferContentEntry extends LazyBufferContentEntry_base {
67
63
  constructor(name: any, mode: any, branch: any);