1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | 'use strict';
|
9 |
|
10 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
11 |
|
12 | function _interopDefault(ex) {
|
13 | return ex && (typeof ex === 'undefined' ? 'undefined' : _typeof(ex)) === 'object' && 'default' in ex ? ex['default'] : ex;
|
14 | }
|
15 |
|
16 | var hotp = _interopDefault(require('./hotp'));
|
17 | var totp = _interopDefault(require('./totp'));
|
18 | var authenticator = _interopDefault(require('./authenticator'));
|
19 | var crypto = _interopDefault(require('crypto'));
|
20 |
|
21 | authenticator.options = { crypto: crypto };
|
22 | hotp.options = { crypto: crypto };
|
23 | totp.options = { crypto: crypto };
|
24 | var index = {
|
25 | Authenticator: authenticator.Authenticator,
|
26 | HOTP: hotp.HOTP,
|
27 | TOTP: totp.TOTP,
|
28 | authenticator: authenticator,
|
29 | hotp: hotp,
|
30 | totp: totp
|
31 | };
|
32 |
|
33 | module.exports = index; |
\ | No newline at end of file |