Socket
Socket
Sign inDemoInstall

@blumjs/router

Package Overview
Dependencies
5
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.5.0 to 6.6.0

15

dist/index.js

@@ -11,3 +11,3 @@ import P, { useEffect as et } from "react";

};
console.log("try to push history", this.subscribers), this.changeState({
console.log("try to push history", this), this.changeState({
view: e.hasOwnProperty("view") ? e.view : t,

@@ -47,3 +47,3 @@ panel: e.hasOwnProperty("panel") ? e.panel : r,

};
console.log("try to push history", this.subscribers), this.changeState({
console.log("try to push history", this), this.changeState({
view: e.hasOwnProperty("view") ? e.view : t,

@@ -763,10 +763,9 @@ panel: e.hasOwnProperty("panel") ? e.panel : r,

}, [e, r, t]);
}, Ze = (e, t, r) => {
et(() => (J.addEventListener(e, t, r), () => J.removeEventListener(r)), [e, r, t]);
}, Ze = (e, t, r, n) => {
et(() => (J.addEventListener(e, t, r), () => J.removeEventListener(r)), [...n]);
}, mr = (e, ...t) => {
const { activeView: r, activePanel: n, activeModal: i, activePopout: s, isRouteInit: o } = lr();
Ze("init", (p) => {
console.log("[blum]: initialized", p), o || J.historyPush(e);
}, 1);
const { activeView: r, activePanel: n, activeModal: i, activePopout: s, isRouteInit: o } = lr();
ur("popstate", async () => {
}, 1, [o]), ur("popstate", async () => {
o && (await (async () => {

@@ -795,3 +794,3 @@ J.fireChangeStateEvent();

}
}, 2);
}, 2, [o]);
}, lr = () => or(Ut), Sr = (e) => e, gr = (e, t) => (r, n) => ["view", "panel", "modal", "popout"].some((s) => r[s] === e && r[s] !== n[s]) && window.isBackFromBrowser ? (t && t(r, n), J.historyPush(r), !1) : !0;

@@ -798,0 +797,0 @@ export {

import { BlumRouterEventMap } from "./blum-router";
export declare const useEventListener: <K extends keyof WindowEventMap>(eventListen: K, callback: (e: WindowEventMap[K]) => void, eventKey?: string) => void;
export declare const useBlumEventListener: <K extends keyof BlumRouterEventMap>(eventListen: K, callback: (payload: BlumRouterEventMap[K]) => void, index: number) => void;
export declare const useBlumEventListener: <K extends keyof BlumRouterEventMap>(eventListen: K, callback: (payload: BlumRouterEventMap[K]) => void, index: number, deps: any[]) => void;
{
"name": "@blumjs/router",
"version": "6.5.0",
"version": "6.6.0",
"description": "",

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc