Skip to content

Commit 6b1d1a6

Browse files
committed
chore: Prettier updates
1 parent 13f63f5 commit 6b1d1a6

File tree

60 files changed

+1375
-10843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1375
-10843
lines changed

modules/cache-material/src/build_cryptographic_materials_cache_key_helpers.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ export function buildCryptographicMaterialsCacheKeyHelpers<
2121
toUtf8: (input: Uint8Array) => string,
2222
sha512: (...data: (Uint8Array | string)[]) => Promise<Uint8Array>
2323
): CryptographicMaterialsCacheKeyHelpersInterface<S> {
24-
const {
25-
serializeEncryptionContext,
26-
serializeEncryptedDataKey,
27-
} = serializeFactory(fromUtf8)
24+
const { serializeEncryptionContext, serializeEncryptedDataKey } =
25+
serializeFactory(fromUtf8)
2826

2927
return {
3028
buildEncryptionMaterialCacheKey,

modules/cache-material/src/caching_cryptographic_materials_decorators.ts

+4-9
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,17 @@ export function getEncryptionMaterials<S extends SupportedAlgorithmSuites>({
8484
this: CachingMaterialsManager<S>,
8585
request: EncryptionRequest<S>
8686
): Promise<EncryptionMaterial<S>> {
87-
const {
88-
suite,
89-
encryptionContext,
90-
plaintextLength,
91-
commitmentPolicy,
92-
} = request
87+
const { suite, encryptionContext, plaintextLength, commitmentPolicy } =
88+
request
9389

9490
/* Check for early return (Postcondition): If I can not cache the EncryptionMaterial, do not even look. */
9591
if (
9692
(suite && !suite.cacheSafe) ||
9793
typeof plaintextLength !== 'number' ||
9894
plaintextLength < 0
9995
) {
100-
const material = await this._backingMaterialsManager.getEncryptionMaterials(
101-
request
102-
)
96+
const material =
97+
await this._backingMaterialsManager.getEncryptionMaterials(request)
10398
return material
10499
}
105100

modules/cache-material/test/caching_cryptographic_materials_decorators.test.ts

+3-48
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,7 @@ describe('Cryptographic Material Functions', () => {
188188

189189
const nodeSuite = new NodeAlgorithmSuite(suiteId)
190190
const udk128 = new Uint8Array([
191-
1,
192-
2,
193-
3,
194-
4,
195-
5,
196-
6,
197-
7,
198-
8,
199-
9,
200-
10,
201-
11,
202-
12,
203-
13,
204-
14,
205-
15,
206-
16,
191+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
207192
])
208193
const encryptTrace = {
209194
keyNamespace: 'keyNamespace',
@@ -381,22 +366,7 @@ describe('Cryptographic Material Functions', () => {
381366

382367
const nodeSuite = new NodeAlgorithmSuite(suiteId)
383368
const udk128 = new Uint8Array([
384-
1,
385-
2,
386-
3,
387-
4,
388-
5,
389-
6,
390-
7,
391-
8,
392-
9,
393-
10,
394-
11,
395-
12,
396-
13,
397-
14,
398-
15,
399-
16,
369+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
400370
])
401371
const encryptTrace = {
402372
keyNamespace: 'keyNamespace',
@@ -472,22 +442,7 @@ describe('Cryptographic Material Functions', () => {
472442

473443
const nodeSuite = new NodeAlgorithmSuite(suiteId)
474444
const udk128 = new Uint8Array([
475-
1,
476-
2,
477-
3,
478-
4,
479-
5,
480-
6,
481-
7,
482-
8,
483-
9,
484-
10,
485-
11,
486-
12,
487-
13,
488-
14,
489-
15,
490-
16,
445+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
491446
])
492447
const encryptTrace = {
493448
keyNamespace: 'keyNamespace',

0 commit comments

Comments
 (0)