Skip to content

Commit 4c84830

Browse files
1 parent e9f4404 commit 4c84830

10 files changed

Lines changed: 17875 additions & 7316 deletions

File tree

‎handwritten/bigquery-storage/protos/protos.js‎

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

‎handwritten/bigtable/protos/protos.js‎

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

‎handwritten/logging/protos/protos.js‎

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

‎handwritten/pubsub/protos/protos.js‎

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

‎handwritten/storage/src/bucket.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ class Bucket extends ServiceObject<Bucket, BucketMetadata> {
16641664
if (options.contexts) {
16651665
const validationError = handleContextValidation(
16661666
options.contexts,
1667-
callback
1667+
callback,
16681668
);
16691669
if (validationError) return validationError;
16701670
}

‎handwritten/storage/src/file.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ class File extends ServiceObject<File, FileMetadata> {
13281328
if (options.contexts) {
13291329
const validationError = handleContextValidation(
13301330
options.contexts,
1331-
callback
1331+
callback,
13321332
);
13331333
if (validationError) return validationError;
13341334
}
@@ -4169,7 +4169,7 @@ class File extends ServiceObject<File, FileMetadata> {
41694169

41704170
const validationError = handleContextValidation(
41714171
options.metadata?.contexts,
4172-
callback
4172+
callback,
41734173
);
41744174
if (validationError) return validationError;
41754175

‎handwritten/storage/src/transfer-manager.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ export class TransferManager {
611611
let files: File[] = [];
612612

613613
const baseDestination = path.resolve(
614-
options.passthroughOptions?.destination || '.'
614+
options.passthroughOptions?.destination || '.',
615615
);
616616

617617
if (!Array.isArray(filesOrFolder)) {
@@ -705,7 +705,7 @@ export class TransferManager {
705705
await fsp.mkdir(path.dirname(destination), {recursive: true});
706706

707707
const resp = (await file.download(
708-
passThroughOptionsCopy
708+
passThroughOptionsCopy,
709709
)) as DownloadResponseWithStatus;
710710

711711
finalResults[i] = {
@@ -723,7 +723,7 @@ export class TransferManager {
723723
errorResp.error = err as Error;
724724
finalResults[i] = errorResp;
725725
}
726-
})
726+
}),
727727
);
728728
}
729729

@@ -922,7 +922,7 @@ export class TransferManager {
922922
promises = [];
923923
}
924924
promises.push(
925-
limit(() => mpuHelper.uploadPart(partNumber++, curChunk, validation))
925+
limit(() => mpuHelper.uploadPart(partNumber++, curChunk, validation)),
926926
);
927927
}
928928
await Promise.all(promises);

‎handwritten/storage/src/util.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ export class PassThroughShim extends PassThrough {
274274
}
275275
}
276276

277-
278277
/**
279278
* Validates Object Contexts for forbidden characters.
280279
* Double quotes (") are forbidden in context keys and values as they
@@ -289,12 +288,12 @@ export function validateContexts(contexts?: FileMetadata['contexts']): void {
289288
for (const [key, context] of Object.entries(custom)) {
290289
if (key.includes('"')) {
291290
throw new Error(
292-
`Invalid context key "${key}": Forbidden character (") detected.`
291+
`Invalid context key "${key}": Forbidden character (") detected.`,
293292
);
294293
}
295294
if (context?.value && context.value.includes('"')) {
296295
throw new Error(
297-
`Invalid context value for key "${key}": Forbidden character (") detected.`
296+
`Invalid context value for key "${key}": Forbidden character (") detected.`,
298297
);
299298
}
300299
}
@@ -307,7 +306,7 @@ export function validateContexts(contexts?: FileMetadata['contexts']): void {
307306
*/
308307
export function handleContextValidation(
309308
contexts?: FileMetadata['contexts'],
310-
callback?: Function
309+
callback?: Function,
311310
// eslint-disable-next-line @typescript-eslint/no-explicit-any
312311
): Promise<any> | void {
313312
try {

‎handwritten/storage/system-test/common.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Common', () => {
6161
} catch (e) {
6262
mockServer.close(() => done(e));
6363
}
64-
}
64+
},
6565
);
6666
});
6767
});
@@ -95,7 +95,7 @@ describe('Common', () => {
9595
} catch (e) {
9696
mockServer.close(() => done(e)); // Cleanup even if assertion fails
9797
}
98-
}
98+
},
9999
);
100100
});
101101
});

‎handwritten/storage/system-test/storage.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3005,7 +3005,7 @@ describe('storage', function () {
30053005
});
30063006

30073007
await new Promise(res =>
3008-
setTimeout(res, BUCKET_METADATA_UPDATE_WAIT_TIME)
3008+
setTimeout(res, BUCKET_METADATA_UPDATE_WAIT_TIME),
30093009
);
30103010

30113011
const encryptionKey = crypto.randomBytes(32);
@@ -3019,7 +3019,7 @@ describe('storage', function () {
30193019
assert.strictEqual(err.code, 412);
30203020
assert.ok(err.message.includes(failureMessage));
30213021
return true;
3022-
}
3022+
},
30233023
);
30243024
});
30253025

@@ -3047,7 +3047,7 @@ describe('storage', function () {
30473047
});
30483048

30493049
await new Promise(res =>
3050-
setTimeout(res, BUCKET_METADATA_UPDATE_WAIT_TIME)
3050+
setTimeout(res, BUCKET_METADATA_UPDATE_WAIT_TIME),
30513051
);
30523052

30533053
await bucket.setMetadata({
@@ -3059,19 +3059,19 @@ describe('storage', function () {
30593059
});
30603060

30613061
await new Promise(res =>
3062-
setTimeout(res, BUCKET_METADATA_UPDATE_WAIT_TIME)
3062+
setTimeout(res, BUCKET_METADATA_UPDATE_WAIT_TIME),
30633063
);
30643064

30653065
const [metadata] = await bucket.getMetadata();
30663066
assert.strictEqual(
30673067
metadata.encryption?.defaultKmsKeyName,
3068-
kmsKeyName
3068+
kmsKeyName,
30693069
);
30703070

30713071
assert.strictEqual(
30723072
metadata.encryption?.googleManagedEncryptionEnforcementConfig
30733073
?.restrictionMode,
3074-
'FullyRestricted'
3074+
'FullyRestricted',
30753075
);
30763076
});
30773077
});
@@ -3643,7 +3643,7 @@ describe('storage', function () {
36433643
assert.ok(metadata.contexts?.custom);
36443644
assert.strictEqual(
36453645
metadata.contexts.custom['team-owner']?.value,
3646-
'storage-team'
3646+
'storage-team',
36473647
);
36483648
assert.ok(metadata.contexts.custom['team-owner'].createTime);
36493649

@@ -3768,7 +3768,7 @@ describe('storage', function () {
37683768
const [metadata] = await combined.getMetadata();
37693769
assert.strictEqual(
37703770
metadata.contexts?.custom?.status?.value,
3771-
'composed'
3771+
'composed',
37723772
);
37733773
});
37743774
});

0 commit comments

Comments
 (0)