Skip to content

Commit c7a6ef6

Browse files
committed
chore: prettier —write
Latest version of prettier changed formatting
1 parent 898925a commit c7a6ef6

File tree

10 files changed

+36
-51
lines changed

10 files changed

+36
-51
lines changed

modules/cache-material/src/caching_cryptographic_materials_decorators.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ export function decorateProperties<S extends SupportedAlgorithmSuites>(
7979

8080
export function getEncryptionMaterials<S extends SupportedAlgorithmSuites>({
8181
buildEncryptionMaterialCacheKey,
82-
}: CryptographicMaterialsCacheKeyHelpersInterface<S>): GetEncryptionMaterials<
83-
S
84-
> {
82+
}: CryptographicMaterialsCacheKeyHelpersInterface<S>): GetEncryptionMaterials<S> {
8583
return async function getEncryptionMaterials(
8684
this: CachingMaterialsManager<S>,
8785
request: EncryptionRequest<S>
@@ -226,8 +224,7 @@ function cloneResponse<
226224

227225
export interface CachingMaterialsManagerInput<
228226
S extends SupportedAlgorithmSuites
229-
>
230-
extends Readonly<{
227+
> extends Readonly<{
231228
cache: CryptographicMaterialsCache<S>
232229
backingMaterials: MaterialsManager<S> | Keyring<S>
233230
partition?: string

modules/caching-materials-manager-browser/src/caching_materials_manager_browser.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,11 @@ export class WebCryptoCachingMaterialsManager
6060
})
6161
}
6262

63-
getEncryptionMaterials: WebCryptoGetEncryptionMaterials = getEncryptionMaterials<
64-
WebCryptoAlgorithmSuite
65-
>(cacheKeyHelpers)
66-
decryptMaterials: WebCryptoGetDecryptMaterials = decryptMaterials<
67-
WebCryptoAlgorithmSuite
68-
>(cacheKeyHelpers)
69-
_cacheEntryHasExceededLimits = cacheEntryHasExceededLimits<
70-
WebCryptoAlgorithmSuite
71-
>()
63+
getEncryptionMaterials: WebCryptoGetEncryptionMaterials = getEncryptionMaterials<WebCryptoAlgorithmSuite>(
64+
cacheKeyHelpers
65+
)
66+
decryptMaterials: WebCryptoGetDecryptMaterials = decryptMaterials<WebCryptoAlgorithmSuite>(
67+
cacheKeyHelpers
68+
)
69+
_cacheEntryHasExceededLimits = cacheEntryHasExceededLimits<WebCryptoAlgorithmSuite>()
7270
}

modules/caching-materials-manager-node/src/caching_materials_manager_node.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@ export class NodeCachingMaterialsManager
5959
})
6060
}
6161

62-
getEncryptionMaterials: NodeGetEncryptionMaterials = getEncryptionMaterials<
63-
NodeAlgorithmSuite
64-
>(cacheKeyHelpers)
65-
decryptMaterials: NodeGetDecryptMaterials = decryptMaterials<
66-
NodeAlgorithmSuite
67-
>(cacheKeyHelpers)
68-
_cacheEntryHasExceededLimits = cacheEntryHasExceededLimits<
69-
NodeAlgorithmSuite
70-
>()
62+
getEncryptionMaterials: NodeGetEncryptionMaterials = getEncryptionMaterials<NodeAlgorithmSuite>(
63+
cacheKeyHelpers
64+
)
65+
decryptMaterials: NodeGetDecryptMaterials = decryptMaterials<NodeAlgorithmSuite>(
66+
cacheKeyHelpers
67+
)
68+
_cacheEntryHasExceededLimits = cacheEntryHasExceededLimits<NodeAlgorithmSuite>()
7169
}

modules/material-management-browser/src/browser_cryptographic_materials_manager.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,10 @@ import {
2929
} from '@aws-crypto/web-crypto-backend'
3030
import { fromBase64, toBase64 } from '@aws-sdk/util-base64-browser'
3131

32-
export type WebCryptoEncryptionRequest = EncryptionRequest<
33-
WebCryptoAlgorithmSuite
34-
>
35-
export type WebCryptoDecryptionRequest = DecryptionRequest<
36-
WebCryptoAlgorithmSuite
37-
>
38-
export type WebCryptoGetEncryptionMaterials = GetEncryptionMaterials<
39-
WebCryptoAlgorithmSuite
40-
>
41-
export type WebCryptoGetDecryptMaterials = GetDecryptMaterials<
42-
WebCryptoAlgorithmSuite
43-
>
32+
export type WebCryptoEncryptionRequest = EncryptionRequest<WebCryptoAlgorithmSuite>
33+
export type WebCryptoDecryptionRequest = DecryptionRequest<WebCryptoAlgorithmSuite>
34+
export type WebCryptoGetEncryptionMaterials = GetEncryptionMaterials<WebCryptoAlgorithmSuite>
35+
export type WebCryptoGetDecryptMaterials = GetDecryptMaterials<WebCryptoAlgorithmSuite>
4436

4537
/**
4638
* The WebCryptoDefaultCryptographicMaterialsManager is a specific implementation of the CryptographicMaterialsManager.

modules/material-management-browser/src/material_helpers.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export interface WebCryptoEncryptionMaterialHelper {
5555
}
5656

5757
export interface GetEncryptHelper {
58-
(material: WebCryptoEncryptionMaterial): Promise<
59-
WebCryptoEncryptionMaterialHelper
60-
>
58+
(
59+
material: WebCryptoEncryptionMaterial
60+
): Promise<WebCryptoEncryptionMaterialHelper>
6161
}
6262

6363
export const getEncryptHelper: GetEncryptHelper = async (
@@ -109,9 +109,9 @@ export interface WebCryptoDecryptionMaterialHelper {
109109
}
110110

111111
export interface GetDecryptionHelper {
112-
(material: WebCryptoDecryptionMaterial): Promise<
113-
WebCryptoDecryptionMaterialHelper
114-
>
112+
(
113+
material: WebCryptoDecryptionMaterial
114+
): Promise<WebCryptoDecryptionMaterialHelper>
115115
}
116116

117117
export const getDecryptionHelper: GetDecryptionHelper = async (

modules/material-management-node/src/node_cryptographic_materials_manager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ import { createECDH } from 'crypto'
2626

2727
export type NodeEncryptionRequest = EncryptionRequest<NodeAlgorithmSuite>
2828
export type NodeDecryptionRequest = DecryptionRequest<NodeAlgorithmSuite>
29-
export type NodeGetEncryptionMaterials = GetEncryptionMaterials<
30-
NodeAlgorithmSuite
31-
>
29+
export type NodeGetEncryptionMaterials = GetEncryptionMaterials<NodeAlgorithmSuite>
3230
export type NodeGetDecryptMaterials = GetDecryptMaterials<NodeAlgorithmSuite>
3331

3432
/**

modules/material-management/src/keyring.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,5 @@ immutableBaseClass(Keyring)
122122

123123
export abstract class KeyringNode extends Keyring<NodeAlgorithmSuite> {}
124124
immutableClass(KeyringNode)
125-
export abstract class KeyringWebCrypto extends Keyring<
126-
WebCryptoAlgorithmSuite
127-
> {}
125+
export abstract class KeyringWebCrypto extends Keyring<WebCryptoAlgorithmSuite> {}
128126
immutableClass(KeyringWebCrypto)

modules/material-management/src/multi_keyring.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import { EncryptedDataKey } from './encrypted_data_key'
1313
import { NodeAlgorithmSuite } from './node_algorithms'
1414
import { WebCryptoAlgorithmSuite } from './web_crypto_algorithms'
1515

16-
export class MultiKeyringNode extends KeyringNode
16+
export class MultiKeyringNode
17+
extends KeyringNode
1718
implements MultiKeyring<NodeAlgorithmSuite> {
1819
public readonly generator?: KeyringNode
1920
public readonly children!: ReadonlyArray<KeyringNode>
@@ -26,7 +27,8 @@ export class MultiKeyringNode extends KeyringNode
2627
}
2728
immutableClass(MultiKeyringNode)
2829

29-
export class MultiKeyringWebCrypto extends KeyringWebCrypto
30+
export class MultiKeyringWebCrypto
31+
extends KeyringWebCrypto
3032
implements MultiKeyring<WebCryptoAlgorithmSuite> {
3133
public readonly generator?: KeyringWebCrypto
3234
public readonly children!: ReadonlyArray<KeyringWebCrypto>

modules/material-management/src/node_algorithms.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ const nodeAlgorithms: NodeAlgorithms = Object.freeze({
266266
),
267267
})
268268

269-
export class NodeAlgorithmSuite extends AlgorithmSuite
269+
export class NodeAlgorithmSuite
270+
extends AlgorithmSuite
270271
implements NodeAlgorithmSuiteValues {
271272
messageFormat!: MessageFormat
272273
encryption!: NodeEncryption

modules/material-management/src/web_crypto_algorithms.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ const supportedWebCryptoAlgorithms: SupportedWebCryptoAlgorithms = Object.freeze
319319
}
320320
)
321321

322-
export class WebCryptoAlgorithmSuite extends AlgorithmSuite
322+
export class WebCryptoAlgorithmSuite
323+
extends AlgorithmSuite
323324
implements WebCryptoAlgorithmSuiteValues {
324325
messageFormat!: MessageFormat
325326
encryption!: WebCryptoEncryption

0 commit comments

Comments
 (0)