1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

removing duplicated node crypto

This commit is contained in:
Martin McKeaveney 2020-01-23 10:46:58 +00:00
parent 0350375fae
commit 9cc671325c
4 changed files with 9053 additions and 7 deletions

File diff suppressed because it is too large Load diff

View file

@ -50,7 +50,6 @@
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/runtime": "^7.4.5",
"argon2": "^0.20.1",
"babel-eslint": "^10.0.2",
"babel-jest": "^23.6.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",

View file

@ -1,5 +1,4 @@
import {
head,
tail, findIndex, startsWith,
dropRight, flow, takeRight, trim,
@ -17,6 +16,7 @@ import {
getLock, NO_LOCK,
isNolock
} from './lock';
import crypto from "./nodeCrypto";
// this is the combinator function
export const $$ = (...funcs) => arg => flow(funcs)(arg);
@ -211,6 +211,7 @@ export {
getLock, NO_LOCK, releaseLock,
extendLock, isNolock,
} from './lock';
export { crypto };
export default {
ifExists,

View file

@ -1,5 +0,0 @@
const {hash, verify} = require("argon2");
module.exports = {
hash, verify
};