github-repository-provider 7.31.4 → 7.31.7
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/README.md +1 -1
- package/package.json +6 -6
- package/src/github-branch.mjs +16 -8
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[](https://www.npmjs.com/package/github-repository-provider)
|
|
2
2
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
3
|
-
[](https://bundlejs.com/?q=github-repository-provider)
|
|
4
4
|
[](https://npmjs.org/package/github-repository-provider)
|
|
5
5
|
[](https://github.com/arlac77/github-repository-provider/issues)
|
|
6
6
|
[](https://actions-badge.atrox.dev/arlac77/github-repository-provider/goto)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-repository-provider",
|
|
3
|
-
"version": "7.31.
|
|
3
|
+
"version": "7.31.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"content-entry": "^5.0.
|
|
33
|
+
"content-entry": "^5.0.8",
|
|
34
34
|
"fetch-link-util": "^1.0.11",
|
|
35
35
|
"fetch-rate-limit-util": "^3.0.16",
|
|
36
36
|
"matching-iterator": "^2.0.7",
|
|
37
|
-
"node-fetch": "^3.2.
|
|
37
|
+
"node-fetch": "^3.2.9",
|
|
38
38
|
"one-time-execution-method": "^3.0.4",
|
|
39
39
|
"repository-provider": "^32.0.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"ava": "^4.3.1",
|
|
43
|
-
"c8": "^7.
|
|
43
|
+
"c8": "^7.12.0",
|
|
44
44
|
"documentation": "^13.2.5",
|
|
45
45
|
"etag-cache-leveldb": "^1.2.5",
|
|
46
46
|
"leveldown": "^6.1.1",
|
|
47
47
|
"levelup": "^5.1.1",
|
|
48
|
-
"repository-provider-test-support": "^2.2.
|
|
48
|
+
"repository-provider-test-support": "^2.2.11",
|
|
49
49
|
"semantic-release": "^19.0.3"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=16.
|
|
52
|
+
"node": ">=16.16.0"
|
|
53
53
|
},
|
|
54
54
|
"repository": {
|
|
55
55
|
"type": "git",
|
package/src/github-branch.mjs
CHANGED
|
@@ -114,16 +114,22 @@ export class GithubBranch extends Branch {
|
|
|
114
114
|
)) {
|
|
115
115
|
switch (entry.type) {
|
|
116
116
|
case "tree":
|
|
117
|
-
|
|
117
|
+
{
|
|
118
|
+
const e = new BaseCollectionEntry(entry.path);
|
|
119
|
+
this.#entries.set(e.path, e);
|
|
120
|
+
yield e;
|
|
121
|
+
}
|
|
118
122
|
break;
|
|
119
123
|
case "blob":
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
{
|
|
125
|
+
const e = new LazyBufferContentEntry(
|
|
126
|
+
entry.path,
|
|
127
|
+
parseInt(entry.mode, 8),
|
|
128
|
+
this
|
|
129
|
+
);
|
|
130
|
+
this.#entries.set(e.path, e);
|
|
131
|
+
yield e;
|
|
132
|
+
}
|
|
127
133
|
break;
|
|
128
134
|
/* case "commit":
|
|
129
135
|
break;*/
|
|
@@ -141,6 +147,8 @@ export class GithubBranch extends Branch {
|
|
|
141
147
|
method: "DELETE",
|
|
142
148
|
body: JSON.stringify({ branch: this.name, message: "", sha: "" })
|
|
143
149
|
});
|
|
150
|
+
|
|
151
|
+
this.#entries.delete(entry.path);
|
|
144
152
|
}
|
|
145
153
|
}
|
|
146
154
|
}
|