Merge branch 'dev' into staging
This commit is contained in:
commit
17846abcac
13
package-lock.json
generated
13
package-lock.json
generated
@ -17,7 +17,7 @@
|
|||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"jsonwebtoken": "^9.0.0",
|
"jsonwebtoken": "^9.0.0",
|
||||||
"le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.40",
|
"le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.44",
|
||||||
"module-alias": "^2.2.2",
|
"module-alias": "^2.2.2",
|
||||||
"multer": "^1.4.5-lts.1",
|
"multer": "^1.4.5-lts.1",
|
||||||
"next": "^13.1.5",
|
"next": "^13.1.5",
|
||||||
@ -2371,9 +2371,9 @@
|
|||||||
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
||||||
},
|
},
|
||||||
"node_modules/electron-to-chromium": {
|
"node_modules/electron-to-chromium": {
|
||||||
"version": "1.4.388",
|
"version": "1.4.389",
|
||||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.388.tgz",
|
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.389.tgz",
|
||||||
"integrity": "sha512-xZ0y4zjWZgp65okzwwt00f2rYibkFPHUv9qBz+Vzn8cB9UXIo9Zc6Dw81LJYhhNt0G/vR1OJEfStZ49NKl0YxQ==",
|
"integrity": "sha512-WDgWUOK8ROR7sDFyYmxCUOoDc50lPgYAHAHwnnD1iN3SKO/mpqftb9iIPiEkMKmqYdkrR0j3N/O+YB/U7lSxwg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/emittery": {
|
"node_modules/emittery": {
|
||||||
@ -3861,11 +3861,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/le-coffre-resources": {
|
"node_modules/le-coffre-resources": {
|
||||||
"resolved": "git+ssh://git@github.com/smart-chain-fr/leCoffre-resources.git#62639b8bfcd0f779357554a04cd40e8a3ba4e62b",
|
"resolved": "git+ssh://git@github.com/smart-chain-fr/leCoffre-resources.git#30c8ee50b872a8bc6bec0f5d8c4626d8f4490177",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"class-transformer": "^0.5.1",
|
"class-transformer": "^0.5.1",
|
||||||
"class-validator": "^0.14.0"
|
"class-validator": "^0.14.0",
|
||||||
|
"reflect-metadata": "^0.1.13"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/leven": {
|
"node_modules/leven": {
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"jsonwebtoken": "^9.0.0",
|
"jsonwebtoken": "^9.0.0",
|
||||||
"le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.40",
|
"le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.44",
|
||||||
"module-alias": "^2.2.2",
|
"module-alias": "^2.2.2",
|
||||||
"multer": "^1.4.5-lts.1",
|
"multer": "^1.4.5-lts.1",
|
||||||
"next": "^13.1.5",
|
"next": "^13.1.5",
|
||||||
|
@ -363,7 +363,7 @@ import {
|
|||||||
uid: uidDocument1,
|
uid: uidDocument1,
|
||||||
blockchain_anchor_uid: null,
|
blockchain_anchor_uid: null,
|
||||||
depositor_uid: uidCustomer1,
|
depositor_uid: uidCustomer1,
|
||||||
document_status: EDocumentStatus.ASKED,
|
document_status: EDocumentStatus.DEPOSITED,
|
||||||
folder_uid: uidOfficeFolder1,
|
folder_uid: uidOfficeFolder1,
|
||||||
document_type_uid: uidDocumentType1,
|
document_type_uid: uidDocumentType1,
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
@ -433,7 +433,7 @@ import {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
uid: uidFiles2,
|
uid: uidFiles2,
|
||||||
document_uid: uidDocument2,
|
document_uid: uidDocument1,
|
||||||
file_name: "fileName2",
|
file_name: "fileName2",
|
||||||
file_path: "https://www.google2.com",
|
file_path: "https://www.google2.com",
|
||||||
iv: "randomIv2",
|
iv: "randomIv2",
|
||||||
@ -481,7 +481,7 @@ import {
|
|||||||
uid: uidDocumentHistory1,
|
uid: uidDocumentHistory1,
|
||||||
document_status: EDocumentStatus.ASKED,
|
document_status: EDocumentStatus.ASKED,
|
||||||
document_uid: uidDocument1,
|
document_uid: uidDocument1,
|
||||||
refused_reason: "Le document n'est pas conforme",
|
refused_reason: "",
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
},
|
},
|
||||||
|
@ -27,7 +27,7 @@ export default class CryptoService extends BaseService {
|
|||||||
*/
|
*/
|
||||||
public async encrypt(data: string) {
|
public async encrypt(data: string) {
|
||||||
const encodedData = Buffer.from(data);
|
const encodedData = Buffer.from(data);
|
||||||
const iv = crypto.getRandomValues(new Uint8Array(16));
|
const iv = crypto.webcrypto.getRandomValues(new Uint8Array(16))
|
||||||
const key = await this.getKey();
|
const key = await this.getKey();
|
||||||
const cipherData = await this.subtle.encrypt(
|
const cipherData = await this.subtle.encrypt(
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user