-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
53 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
|
||
|
@@ -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 | ||
|
@@ -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; | ||
|
@@ -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; | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
|
@@ -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 | ||
|
@@ -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; | ||
|
@@ -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 }; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) : | ||
|
@@ -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 | ||
|
@@ -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; | ||
|
@@ -2682,7 +2675,7 @@ | |
* Library version. | ||
* @type {string} | ||
*/ | ||
var version = '6.2.3'; | ||
var version = '6.2.4'; | ||
|
||
exports.HOTP = HOTP; | ||
exports.Secret = Secret; | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters