mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
Merge pull request #1201 from hedgedoc/remove-polyfill
This commit is contained in:
commit
7ea3357ba8
3 changed files with 0 additions and 15 deletions
|
@ -1,15 +1,6 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
// external modules
|
// external modules
|
||||||
const Sequelize = require('sequelize')
|
const Sequelize = require('sequelize')
|
||||||
const crypto = require('crypto')
|
|
||||||
if (!crypto.scrypt) {
|
|
||||||
// polyfill for node.js 8.0, see https://github.com/chrisveness/scrypt-kdf#openssl-implementation
|
|
||||||
const scryptAsync = require('scrypt-async')
|
|
||||||
crypto.scrypt = function (password, salt, keylen, options, callback) {
|
|
||||||
const opt = Object.assign({}, options, { dkLen: keylen })
|
|
||||||
scryptAsync(password, salt, opt, (derivedKey) => callback(null, Buffer.from(derivedKey)))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const scrypt = require('scrypt-kdf')
|
const scrypt = require('scrypt-kdf')
|
||||||
|
|
||||||
// core
|
// core
|
||||||
|
|
|
@ -115,7 +115,6 @@
|
||||||
"readline-sync": "^1.4.7",
|
"readline-sync": "^1.4.7",
|
||||||
"reveal.js": "^3.9.2",
|
"reveal.js": "^3.9.2",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"scrypt-async": "^2.0.1",
|
|
||||||
"scrypt-kdf": "^2.0.1",
|
"scrypt-kdf": "^2.0.1",
|
||||||
"select2": "^3.5.2-browserify",
|
"select2": "^3.5.2-browserify",
|
||||||
"sequelize": "^5.21.1",
|
"sequelize": "^5.21.1",
|
||||||
|
|
|
@ -9451,11 +9451,6 @@ script-loader@0.7.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
raw-loader "~0.5.1"
|
raw-loader "~0.5.1"
|
||||||
|
|
||||||
scrypt-async@^2.0.1:
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/scrypt-async/-/scrypt-async-2.0.1.tgz#4318dae48a8b7cc3b8fe05f75f4164a7d973d25d"
|
|
||||||
integrity sha512-wHR032jldwZNy7Tzrfu7RccOgGf8r5hyDMSP2uV6DpLiBUsR8JsDcx/in73o2UGVVrH5ivRFdNsFPcjtl3LErQ==
|
|
||||||
|
|
||||||
scrypt-kdf@^2.0.1:
|
scrypt-kdf@^2.0.1:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/scrypt-kdf/-/scrypt-kdf-2.0.1.tgz#3355224c52d398331b2cbf2b70a7be26b52c53e6"
|
resolved "https://registry.yarnpkg.com/scrypt-kdf/-/scrypt-kdf-2.0.1.tgz#3355224c52d398331b2cbf2b70a7be26b52c53e6"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue