Skip to content

Commit

Permalink
fix: build with json
Browse files Browse the repository at this point in the history
  • Loading branch information
yehjxraymond committed Dec 16, 2019
1 parent 25152b5 commit 7b779a6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 17 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ This library is used for encrypting OpenCerts files in transit
- [version](#version)
- [generateEncryptionKey](#generateencryptionkey)
- [Parameters](#parameters)
- [encodeDocument](#encodedocument)
- [Parameters](#parameters-1)
- [decodeDocument](#decodedocument)
- [Parameters](#parameters-2)
- [IEncryptionResults](#iencryptionresults)
- [encryptString](#encryptstring)
- [Parameters](#parameters-1)
- [Parameters](#parameters-3)
- [decryptString](#decryptstring)
- [Parameters](#parameters-2)
- [Parameters](#parameters-4)

### ENCRYPTION_PARAMETERS

Expand All @@ -45,6 +49,18 @@ Generates a random key represented as a hexadecimal string

- `keyLengthInBits` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Key length (optional, default `ENCRYPTION_PARAMETERS.keyLength`)

### encodeDocument

#### Parameters

- `document` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**

### decodeDocument

#### Parameters

- `encoded` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**

### IEncryptionResults

### encryptString
Expand Down
32 changes: 17 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"compilerOptions": {
"outDir": "dist/ts",
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"jsx": "react",
"strict": true,
"declaration": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"stripInternal": true
}
}
"compilerOptions": {
"outDir": "dist/ts",
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"jsx": "react",
"strict": true,
"declaration": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"stripInternal": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
}
}

0 comments on commit 7b779a6

Please sign in to comment.