bitbucket-repository-provider 3.10.0 → 3.10.4

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017-2021 by arlac77
1
+ Copyright (c) 2017-2022 by arlac77
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
package/README.md CHANGED
@@ -57,6 +57,7 @@ repository provider for bitbucket
57
57
  * [urls](#urls)
58
58
  * [homePageURL](#homepageurl)
59
59
  * [issuesURL](#issuesurl)
60
+ * [update](#update)
60
61
  * [createBranch](#createbranch)
61
62
  * [Parameters](#parameters-10)
62
63
  * [deleteBranch](#deletebranch)
@@ -279,6 +280,10 @@ Deliver the url of issue tracking system.
279
280
 
280
281
  Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** '.../issues'
281
282
 
283
+ ### update
284
+
285
+ <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-put>
286
+
282
287
  ### createBranch
283
288
 
284
289
  Create a new branch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbucket-repository-provider",
3
- "version": "3.10.0",
3
+ "version": "3.10.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,17 +30,17 @@
30
30
  "lint:docs": "documentation lint ./src/**/*.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "content-entry": "^2.10.0",
33
+ "content-entry": "^4.0.0",
34
34
  "matching-iterator": "^2.0.0",
35
35
  "node-fetch": "^3.1.0",
36
36
  "one-time-execution-method": "^2.0.9",
37
- "repository-provider": "^26.0.1"
37
+ "repository-provider": "^26.1.2"
38
38
  },
39
39
  "devDependencies": {
40
- "ava": "^3.15.0",
41
- "c8": "^7.10.0",
40
+ "ava": "^4.0.1",
41
+ "c8": "^7.11.0",
42
42
  "documentation": "^13.2.5",
43
- "repository-provider-test-support": "^1.8.10",
43
+ "repository-provider-test-support": "^1.9.3",
44
44
  "semantic-release": "^18.0.1"
45
45
  },
46
46
  "engines": {
@@ -102,16 +102,17 @@ class LazyBufferContentEntry extends BufferContentEntryMixin(ContentEntry) {
102
102
 
103
103
  get buffer()
104
104
  {
105
- return this.getBuffer();
105
+ return this._buffer();
106
106
  }
107
107
 
108
- async getBuffer() {
108
+ async _buffer() {
109
109
  const branch = this.branch;
110
110
 
111
111
  const res = await branch.fetch(
112
112
  `repositories/${branch.slug}/src/${branch.hash}/${this.name}`
113
113
  );
114
114
 
115
+ //return new Uint8Array(await res.arrayBuffer());
115
116
  return Buffer.from(await res.arrayBuffer());
116
117
  }
117
118
  }