Skip to content

Commit

Permalink
6.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Feb 27, 2021
1 parent 0dd834b commit 5f9052c
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 55 deletions.
28 changes: 14 additions & 14 deletions dist/otpauth.cjs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/*! otpauth v6.2.2 | (c) Héctor Molinero Fernández <[email protected]> | MIT | https://github.com/hectorm/otpauth */
/*! otpauth v6.2.3 | (c) Héctor Molinero Fernández <[email protected]> | MIT | https://github.com/hectorm/otpauth */
/*! sjcl v1.0.8 | (c) bitwiseshiftleft | (BSD-2-Clause OR GPL-2.0-only) | https://github.com/bitwiseshiftleft/sjcl */
'use strict';

Expand Down Expand Up @@ -2009,12 +2009,12 @@ var Secret = /*#__PURE__*/function () {

_createClass(Secret, [{
key: "raw",

get:
/**
* String representation of secret key.
* @type {string}
*/
get: function get() {
function get() {
Object.defineProperty(this, 'raw', {
enumerable: true,
configurable: true,
Expand Down Expand Up @@ -2187,14 +2187,14 @@ var HOTP = /*#__PURE__*/function () {

_createClass(HOTP, [{
key: "generate",

value:
/**
* Generates an HOTP token.
* @param {Object} [config] Configuration options.
* @param {number} [config.counter=this.counter++] Counter value.
* @returns {string} Token.
*/
value: function generate() {
function generate() {
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
_ref2$counter = _ref2.counter,
counter = _ref2$counter === void 0 ? this.counter++ : _ref2$counter;
Expand All @@ -2220,7 +2220,7 @@ var HOTP = /*#__PURE__*/function () {

}, {
key: "validate",

value:
/**
* Validates an HOTP token.
* @param {Object} config Configuration options.
Expand All @@ -2229,7 +2229,7 @@ var HOTP = /*#__PURE__*/function () {
* @param {number} [config.window=1] Window of counter values to test.
* @returns {number|null} Token delta, or null if the token is not found.
*/
value: function validate(_ref3) {
function validate(_ref3) {
var token = _ref3.token,
_ref3$counter = _ref3.counter,
counter = _ref3$counter === void 0 ? this.counter : _ref3$counter,
Expand Down Expand Up @@ -2383,14 +2383,14 @@ var TOTP = /*#__PURE__*/function () {

_createClass(TOTP, [{
key: "generate",

value:
/**
* Generates a TOTP token.
* @param {Object} [config] Configuration options.
* @param {number} [config.timestamp=Date.now] Timestamp value in milliseconds.
* @returns {string} Token.
*/
value: function generate() {
function generate() {
var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
_ref7$timestamp = _ref7.timestamp,
timestamp = _ref7$timestamp === void 0 ? Date.now() : _ref7$timestamp;
Expand Down Expand Up @@ -2418,7 +2418,7 @@ var TOTP = /*#__PURE__*/function () {

}, {
key: "validate",

value:
/**
* Validates a TOTP token.
* @param {Object} config Configuration options.
Expand All @@ -2427,7 +2427,7 @@ var TOTP = /*#__PURE__*/function () {
* @param {number} [config.window=1] Window of counter values to test.
* @returns {number|null} Token delta, or null if the token is not found.
*/
value: function validate(_ref8) {
function validate(_ref8) {
var token = _ref8.token,
timestamp = _ref8.timestamp,
window = _ref8.window;
Expand Down Expand Up @@ -2550,13 +2550,13 @@ var URI = /*#__PURE__*/function () {

_createClass(URI, null, [{
key: "parse",

value:
/**
* Parses a Google Authenticator key URI and returns an HOTP/TOTP object.
* @param {string} uri Google Authenticator Key URI.
* @returns {HOTP|TOTP} HOTP/TOTP object.
*/
value: function parse(uri) {
function parse(uri) {
var uriGroups;

try {
Expand Down Expand Up @@ -2680,7 +2680,7 @@ var URI = /*#__PURE__*/function () {
* Library version.
* @type {string}
*/
var version = '6.2.2';
var version = '6.2.3';

exports.HOTP = HOTP;
exports.Secret = Secret;
Expand Down
4 changes: 2 additions & 2 deletions dist/otpauth.cjs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/otpauth.cjs.min.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions dist/otpauth.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/*! otpauth v6.2.2 | (c) Héctor Molinero Fernández <[email protected]> | MIT | https://github.com/hectorm/otpauth */
/*! otpauth v6.2.3 | (c) Héctor Molinero Fernández <[email protected]> | MIT | https://github.com/hectorm/otpauth */
/*! sjcl v1.0.8 | (c) bitwiseshiftleft | (BSD-2-Clause OR GPL-2.0-only) | https://github.com/bitwiseshiftleft/sjcl */
function _typeof(obj) {
"@babel/helpers - typeof";
Expand Down Expand Up @@ -2005,12 +2005,12 @@ var Secret = /*#__PURE__*/function () {

_createClass(Secret, [{
key: "raw",

get:
/**
* String representation of secret key.
* @type {string}
*/
get: function get() {
function get() {
Object.defineProperty(this, 'raw', {
enumerable: true,
configurable: true,
Expand Down Expand Up @@ -2183,14 +2183,14 @@ var HOTP = /*#__PURE__*/function () {

_createClass(HOTP, [{
key: "generate",

value:
/**
* Generates an HOTP token.
* @param {Object} [config] Configuration options.
* @param {number} [config.counter=this.counter++] Counter value.
* @returns {string} Token.
*/
value: function generate() {
function generate() {
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
_ref2$counter = _ref2.counter,
counter = _ref2$counter === void 0 ? this.counter++ : _ref2$counter;
Expand All @@ -2216,7 +2216,7 @@ var HOTP = /*#__PURE__*/function () {

}, {
key: "validate",

value:
/**
* Validates an HOTP token.
* @param {Object} config Configuration options.
Expand All @@ -2225,7 +2225,7 @@ var HOTP = /*#__PURE__*/function () {
* @param {number} [config.window=1] Window of counter values to test.
* @returns {number|null} Token delta, or null if the token is not found.
*/
value: function validate(_ref3) {
function validate(_ref3) {
var token = _ref3.token,
_ref3$counter = _ref3.counter,
counter = _ref3$counter === void 0 ? this.counter : _ref3$counter,
Expand Down Expand Up @@ -2379,14 +2379,14 @@ var TOTP = /*#__PURE__*/function () {

_createClass(TOTP, [{
key: "generate",

value:
/**
* Generates a TOTP token.
* @param {Object} [config] Configuration options.
* @param {number} [config.timestamp=Date.now] Timestamp value in milliseconds.
* @returns {string} Token.
*/
value: function generate() {
function generate() {
var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
_ref7$timestamp = _ref7.timestamp,
timestamp = _ref7$timestamp === void 0 ? Date.now() : _ref7$timestamp;
Expand Down Expand Up @@ -2414,7 +2414,7 @@ var TOTP = /*#__PURE__*/function () {

}, {
key: "validate",

value:
/**
* Validates a TOTP token.
* @param {Object} config Configuration options.
Expand All @@ -2423,7 +2423,7 @@ var TOTP = /*#__PURE__*/function () {
* @param {number} [config.window=1] Window of counter values to test.
* @returns {number|null} Token delta, or null if the token is not found.
*/
value: function validate(_ref8) {
function validate(_ref8) {
var token = _ref8.token,
timestamp = _ref8.timestamp,
window = _ref8.window;
Expand Down Expand Up @@ -2546,13 +2546,13 @@ var URI = /*#__PURE__*/function () {

_createClass(URI, null, [{
key: "parse",

value:
/**
* Parses a Google Authenticator key URI and returns an HOTP/TOTP object.
* @param {string} uri Google Authenticator Key URI.
* @returns {HOTP|TOTP} HOTP/TOTP object.
*/
value: function parse(uri) {
function parse(uri) {
var uriGroups;

try {
Expand Down Expand Up @@ -2676,6 +2676,6 @@ var URI = /*#__PURE__*/function () {
* Library version.
* @type {string}
*/
var version = '6.2.2';
var version = '6.2.3';

export { HOTP, Secret, TOTP, URI, Utils, version };
4 changes: 2 additions & 2 deletions dist/otpauth.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/otpauth.esm.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 5f9052c

Please sign in to comment.