@mediamonks/self-xss-console-banner
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -10,2 +10,2 @@ /** | ||
*/ | ||
export default function selfXssBanner(clearConsole?: boolean, heading?: string, headingImpact?: string, body?: string): void; | ||
export default function selfXssConsoleBanner(clearConsole?: boolean, heading?: string, headingImpact?: string, body?: string): void; |
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
export default function selfXssBanner(clearConsole = false, heading, headingImpact, body) { | ||
export default function selfXssConsoleBanner(clearConsole = false, heading, headingImpact, body) { | ||
if (typeof window === "undefined" || typeof console === "undefined") { | ||
@@ -13,0 +13,0 @@ return; |
{ | ||
"name": "@mediamonks/self-xss-console-banner", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Self XSS warning module", | ||
@@ -10,2 +10,3 @@ "main": "dist/index.js", | ||
], | ||
"type": "module", | ||
"scripts": { | ||
@@ -29,4 +30,4 @@ "dev": "open-cli http://localhost:8400 && run-s compile:ts && run-p watch:ts serve:*", | ||
"repository": { | ||
"type" : "git", | ||
"url" : "https://github.com/mediamonks/self-xss-console-banner.git" | ||
"type": "git", | ||
"url": "https://github.com/mediamonks/self-xss-console-banner.git" | ||
}, | ||
@@ -50,8 +51,3 @@ "keywords": [ | ||
"typescript": "^4.8.4" | ||
}, | ||
"engines": { | ||
"node": ">=18", | ||
"npm": ">=8", | ||
"yarn": "unsupported" | ||
} | ||
} |
@@ -27,2 +27,12 @@ # self-xss console banner | ||
## SSR (Server Side Rendering) | ||
When using SSR make sure that this module is not included. It's possible to use a dynamic import to execute it only | ||
on client side. | ||
``` | ||
const selfXssBanner = (await import('@mediamonks/self-xss-console-banner')).default; | ||
selfXssBanner(); | ||
``` | ||
## Default warning | ||
@@ -29,0 +39,0 @@ ![default warning](./self-xss-console-banner.webp?raw=true "Self-xss warning example") |
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
50558
47
Yes