bitbucket-repository-provider 3.10.3 → 3.10.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/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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbucket-repository-provider",
3
- "version": "3.10.3",
3
+ "version": "3.10.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,21 +30,21 @@
30
30
  "lint:docs": "documentation lint ./src/**/*.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "content-entry": "^3.0.2",
33
+ "content-entry": "^4.1.2",
34
34
  "matching-iterator": "^2.0.0",
35
- "node-fetch": "^3.1.0",
35
+ "node-fetch": "^3.2.0",
36
36
  "one-time-execution-method": "^2.0.9",
37
- "repository-provider": "^26.0.3"
37
+ "repository-provider": "^26.3.0"
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.14",
44
- "semantic-release": "^18.0.1"
43
+ "repository-provider-test-support": "^1.9.8",
44
+ "semantic-release": "^19.0.2"
45
45
  },
46
46
  "engines": {
47
- "node": ">=14.18.1"
47
+ "node": ">=14.18.3"
48
48
  },
49
49
  "repository": {
50
50
  "type": "git",
@@ -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
  }