mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
🐛 Switch back to bcryptjs to fix issues with FreeBSD and ARM #1696
This commit is contained in:
parent
343e63e667
commit
f43781b137
|
@ -55,6 +55,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@oclif/dev-cli": "^1.22.2",
|
"@oclif/dev-cli": "^1.22.2",
|
||||||
"@types/basic-auth": "^1.1.2",
|
"@types/basic-auth": "^1.1.2",
|
||||||
|
"@types/bcryptjs": "^2.4.2",
|
||||||
"@types/bull": "^3.3.10",
|
"@types/bull": "^3.3.10",
|
||||||
"@types/compression": "1.0.1",
|
"@types/compression": "1.0.1",
|
||||||
"@types/connect-history-api-fallback": "^1.3.1",
|
"@types/connect-history-api-fallback": "^1.3.1",
|
||||||
|
@ -79,11 +80,11 @@
|
||||||
"typescript": "~3.9.7"
|
"typescript": "~3.9.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@node-rs/bcrypt": "^1.2.0",
|
|
||||||
"@oclif/command": "^1.5.18",
|
"@oclif/command": "^1.5.18",
|
||||||
"@oclif/errors": "^1.2.2",
|
"@oclif/errors": "^1.2.2",
|
||||||
"@types/jsonwebtoken": "^8.3.4",
|
"@types/jsonwebtoken": "^8.3.4",
|
||||||
"basic-auth": "^2.0.1",
|
"basic-auth": "^2.0.1",
|
||||||
|
"bcryptjs": "^2.4.3",
|
||||||
"body-parser": "^1.18.3",
|
"body-parser": "^1.18.3",
|
||||||
"body-parser-xml": "^1.1.0",
|
"body-parser-xml": "^1.1.0",
|
||||||
"bull": "^3.19.0",
|
"bull": "^3.19.0",
|
||||||
|
|
|
@ -22,7 +22,9 @@ import { RequestOptions } from 'oauth-1.0a';
|
||||||
import * as csrf from 'csrf';
|
import * as csrf from 'csrf';
|
||||||
import * as requestPromise from 'request-promise-native';
|
import * as requestPromise from 'request-promise-native';
|
||||||
import { createHmac } from 'crypto';
|
import { createHmac } from 'crypto';
|
||||||
import { compare } from '@node-rs/bcrypt';
|
// IMPORRTANT! Do not switch to anther bcrypt library unless really needed and
|
||||||
|
// tested with all possible systems like Windows, Alpine on ARM, FreeBSD, ...
|
||||||
|
import { compare } from 'bcryptjs';
|
||||||
import * as promClient from 'prom-client';
|
import * as promClient from 'prom-client';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
Loading…
Reference in a new issue