Socket
Socket
Sign inDemoInstall

@wpe-tkpd/xss

Package Overview
Dependencies
101
Maintainers
8
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.6.0 to 4.7.0

4

dist/sanitizeUrl.d.ts

@@ -1,2 +0,4 @@

export default function sanitizeUrl(url: string | undefined, fallback?: string): string;
declare type Url = string | URL;
export default function sanitizeUrl(url: Url | undefined, fallback?: Url): string;
export {};
//# sourceMappingURL=sanitizeUrl.d.ts.map

@@ -11,3 +11,3 @@ "use strict";

function sanitizeUrl(url, fallback) {
var trustedUrl = (0, _sanitizeUrl.sanitizeUrl)(url);
var trustedUrl = (0, _sanitizeUrl.sanitizeUrl)(url instanceof URL ? url.toString() : url);

@@ -20,3 +20,4 @@ if (trustedUrl === 'about:blank') {

if (fallback) {
return (0, _sanitizeUrl.sanitizeUrl)(fallback);
var fallbackUrl = (0, _sanitizeUrl.sanitizeUrl)(fallback instanceof URL ? fallback.toString() : fallback);
return fallbackUrl;
}

@@ -23,0 +24,0 @@ }

{
"name": "@wpe-tkpd/xss",
"version": "4.6.0",
"version": "4.7.0",
"description": "Various sanitizer, escaper, encoder, and utilities to prevent XSS",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc