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

bam32bittheme

Package Overview
Dependencies
Maintainers
0
Versions
379
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bam32bittheme - npm Package Compare versions

Comparing version 2.1.93-beta.2 to 2.1.93-beta.3

dist/components/PostMessageProvider.js

7

dist/index.js

@@ -120,2 +120,8 @@ "use strict";

});
Object.defineProperty(exports, "PostMessageProvider", {
enumerable: true,
get: function get() {
return _PostMessageProvider.default;
}
});
Object.defineProperty(exports, "QuickSearchTable", {

@@ -264,2 +270,3 @@ enumerable: true,

var _formatDateUtils = require("./utils/formatDateUtils");
var _PostMessageProvider = _interopRequireDefault(require("./components/PostMessageProvider"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

30

dist/layout/Layout.js

@@ -12,3 +12,2 @@ "use strict";

require("core-js/modules/es.string.replace.js");
require("core-js/modules/es.string.starts-with.js");
require("core-js/modules/web.dom-collections.iterator.js");

@@ -21,3 +20,2 @@ var _KeyboardArrowUp = _interopRequireDefault(require("@mui/icons-material/KeyboardArrowUp"));

var _Sidebar = _interopRequireDefault(require("./Sidebar"));
var _Constant = require("../Constant");
const _excluded = ["children"];

@@ -110,30 +108,2 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

}, [bodyPadding]);
(0, _react.useEffect)(() => {
const handleMessage = event => {
var _event$origin;
console.log(event.origin);
console.log('HUB_PROD_URL: ', _Constant.HUB_PROD_URL);
console.log('PORTAL_PROD_URL: ', _Constant.PORTAL_PROD_URL);
if ((_event$origin = event.origin) !== null && _event$origin !== void 0 && _event$origin.startsWith(_Constant.HUB_PROD_URL)) {
var _event$source;
console.log(event.data);
(_event$source = event.source) === null || _event$source === void 0 || _event$source.postMessage('ok', {
targetOrigin: "".concat(_Constant.HUB_PROD_URL).concat(_Constant.portalRoutes.internalPortal)
});
if (event.data) {
const data = JSON.parse(event.data);
console.log('event data json: ', event.data);
Object.entries(data).forEach(_ref3 => {
let [key, value] = _ref3;
return localStorage.setItem(key, value);
});
window.location.href = _Constant.PORTAL_PROD_URL + _Constant.portalRoutes.basename + _Constant.portalRoutes.redirect;
}
}
};
window.addEventListener('message', handleMessage);
return () => {
window.removeEventListener('message', handleMessage);
};
}, []);
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Main, {

@@ -140,0 +110,0 @@ component: "main",

2

package.json
{
"name": "bam32bittheme",
"version": "2.1.93-beta.2",
"version": "2.1.93-beta.3",
"private": false,

@@ -5,0 +5,0 @@ "description": "32bit Theme for Material UI v5.x",

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