github-repository-provider 9.0.7 → 9.0.9

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.7",
3
+ "version": "9.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -24,17 +24,18 @@
24
24
  ],
25
25
  "license": "BSD-2-Clause",
26
26
  "scripts": {
27
- "prepare": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
27
+ "prepare": "npm run prepare:typescript",
28
+ "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
28
29
  "test": "npm run test:ava",
29
30
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
30
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",
31
32
  "docs": "documentation readme --section=API ./src/**/*.mjs",
32
- "lint": "npm run lint:docs && npm run lint:tsc",
33
+ "lint": "npm run lint:docs && npm run lint:typescript",
33
34
  "lint:docs": "documentation lint ./src/**/*.mjs",
34
- "lint:tsc": "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"
35
36
  },
36
37
  "dependencies": {
37
- "content-entry": "^9.0.1",
38
+ "content-entry": "^10.0.1",
38
39
  "fetch-link-util": "^1.1.1",
39
40
  "fetch-rate-limit-util": "^4.2.2",
40
41
  "matching-iterator": "^2.1.3",
@@ -42,7 +43,7 @@
42
43
  "repository-provider": "^35.2.15"
43
44
  },
44
45
  "devDependencies": {
45
- "@types/node": "^20.11.24",
46
+ "@types/node": "^20.11.25",
46
47
  "ava": "^6.1.2",
47
48
  "c8": "^9.1.0",
48
49
  "documentation": "^14.0.3",
@@ -51,7 +52,7 @@
51
52
  "levelup": "^5.1.1",
52
53
  "repository-provider-test-support": "^3.1.4",
53
54
  "semantic-release": "^23.0.2",
54
- "typescript": "^5.3.3"
55
+ "typescript": "^5.4.2"
55
56
  },
56
57
  "engines": {
57
58
  "node": ">=20.11.1"
@@ -39,16 +39,29 @@ export class GithubBranch extends Branch {
39
39
  }
40
40
  import { Branch } from "repository-provider";
41
41
  import { ContentEntry } from "content-entry";
42
- declare const LazyBufferContentEntry_base: {
43
- new (): {
44
- [x: string]: any;
45
- readonly string: string;
46
- readonly readStream: ReadableStream<any>;
47
- readonly isEmpty: boolean;
48
- readonly size: number;
49
- getReadStream(): Promise<ReadableStream<any>>;
42
+ declare const LazyBufferContentEntry_base: new (name: string) => {
43
+ readonly string: string;
44
+ readonly readStream: ReadableStream<any>;
45
+ readonly isEmpty: boolean;
46
+ readonly size: number;
47
+ getReadStream(): Promise<ReadableStream<any>>;
48
+ readonly isBlob: boolean;
49
+ readonly types: string[];
50
+ readonly buffer: Uint8Array;
51
+ readonly encoding: string;
52
+ equalsContent(other: ContentEntry): Promise<boolean>;
53
+ name: string;
54
+ readonly isCollection: boolean;
55
+ readonly mode: number;
56
+ readonly mtime: Date;
57
+ readonly isDeleted: boolean;
58
+ readonly isExistent: boolean;
59
+ toJSON(): {
60
+ name: string;
61
+ isBlob: boolean;
62
+ isCollection: boolean;
50
63
  };
51
- [x: string]: any;
64
+ equals(other: import("content-entry").BaseEntry): Promise<boolean>;
52
65
  };
53
66
  declare class LazyBufferContentEntry extends LazyBufferContentEntry_base {
54
67
  constructor(name: any, mode: any, branch: any);