Skip to content

Commit

Permalink
make interface values lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
saiprasannasastry committed Aug 14, 2023
1 parent 5fa22a3 commit ab688a2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export interface TransformerConfig {
}

export interface EncryptConfig {
Key: string
Properties: string[]
Label: string
Seed: string
key: string
properties: string[]
label: string
seed: string
}
export interface TransformerConfigSample {
percent: number
Expand Down Expand Up @@ -277,15 +277,15 @@ function consumeDigest(digest: number[], arr: number[]) {
}

function EncryptProperties(payload: any, config: TransformerConfig) {
if (!config.encrypt.Key) {
if (!config.encrypt.key) {
throw new Error('public key not present')
}

encryptWithPublicKey(
config.encrypt.Key,
config.encrypt.Label,
config.encrypt.Properties,
config.encrypt.Seed,
config.encrypt.key,
config.encrypt.label,
config.encrypt.properties,
config.encrypt.seed,
payload,
)
// Parse the properties back into a JSON object
Expand Down

0 comments on commit ab688a2

Please sign in to comment.