build: replace bcrypt (native) with bcryptjs

This commit is contained in:
Thomas Dupont
2022-07-12 14:56:17 +02:00
committed by Joachim Van Herwegen
parent 31cdb20bce
commit 17e49e2f48
3 changed files with 61 additions and 607 deletions

662
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -88,7 +88,7 @@
"@comunica/actor-init-sparql": "^1.22.3",
"@solid/access-token-verifier": "^1.1.3",
"@types/async-lock": "^1.1.3",
"@types/bcrypt": "^5.0.0",
"@types/bcryptjs": "^2.4.2",
"@types/cors": "^2.8.12",
"@types/end-of-stream": "^1.4.1",
"@types/fs-extra": "^9.0.13",
@@ -108,7 +108,7 @@
"@types/yargs": "^17.0.8",
"arrayify-stream": "^2.0.0",
"async-lock": "^1.3.0",
"bcrypt": "^5.0.1",
"bcryptjs": "^2.4.3",
"componentsjs": "^4.5.0",
"cors": "^2.8.5",
"cross-fetch": "^3.1.5",

View File

@@ -1,5 +1,5 @@
import assert from 'assert';
import { hash, compare } from 'bcrypt';
import { hash, compare } from 'bcryptjs';
import { v4 } from 'uuid';
import type { ExpiringStorage } from '../../../../storage/keyvalue/ExpiringStorage';
import type { KeyValueStorage } from '../../../../storage/keyvalue/KeyValueStorage';