@types/dompurify
Advanced tools
Comparing version 0.0.31 to 0.0.32
// Type definitions for DOM Purify | ||
// Project: https://github.com/cure53/DOMPurify | ||
// Definitions by: Dave Taylor <http://davetayls.me>, Samira Bazuzi <https://github.com/bazuzi> | ||
// Definitions by: Dave Taylor <http://davetayls.me>, Samira Bazuzi <https://github.com/bazuzi>, FlowCrypt <https://github.com/FlowCrypt> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -8,2 +8,6 @@ | ||
export declare let version: string; | ||
export declare let removed: any[]; | ||
export declare let isSupported: boolean; | ||
export declare function sanitize(source: string | Node): string; | ||
@@ -17,2 +21,8 @@ export declare function sanitize(source: string | Node, config: Config & { RETURN_DOM_FRAGMENT?: false; RETURN_DOM?: false; }): string; | ||
export declare function addHook(hook: HookName, cb: (currentNode: Element, data: HookEvent, config: Config) => void): void; | ||
export declare function setConfig(cfg: Config): void; | ||
export declare function clearConfig(): void; | ||
export declare function isValidAttribute(tag: string, attr: string, value: string): boolean; | ||
export declare function removeHook(entryPoint: HookName): void; | ||
export declare function removeHooks(entryPoint: HookName): void; | ||
export declare function removeAllHooks(): void; | ||
@@ -35,2 +45,7 @@ interface Config { | ||
WHOLE_DOCUMENT?: boolean; | ||
ALLOWED_URI_REGEXP?: RegExp; | ||
SAFE_FOR_TEMPLATES?: boolean; | ||
ALLOW_UNKNOWN_PROTOCOLS?: boolean; | ||
USE_PROFILES?: false | {mathMl?: boolean, svg?: boolean, svgFilters?: boolean, html?: boolean}; | ||
IN_PLACE?: boolean; | ||
} | ||
@@ -37,0 +52,0 @@ |
{ | ||
"name": "@types/dompurify", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"description": "TypeScript definitions for DOM Purify", | ||
@@ -15,13 +15,19 @@ "license": "MIT", | ||
"githubUsername": "bazuzi" | ||
}, | ||
{ | ||
"name": "FlowCrypt", | ||
"url": "https://github.com/FlowCrypt", | ||
"githubUsername": "FlowCrypt" | ||
} | ||
], | ||
"main": "", | ||
"types": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "cf1b4a72550a5c349165f4f2cc58ebe5ca8f07d48652b9a9a325b84861be0ce7", | ||
"typesPublisherContentHash": "99e8f941f128e4caeebfd53d4da5d89c2149dd456eaff54c220989d9648c9d54", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dompurify | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dompurify | ||
Additional Details | ||
* Last updated: Thu, 07 Sep 2017 22:03:13 GMT | ||
* Last updated: Thu, 01 Nov 2018 21:34:13 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: DOMPurify | ||
# Credits | ||
These definitions were written by Dave Taylor <http://davetayls.me>, Samira Bazuzi <https://github.com/bazuzi>. | ||
These definitions were written by Dave Taylor <http://davetayls.me>, Samira Bazuzi <https://github.com/bazuzi>, FlowCrypt <https://github.com/FlowCrypt>. |
Sorry, the diff of this file is not supported yet
5729
68