Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@toruslabs/openlogin-utils

Package Overview
Dependencies
Maintainers
4
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toruslabs/openlogin-utils - npm Package Compare versions

Comparing version 1.7.0 to 2.0.0

dist/openloginUtils.umd.min.js.LICENSE.txt

228

dist/openloginUtils.cjs.js

@@ -1,117 +0,49 @@

module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ // The require scope
/******/ var __webpack_require__ = {};
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ (() => {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = (module) => {
/******/ var getter = module && module.__esModule ?
/******/ () => (module['default']) :
/******/ () => (module);
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ })
/******/ })();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
module.exports = require("randombytes");
/***/ }),
/* 1 */
/***/ (function(module, exports) {
module.exports = require("@babel/runtime/helpers/defineProperty");
/***/ }),
/* 2 */
/***/ (function(module, exports) {
module.exports = require("base64url");
/***/ }),
/* 3 */
/***/ (function(module, exports) {
module.exports = require("keccak");
/***/ }),
/* 4 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var __webpack_exports__ = {};
// ESM COMPAT FLAG

@@ -121,27 +53,27 @@ __webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "randomId", function() { return /* reexport */ randomId; });
__webpack_require__.d(__webpack_exports__, "URLWithHashParams", function() { return /* reexport */ url_URLWithHashParams; });
__webpack_require__.d(__webpack_exports__, "base64url", function() { return /* reexport */ base64url; });
__webpack_require__.d(__webpack_exports__, "safebtoa", function() { return /* reexport */ safebtoa; });
__webpack_require__.d(__webpack_exports__, "safeatob", function() { return /* reexport */ safeatob; });
__webpack_require__.d(__webpack_exports__, "keccak", function() { return /* reexport */ keccak; });
__webpack_require__.d(__webpack_exports__, "base64toJSON", function() { return /* reexport */ base64toJSON; });
__webpack_require__.d(__webpack_exports__, "jsonToBase64", function() { return /* reexport */ jsonToBase64; });
__webpack_require__.d(__webpack_exports__, "keccak256", function() { return /* reexport */ keccak256; });
__webpack_require__.d(__webpack_exports__, {
"URLWithHashParams": () => (/* reexport */ URLWithHashParams),
"base64toJSON": () => (/* reexport */ base64toJSON),
"base64url": () => (/* reexport */ base64url),
"jsonToBase64": () => (/* reexport */ jsonToBase64),
"keccak": () => (/* reexport */ keccak),
"keccak256": () => (/* reexport */ keccak256),
"randomId": () => (/* reexport */ randomId),
"safeatob": () => (/* reexport */ safeatob),
"safebtoa": () => (/* reexport */ safebtoa)
});
// EXTERNAL MODULE: external "randombytes"
var external_randombytes_ = __webpack_require__(0);
var external_randombytes_default = /*#__PURE__*/__webpack_require__.n(external_randombytes_);
// CONCATENATED MODULE: ./src/randomId.ts
;// CONCATENATED MODULE: external "randombytes"
const external_randombytes_namespaceObject = require("randombytes");
var external_randombytes_default = /*#__PURE__*/__webpack_require__.n(external_randombytes_namespaceObject);
;// CONCATENATED MODULE: ./src/randomId.ts
// TODO: should be crypto safe
const randomId = () => external_randombytes_default()(32).toString("hex");
// EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
var defineProperty_ = __webpack_require__(1);
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
;// CONCATENATED MODULE: external "@babel/runtime/helpers/defineProperty"
const defineProperty_namespaceObject = require("@babel/runtime/helpers/defineProperty");
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_namespaceObject);
;// CONCATENATED MODULE: ./src/url.ts
// CONCATENATED MODULE: ./src/url.ts
class url_URLWithHashParams extends URL {
class URLWithHashParams extends URL {
constructor() {

@@ -159,14 +91,12 @@ super(...arguments);

}
// EXTERNAL MODULE: external "base64url"
var external_base64url_ = __webpack_require__(2);
var external_base64url_default = /*#__PURE__*/__webpack_require__.n(external_base64url_);
;// CONCATENATED MODULE: external "base64url"
const external_base64url_namespaceObject = require("base64url");
var external_base64url_default = /*#__PURE__*/__webpack_require__.n(external_base64url_namespaceObject);
;// CONCATENATED MODULE: external "keccak"
const external_keccak_namespaceObject = require("keccak");
var external_keccak_default = /*#__PURE__*/__webpack_require__.n(external_keccak_namespaceObject);
;// CONCATENATED MODULE: ./src/utils.ts
// EXTERNAL MODULE: external "keccak"
var external_keccak_ = __webpack_require__(3);
var external_keccak_default = /*#__PURE__*/__webpack_require__.n(external_keccak_);
// CONCATENATED MODULE: ./src/utils.ts
const base64url = external_base64url_default.a;
const base64url = (external_base64url_default());
function safebtoa(str) {

@@ -179,3 +109,3 @@ return base64url.encode(str);

}
const keccak = external_keccak_default.a;
const keccak = (external_keccak_default());
function base64toJSON(b64str) {

@@ -197,9 +127,9 @@ return JSON.parse(base64url.decode(b64str));

}
// CONCATENATED MODULE: ./src/index.ts
;// CONCATENATED MODULE: ./src/index.ts
/***/ })
/******/ ]);
module.exports = __webpack_exports__;
/******/ })()
;
//# sourceMappingURL=openloginUtils.cjs.js.map
{
"name": "@toruslabs/openlogin-utils",
"version": "1.7.0",
"version": "2.0.0",
"homepage": "https://github.com/torusresearch/OpenLoginSdk#readme",

@@ -17,3 +17,3 @@ "license": "ISC",

"dev": "rimraf dist/ && cross-env NODE_ENV=development torus-scripts build",
"build": "rimraf dist/ && cross-env NODE_ENV=production torus-scripts build",
"build": "torus-scripts build",
"lint": "eslint --fix 'src/**/*.ts'",

@@ -30,5 +30,3 @@ "prepack": "yarn run build",

"@types/keccak": "^3.0.1",
"@types/node": "^16",
"@types/randombytes": "^2.0.0",
"lint-staged": "^12.3.7"
"@types/randombytes": "^2.0.0"
},

@@ -59,3 +57,3 @@ "peerDependencies": {

},
"gitHead": "d9f8f3a4375962720efe7863b224e414f1701ce9"
"gitHead": "6db88a245e11afe5fc1a21fd58835155e157471b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc