Skip to content

Commit

Permalink
6.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Apr 8, 2021
1 parent 7e6731d commit 57b3d3c
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 74 deletions.
15 changes: 4 additions & 11 deletions dist/otpauth.cjs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/*! otpauth v6.2.3 | (c) Héctor Molinero Fernández <[email protected]> | MIT | https://github.com/hectorm/otpauth */
/*! otpauth v6.2.4 | (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 @@ -2495,21 +2495,14 @@ var TOTP = /*#__PURE__*/function () {
return TOTP;
}();

/**
* Valid key URI parameters.
* @private
* @type {Array}
*/

var OTPURI_PARAMS = ['issuer', 'secret', 'algorithm', 'digits', 'counter', 'period'];
/**
* Key URI regex.
* otpauth://TYPE/[ISSUER:]LABEL?PARAMETERS
* @private
* @type {RegExp}
*/

var OTPURI_REGEX = new RegExp("^otpauth:\\/\\/([ht]otp)\\/(.+)\\?((?:&?(?:".concat(OTPURI_PARAMS.join('|'), ")=[^&]+)+)$"), 'i');
var OTPURI_REGEX = /^otpauth:\/\/([ht]otp)\/(.+)\?((?:&?[A-Z0-9.~_-]+=[^&]*)+)$/i;
/**
* RFC 4648 base32 alphabet with pad.
* @private
Expand Down Expand Up @@ -2573,7 +2566,7 @@ var URI = /*#__PURE__*/function () {
var uriType = uriGroups[1].toLowerCase();
var uriLabel = uriGroups[2].split(/:(.+)/, 2).map(decodeURIComponent);
var uriParams = uriGroups[3].split('&').reduce(function (acc, cur) {
var pairArr = cur.split(/=(.+)/, 2).map(decodeURIComponent);
var pairArr = cur.split(/=(.*)/, 2).map(decodeURIComponent);
var pairKey = pairArr[0].toLowerCase();
var pairVal = pairArr[1];
var pairAcc = acc;
Expand Down Expand Up @@ -2680,7 +2673,7 @@ var URI = /*#__PURE__*/function () {
* Library version.
* @type {string}
*/
var version = '6.2.3';
var version = '6.2.4';

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

/*! otpauth v6.2.3 | (c) Héctor Molinero Fernández <[email protected]> | MIT | https://github.com/hectorm/otpauth */
/*! otpauth v6.2.4 | (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 @@ -2491,21 +2491,14 @@ var TOTP = /*#__PURE__*/function () {
return TOTP;
}();

/**
* Valid key URI parameters.
* @private
* @type {Array}
*/

var OTPURI_PARAMS = ['issuer', 'secret', 'algorithm', 'digits', 'counter', 'period'];
/**
* Key URI regex.
* otpauth://TYPE/[ISSUER:]LABEL?PARAMETERS
* @private
* @type {RegExp}
*/

var OTPURI_REGEX = new RegExp("^otpauth:\\/\\/([ht]otp)\\/(.+)\\?((?:&?(?:".concat(OTPURI_PARAMS.join('|'), ")=[^&]+)+)$"), 'i');
var OTPURI_REGEX = /^otpauth:\/\/([ht]otp)\/(.+)\?((?:&?[A-Z0-9.~_-]+=[^&]*)+)$/i;
/**
* RFC 4648 base32 alphabet with pad.
* @private
Expand Down Expand Up @@ -2569,7 +2562,7 @@ var URI = /*#__PURE__*/function () {
var uriType = uriGroups[1].toLowerCase();
var uriLabel = uriGroups[2].split(/:(.+)/, 2).map(decodeURIComponent);
var uriParams = uriGroups[3].split('&').reduce(function (acc, cur) {
var pairArr = cur.split(/=(.+)/, 2).map(decodeURIComponent);
var pairArr = cur.split(/=(.*)/, 2).map(decodeURIComponent);
var pairKey = pairArr[0].toLowerCase();
var pairVal = pairArr[1];
var pairAcc = acc;
Expand Down Expand Up @@ -2676,6 +2669,6 @@ var URI = /*#__PURE__*/function () {
* Library version.
* @type {string}
*/
var version = '6.2.3';
var version = '6.2.4';

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions dist/otpauth.umd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/*! otpauth v6.2.3 | (c) Héctor Molinero Fernández <[email protected]> | MIT | https://github.com/hectorm/otpauth */
/*! otpauth v6.2.4 | (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 (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
Expand Down Expand Up @@ -2497,21 +2497,14 @@
return TOTP;
}();

/**
* Valid key URI parameters.
* @private
* @type {Array}
*/

var OTPURI_PARAMS = ['issuer', 'secret', 'algorithm', 'digits', 'counter', 'period'];
/**
* Key URI regex.
* otpauth://TYPE/[ISSUER:]LABEL?PARAMETERS
* @private
* @type {RegExp}
*/

var OTPURI_REGEX = new RegExp("^otpauth:\\/\\/([ht]otp)\\/(.+)\\?((?:&?(?:".concat(OTPURI_PARAMS.join('|'), ")=[^&]+)+)$"), 'i');
var OTPURI_REGEX = /^otpauth:\/\/([ht]otp)\/(.+)\?((?:&?[A-Z0-9.~_-]+=[^&]*)+)$/i;
/**
* RFC 4648 base32 alphabet with pad.
* @private
Expand Down Expand Up @@ -2575,7 +2568,7 @@
var uriType = uriGroups[1].toLowerCase();
var uriLabel = uriGroups[2].split(/:(.+)/, 2).map(decodeURIComponent);
var uriParams = uriGroups[3].split('&').reduce(function (acc, cur) {
var pairArr = cur.split(/=(.+)/, 2).map(decodeURIComponent);
var pairArr = cur.split(/=(.*)/, 2).map(decodeURIComponent);
var pairKey = pairArr[0].toLowerCase();
var pairVal = pairArr[1];
var pairAcc = acc;
Expand Down Expand Up @@ -2682,7 +2675,7 @@
* Library version.
* @type {string}
*/
var version = '6.2.3';
var version = '6.2.4';

exports.HOTP = HOTP;
exports.Secret = Secret;
Expand Down
12 changes: 6 additions & 6 deletions dist/otpauth.umd.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<title>otpauth 6.2.3 | Documentation</title>
<title>otpauth 6.2.4 | Documentation</title>
<meta name='description' content='One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>otpauth</h3>
<div class='mb1'><code>6.2.3</code></div>
<div class='mb1'><code>6.2.4</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "otpauth",
"version": "6.2.3",
"version": "6.2.4",
"description": "One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers",
"keywords": [
"otp",
Expand Down

0 comments on commit 57b3d3c

Please sign in to comment.