mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-05-24 00:00:05 +08:00
fix: {} is needed while export
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
* @author : Gin (gin.lance.inside@hotmail.com)
|
* @author : Gin (gin.lance.inside@hotmail.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OTP from './otp';
|
import { OTP } from './otp';
|
||||||
|
|
||||||
export class HOTP extends OTP {
|
export class HOTP extends OTP {
|
||||||
/**
|
/**
|
||||||
|
|||||||
+5
-5
@@ -5,11 +5,11 @@
|
|||||||
* @Disc : a node module to generate and verify one-time passwords
|
* @Disc : a node module to generate and verify one-time passwords
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OTP from './otp';
|
import { OTP } from './otp';
|
||||||
import TOTP from './totp';
|
import { TOTP } from './totp';
|
||||||
import HOTP from './hotp';
|
import { HOTP } from './hotp';
|
||||||
import Base32 from './base32';
|
import { Base32 } from './base32';
|
||||||
import Util from './util';
|
import { Util } from './util';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
OTP,
|
OTP,
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
* @author : Gin (gin.lance.inside@hotmail.com)
|
* @author : Gin (gin.lance.inside@hotmail.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import OTP from './otp';
|
import { OTP } from './otp';
|
||||||
|
|
||||||
export class TOTP extends OTP {
|
export class TOTP extends OTP {
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -3,6 +3,6 @@
|
|||||||
* @author : Gin (gin.lance.inside@hotmail.com)
|
* @author : Gin (gin.lance.inside@hotmail.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default class Util {
|
export class Util {
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user