Browse Source

namespace handlers in lib/

Kieran Gibb 2 years ago
parent
commit
86cd9c3201
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions
  1. 2
    2
      index.js
  2. 1
    1
      lib/handlers/keys.js
  3. 0
    0
      lib/handlers/map.js

+ 2
- 2
index.js View File

@@ -14,8 +14,8 @@ const IDENTITY_SUBKEY_ID = 0
14 14
 module.exports = (storage, opts) => new CoBoxConfig(storage, opts)
15 15
 module.exports.IDENTITY_SUBKEY_ID = IDENTITY_SUBKEY_ID
16 16
 
17
-const KeyHandler = require('./lib/key-handler')
18
-const MapHandler = require('./lib/map-handler')
17
+const KeyHandler = require('./lib/handlers/keys')
18
+const MapHandler = require('./lib/handlers/map')
19 19
 
20 20
 const defaultConfig = (options = {}) => ({
21 21
   options,

lib/key-handler.js → lib/handlers/keys.js View File

@@ -1,5 +1,5 @@
1 1
 const crypto = require('cobox-crypto')
2
-const { isPubKey, isName } = require('../util')
2
+const { isPubKey, isName } = require('../../util')
3 3
 
4 4
 const KEY_NAMES = ['name', 'address', 'encryptionKey']
5 5
 

lib/map-handler.js → lib/handlers/map.js View File