@locator/shared
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -28,2 +28,3 @@ export * from "./types"; | ||
export declare function detectSvelte(): boolean; | ||
export declare function detectVue(): boolean; | ||
export declare type SourceLocation = { | ||
@@ -30,0 +31,0 @@ start: { |
@@ -46,3 +46,16 @@ export * from "./types"; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
if (window.__SAPPER__) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
export function detectVue() { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
if (window.__VUE__) { | ||
return true; | ||
} | ||
return false; | ||
} |
{ | ||
"name": "@locator/shared", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "./dist/index.js", | ||
@@ -18,3 +18,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "496da1f7c2e458861650c667fdd4c2296af9a0dc", | ||
"gitHead": "1995de3282210cb5634577cd00156d4071d13ec3", | ||
"files": [ | ||
@@ -21,0 +21,0 @@ "dist", |
@@ -61,4 +61,20 @@ export * from "./types"; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
if (window.__SAPPER__) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
export function detectVue() { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
if (window.__VUE__) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
export type SourceLocation = { | ||
@@ -65,0 +81,0 @@ start: { |
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
37821
1244