@factor/app
Advanced tools
Comparing version 1.7.9 to 1.7.10
{ | ||
"name": "@factor/app", | ||
"version": "1.7.9", | ||
"version": "1.7.10", | ||
"license": "GPL-2.0", | ||
@@ -15,3 +15,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "2d8956306076602e17937d5430236bacd5660482" | ||
"gitHead": "ffa866a400aff94be8dcfb53c3d8090fc474cc76" | ||
} |
@@ -6,16 +6,7 @@ import { applyFilters, runCallbacks, addFilter } from "@factor/api/hooks" | ||
import qs from "qs" | ||
import { uniq, getGlobalThis } from "@factor/api" | ||
import { uniq } from "@factor/api" | ||
let __initialPageLoad = true | ||
let __routerInstance: VueRouter | ||
const GLOBALS = getGlobalThis() as any | ||
GLOBALS.__routerInstance = "" | ||
declare module "vue/types/vue" { | ||
export interface VueConstructor { | ||
$router: VueRouter | ||
} | ||
} | ||
/** | ||
@@ -152,3 +143,3 @@ * In client, when we change routes, we should run checks for auth, preloaders, etc. | ||
GLOBALS.__routerInstance = router | ||
__routerInstance = router | ||
@@ -159,3 +150,3 @@ return router | ||
export const getRouter = (): VueRouter => { | ||
return GLOBALS.__routerInstance | ||
return __routerInstance | ||
} | ||
@@ -167,3 +158,3 @@ | ||
export const setRouter = (r: VueRouter): void => { | ||
GLOBALS.__routerInstance = r | ||
__routerInstance = r | ||
} | ||
@@ -170,0 +161,0 @@ |
@@ -62,3 +62,3 @@ import Vuex from "vuex" | ||
export const stored = (key?: string | ObjectId | number): any => { | ||
if (!__store || !key) return undefined | ||
if (!__store || !key) return | ||
@@ -65,0 +65,0 @@ return __store.getters["getItem"](key) |
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
65877
847