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

@mediamonks/self-xss-console-banner

Package Overview
Dependencies
Maintainers
11
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mediamonks/self-xss-console-banner - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dist/index.d.ts

@@ -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")

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