build(deps): bump node to 14.17 and drop uuid in favor of native randomUUID (#1792)

This commit is contained in:
TheCatLady
2021-06-17 00:12:09 -04:00
committed by GitHub
parent c8b5a200d3
commit 0db0d4c280
12 changed files with 17 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
import crypto from 'crypto';
import { randomBytes } from 'crypto';
import * as openpgp from 'openpgp';
import { Transform, TransformCallback } from 'stream';
@@ -107,7 +107,7 @@ class PGPEncryptor extends Transform {
}
// Generate a new boundary for the email content
const boundary = 'nm_' + crypto.randomBytes(14).toString('hex');
const boundary = 'nm_' + randomBytes(14).toString('hex');
/**
* Concatenate everything into single strings
* and add pgp headers to the email headers