Skip to content

Commit 1693ddc

Browse files
fix: Remove private access modifiers (box/box-codegen#815) (#747)
1 parent fdf3d84 commit 1693ddc

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "c0b8367", "specHash": "5bf3652", "version": "1.18.1" }
1+
{ "engineHash": "9f963f9", "specHash": "5bf3652", "version": "1.18.1" }

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/logging.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { SerializedData } from '../serialization/json.js';
22
import { sanitizeMap } from './utils.js';
33
import { sanitizeSerializedData } from '../serialization/json.js';
44
export class DataSanitizer {
5-
private readonly keysToSanitize: {
5+
readonly keysToSanitize: {
66
readonly [key: string]: string;
77
} = {
88
['authorization']: '',

src/internal/utilsBrowser.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,37 @@ export class utilLib {
1616
}
1717

1818
export class Hash {
19-
#hash: any;
19+
hash: any;
2020
algorithm: HashName;
2121

2222
constructor({ algorithm }: { algorithm: HashName }) {
2323
this.algorithm = algorithm;
24-
this.#hash = undefined;
24+
this.hash = undefined;
2525
}
2626

2727
async initializeBrowserHash() {
2828
switch (this.algorithm) {
2929
case 'sha1':
30-
this.#hash = await createSHA1();
31-
this.#hash.init();
30+
this.hash = await createSHA1();
31+
this.hash.init();
3232
break;
3333
default:
3434
throw new Error(`Unsupported algorithm: ${this.algorithm}`);
3535
}
3636
}
3737

3838
async updateHash(data: Buffer) {
39-
if (!this.#hash) {
39+
if (!this.hash) {
4040
await this.initializeBrowserHash();
4141
}
42-
this.#hash.update(data);
42+
this.hash.update(data);
4343
}
4444

4545
async digestHash(encoding: DigestHashType = 'base64'): Promise<string> {
46-
if (!this.#hash) {
46+
if (!this.hash) {
4747
await this.initializeBrowserHash();
4848
}
49-
const d = this.#hash.digest('binary');
49+
const d = this.hash.digest('binary');
5050
switch (encoding) {
5151
case 'base64':
5252
return Buffer.from(d).toString('base64');

src/internal/utilsNode.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ export type HashName = 'sha1';
1414
export type DigestHashType = 'base64';
1515

1616
export class Hash {
17-
#hash: any;
17+
hash: any;
1818
algorithm: HashName;
1919

2020
constructor({ algorithm }: { algorithm: HashName }) {
2121
this.algorithm = algorithm;
22-
this.#hash = crypto.createHash(algorithm);
22+
this.hash = crypto.createHash(algorithm);
2323
}
2424

2525
async updateHash(data: Buffer) {
26-
this.#hash.update(data);
26+
this.hash.update(data);
2727
}
2828

2929
async digestHash(encoding: DigestHashType = 'base64'): Promise<string> {
30-
return this.#hash.digest(encoding);
30+
return this.hash.digest(encoding);
3131
}
3232
}
3333

src/managers/chunkedUploads.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ export class ChunkedUploadsManager {
15981598
* @param {ByteStream} chunk
15991599
* @returns {Promise<PartAccumulator>}
16001600
*/
1601-
private async reducer(
1601+
async reducer(
16021602
acc: PartAccumulator,
16031603
chunk: ByteStream,
16041604
): Promise<PartAccumulator> {

0 commit comments

Comments
 (0)