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 CHANGED
@@ -1,6 +1,6 @@
1
1
  [![npm](https://img.shields.io/npm/v/github-repository-provider.svg)](https://www.npmjs.com/package/github-repository-provider)
2
2
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
3
- [![minified size](https://badgen.net/bundlephobia/min/github-repository-provider)](https://bundlephobia.com/result?p=github-repository-provider)
3
+ [![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=github-repository-provider)
4
4
  [![downloads](http://img.shields.io/npm/dm/github-repository-provider.svg?style=flat-square)](https://npmjs.org/package/github-repository-provider)
5
5
  [![GitHub Issues](https://img.shields.io/github/issues/arlac77/github-repository-provider.svg?style=flat-square)](https://github.com/arlac77/github-repository-provider/issues)
6
6
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Fgithub-repository-provider%2Fbadge\&style=flat)](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.4",
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.7",
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.6",
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.11.3",
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.10",
48
+ "repository-provider-test-support": "^2.2.11",
49
49
  "semantic-release": "^19.0.3"
50
50
  },
51
51
  "engines": {
52
- "node": ">=16.15.1"
52
+ "node": ">=16.16.0"
53
53
  },
54
54
  "repository": {
55
55
  "type": "git",
@@ -114,16 +114,22 @@ export class GithubBranch extends Branch {
114
114
  )) {
115
115
  switch (entry.type) {
116
116
  case "tree":
117
- yield new BaseCollectionEntry(entry.path);
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
- const e = new LazyBufferContentEntry(
121
- entry.path,
122
- parseInt(entry.mode, 8),
123
- this
124
- );
125
- this.#entries.set(e.path, e);
126
- yield e;
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
  }