Browse Source

removing duplicated node crypto

pull/4023/head
Martin McKeaveney 6 years ago
parent
commit
9cc671325c
  1. 9051
      packages/core/package-lock.json
  2. 1
      packages/core/package.json
  3. 3
      packages/core/src/common/index.js
  4. 5
      packages/server/nodeCrypto.js

9051
packages/core/package-lock.json

File diff suppressed because it is too large

1
packages/core/package.json

@ -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",

3
packages/core/src/common/index.js

@ -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,

5
packages/server/nodeCrypto.js

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