Socket
Book a DemoSign in
Socket

isomorphic-dompurify

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic-dompurify - npm Package Compare versions

Comparing version
3.7.0
to
3.7.1
+30
dist/browser.d.mts
import * as dompurify from 'dompurify';
import dompurify__default from 'dompurify';
export { default } from 'dompurify';
declare const sanitize: typeof dompurify__default.sanitize;
declare const isSupported: boolean;
declare const addHook: {
(entryPoint: "beforeSanitizeElements" | "afterSanitizeElements" | "uponSanitizeShadowNode", hookFunction: dompurify.NodeHook): void;
(entryPoint: "beforeSanitizeAttributes" | "afterSanitizeAttributes", hookFunction: dompurify.ElementHook): void;
(entryPoint: "beforeSanitizeShadowDOM" | "afterSanitizeShadowDOM", hookFunction: dompurify.DocumentFragmentHook): void;
(entryPoint: "uponSanitizeElement", hookFunction: dompurify.UponSanitizeElementHook): void;
(entryPoint: "uponSanitizeAttribute", hookFunction: dompurify.UponSanitizeAttributeHook): void;
};
declare const removeHook: {
(entryPoint: "beforeSanitizeElements" | "afterSanitizeElements" | "uponSanitizeShadowNode", hookFunction?: dompurify.NodeHook): dompurify.NodeHook | undefined;
(entryPoint: "beforeSanitizeAttributes" | "afterSanitizeAttributes", hookFunction?: dompurify.ElementHook): dompurify.ElementHook | undefined;
(entryPoint: "beforeSanitizeShadowDOM" | "afterSanitizeShadowDOM", hookFunction?: dompurify.DocumentFragmentHook): dompurify.DocumentFragmentHook | undefined;
(entryPoint: "uponSanitizeElement", hookFunction?: dompurify.UponSanitizeElementHook): dompurify.UponSanitizeElementHook | undefined;
(entryPoint: "uponSanitizeAttribute", hookFunction?: dompurify.UponSanitizeAttributeHook): dompurify.UponSanitizeAttributeHook | undefined;
};
declare const removeHooks: (entryPoint: dompurify.HookName) => void;
declare const removeAllHooks: () => void;
declare const setConfig: (cfg?: dompurify.Config) => void;
declare const clearConfig: () => void;
declare const isValidAttribute: (tag: string, attr: string, value: string) => boolean;
declare const version: string;
declare const removed: (dompurify.RemovedElement | dompurify.RemovedAttribute)[];
declare function clearWindow(): void;
export { addHook, clearConfig, clearWindow, isSupported, isValidAttribute, removeAllHooks, removeHook, removeHooks, removed, sanitize, setConfig, version };
import * as dompurify from 'dompurify';
import dompurify__default from 'dompurify';
export { default } from 'dompurify';
declare const sanitize: typeof dompurify__default.sanitize;
declare const isSupported: boolean;
declare const addHook: {
(entryPoint: "beforeSanitizeElements" | "afterSanitizeElements" | "uponSanitizeShadowNode", hookFunction: dompurify.NodeHook): void;
(entryPoint: "beforeSanitizeAttributes" | "afterSanitizeAttributes", hookFunction: dompurify.ElementHook): void;
(entryPoint: "beforeSanitizeShadowDOM" | "afterSanitizeShadowDOM", hookFunction: dompurify.DocumentFragmentHook): void;
(entryPoint: "uponSanitizeElement", hookFunction: dompurify.UponSanitizeElementHook): void;
(entryPoint: "uponSanitizeAttribute", hookFunction: dompurify.UponSanitizeAttributeHook): void;
};
declare const removeHook: {
(entryPoint: "beforeSanitizeElements" | "afterSanitizeElements" | "uponSanitizeShadowNode", hookFunction?: dompurify.NodeHook): dompurify.NodeHook | undefined;
(entryPoint: "beforeSanitizeAttributes" | "afterSanitizeAttributes", hookFunction?: dompurify.ElementHook): dompurify.ElementHook | undefined;
(entryPoint: "beforeSanitizeShadowDOM" | "afterSanitizeShadowDOM", hookFunction?: dompurify.DocumentFragmentHook): dompurify.DocumentFragmentHook | undefined;
(entryPoint: "uponSanitizeElement", hookFunction?: dompurify.UponSanitizeElementHook): dompurify.UponSanitizeElementHook | undefined;
(entryPoint: "uponSanitizeAttribute", hookFunction?: dompurify.UponSanitizeAttributeHook): dompurify.UponSanitizeAttributeHook | undefined;
};
declare const removeHooks: (entryPoint: dompurify.HookName) => void;
declare const removeAllHooks: () => void;
declare const setConfig: (cfg?: dompurify.Config) => void;
declare const clearConfig: () => void;
declare const isValidAttribute: (tag: string, attr: string, value: string) => boolean;
declare const version: string;
declare const removed: (dompurify.RemovedElement | dompurify.RemovedAttribute)[];
declare function clearWindow(): void;
export { addHook, clearConfig, clearWindow, isSupported, isValidAttribute, removeAllHooks, removeHook, removeHooks, removed, sanitize, setConfig, version };
+3
-2
{
"name": "isomorphic-dompurify",
"version": "3.7.0",
"version": "3.7.1",
"description": "Makes it possible to use DOMPurify on server and client in the same way.",

@@ -67,2 +67,3 @@ "keywords": [

"lefthook": "^2.1.4",
"rimraf": "^6.1.3",
"tsup": "^8.5.1",

@@ -76,3 +77,3 @@ "typescript": "^6.0.2",

"scripts": {
"build": "tsup",
"build": "rimraf dist && tsup",
"format": "biome format --write",

@@ -79,0 +80,0 @@ "lint": "biome check",