@toruslabs/openlogin-utils
Advanced tools
Comparing version 0.3.1 to 0.3.4
@@ -85,3 +85,3 @@ module.exports = | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 13); | ||
/******/ return __webpack_require__(__webpack_require__.s = 14); | ||
/******/ }) | ||
@@ -117,3 +117,3 @@ /************************************************************************/ | ||
module.exports = require("@babel/runtime/helpers/classCallCheck"); | ||
module.exports = require("randombytes"); | ||
@@ -124,3 +124,3 @@ /***/ }), | ||
module.exports = require("@babel/runtime/helpers/createClass"); | ||
module.exports = require("@babel/runtime/helpers/classCallCheck"); | ||
@@ -131,3 +131,3 @@ /***/ }), | ||
module.exports = require("@babel/runtime/helpers/assertThisInitialized"); | ||
module.exports = require("@babel/runtime/helpers/createClass"); | ||
@@ -138,3 +138,3 @@ /***/ }), | ||
module.exports = require("@babel/runtime/helpers/get"); | ||
module.exports = require("@babel/runtime/helpers/assertThisInitialized"); | ||
@@ -145,3 +145,3 @@ /***/ }), | ||
module.exports = require("@babel/runtime/helpers/inherits"); | ||
module.exports = require("@babel/runtime/helpers/get"); | ||
@@ -152,3 +152,3 @@ /***/ }), | ||
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn"); | ||
module.exports = require("@babel/runtime/helpers/inherits"); | ||
@@ -159,3 +159,3 @@ /***/ }), | ||
module.exports = require("@babel/runtime/helpers/wrapNativeSuper"); | ||
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn"); | ||
@@ -166,3 +166,3 @@ /***/ }), | ||
module.exports = require("@babel/runtime/helpers/defineProperty"); | ||
module.exports = require("@babel/runtime/helpers/wrapNativeSuper"); | ||
@@ -173,6 +173,12 @@ /***/ }), | ||
module.exports = require("@babel/runtime/helpers/defineProperty"); | ||
/***/ }), | ||
/* 13 */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("base64url"); | ||
/***/ }), | ||
/* 13 */ | ||
/* 14 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -192,3 +198,3 @@ | ||
__webpack_require__.d(__webpack_exports__, "mimcMultiHash", function() { return /* reexport */ mimcMultiHash; }); | ||
__webpack_require__.d(__webpack_exports__, "randomId", function() { return /* reexport */ randomId; }); | ||
__webpack_require__.d(__webpack_exports__, "randomId", function() { return /* reexport */ randomId_randomId; }); | ||
__webpack_require__.d(__webpack_exports__, "URLWithHashParams", function() { return /* reexport */ url_URLWithHashParams; }); | ||
@@ -332,29 +338,34 @@ __webpack_require__.d(__webpack_exports__, "keccak", function() { return /* reexport */ keccak; }); | ||
} | ||
// EXTERNAL MODULE: external "randombytes" | ||
var external_randombytes_ = __webpack_require__(4); | ||
var external_randombytes_default = /*#__PURE__*/__webpack_require__.n(external_randombytes_); | ||
// CONCATENATED MODULE: ./src/randomId.ts | ||
// TODO: should be crypto safe | ||
var randomId = function randomId() { | ||
return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER / 2) + 1; | ||
var randomId_randomId = function randomId() { | ||
return external_randombytes_default()(32).toString("hex"); | ||
}; | ||
// EXTERNAL MODULE: external "@babel/runtime/helpers/classCallCheck" | ||
var classCallCheck_ = __webpack_require__(4); | ||
var classCallCheck_ = __webpack_require__(5); | ||
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck_); | ||
// EXTERNAL MODULE: external "@babel/runtime/helpers/createClass" | ||
var createClass_ = __webpack_require__(5); | ||
var createClass_ = __webpack_require__(6); | ||
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass_); | ||
// EXTERNAL MODULE: external "@babel/runtime/helpers/assertThisInitialized" | ||
var assertThisInitialized_ = __webpack_require__(6); | ||
var assertThisInitialized_ = __webpack_require__(7); | ||
var assertThisInitialized_default = /*#__PURE__*/__webpack_require__.n(assertThisInitialized_); | ||
// EXTERNAL MODULE: external "@babel/runtime/helpers/get" | ||
var get_ = __webpack_require__(7); | ||
var get_ = __webpack_require__(8); | ||
var get_default = /*#__PURE__*/__webpack_require__.n(get_); | ||
// EXTERNAL MODULE: external "@babel/runtime/helpers/inherits" | ||
var inherits_ = __webpack_require__(8); | ||
var inherits_ = __webpack_require__(9); | ||
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits_); | ||
// EXTERNAL MODULE: external "@babel/runtime/helpers/possibleConstructorReturn" | ||
var possibleConstructorReturn_ = __webpack_require__(9); | ||
var possibleConstructorReturn_ = __webpack_require__(10); | ||
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn_); | ||
@@ -367,7 +378,7 @@ | ||
// EXTERNAL MODULE: external "@babel/runtime/helpers/wrapNativeSuper" | ||
var wrapNativeSuper_ = __webpack_require__(10); | ||
var wrapNativeSuper_ = __webpack_require__(11); | ||
var wrapNativeSuper_default = /*#__PURE__*/__webpack_require__.n(wrapNativeSuper_); | ||
// EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty" | ||
var defineProperty_ = __webpack_require__(11); | ||
var defineProperty_ = __webpack_require__(12); | ||
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_); | ||
@@ -422,3 +433,3 @@ | ||
// EXTERNAL MODULE: external "base64url" | ||
var external_base64url_ = __webpack_require__(12); | ||
var external_base64url_ = __webpack_require__(13); | ||
var external_base64url_default = /*#__PURE__*/__webpack_require__.n(external_base64url_); | ||
@@ -425,0 +436,0 @@ |
{ | ||
"name": "@toruslabs/openlogin-utils", | ||
"version": "0.3.1", | ||
"version": "0.3.4", | ||
"homepage": "https://github.com/torusresearch/OpenLoginSdk#readme", | ||
@@ -27,7 +27,9 @@ "license": "ISC", | ||
"ffjavascript": "^0.2.35", | ||
"keccak": "^3.0.1" | ||
"keccak": "^3.0.1", | ||
"randombytes": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/keccak": "^3.0.1", | ||
"@types/node": "^14.14.25" | ||
"@types/node": "^14.14.25", | ||
"@types/randombytes": "^2.0.0" | ||
}, | ||
@@ -58,3 +60,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "bf44c108ce0370fee84ed335ba1e2bf34aa3656a" | ||
"gitHead": "c1f7022f233c8e146616b80d58891f87df6c9974" | ||
} |
@@ -1,1 +0,1 @@ | ||
export declare const randomId: () => number; | ||
export declare const randomId: () => string; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1806756
12407
6
3
+ Addedrandombytes@^2.1.0
+ Addedrandombytes@2.1.0(transitive)