github-repository-provider 7.25.19 → 7.25.20

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": "7.25.19",
3
+ "version": "7.25.20",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -137,12 +137,12 @@ export class GithubBranch extends Branch {
137
137
 
138
138
  /**
139
139
  * @see https://developer.github.com/v3/git/trees/
140
- * @param {string } treeSha
140
+ * @param {string} sha
141
141
  * @return {Object[]}
142
142
  */
143
- async tree(treeSha) {
143
+ async tree(sha) {
144
144
  const { json } = await this.provider.fetchJSON(
145
- `repos/${this.slug}/git/trees/${treeSha}?recursive=1`
145
+ `repos/${this.slug}/git/trees/${sha}?recursive=1`
146
146
  );
147
147
  return json.tree;
148
148
  }
@@ -155,7 +155,7 @@ export class GithubBranch extends Branch {
155
155
  })) {
156
156
  yield entry.type === "tree"
157
157
  ? new BaseCollectionEntry(entry.path)
158
- : new LazyBufferContentEntry(entry.path, this);
158
+ : new LazyBufferContentEntry(entry.path, entry.mode, this);
159
159
  }
160
160
  }
161
161
 
@@ -178,8 +178,9 @@ export class GithubBranch extends Branch {
178
178
  }
179
179
 
180
180
  class LazyBufferContentEntry extends BufferContentEntryMixin(ContentEntry) {
181
- constructor(name, branch) {
181
+ constructor(name, mode, branch) {
182
182
  super(name);
183
+ Object.defineProperty(this,'mode',{ value: mode});
183
184
  this.branch = branch;
184
185
  }
185
186