@types/sanitize-html 1.13.30 → 1.13.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sanitize-html/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for sanitize-html 1.13.0 (https://github.
8
8
  Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/sanitize-html
9
9
 
10
10
  Additional Details
11
- * Last updated: Thu, 25 Aug 2016 16:56:10 GMT
11
+ * Last updated: Mon, 19 Sep 2016 17:28:59 GMT
12
12
  * File structure: ProperModule
13
13
  * Library Dependencies: none
14
14
  * Module Dependencies: none
sanitize-html/index.d.ts CHANGED
@@ -1,53 +1,53 @@
1
- // Type definitions for sanitize-html 1.13.0
2
- // Project: https://github.com/punkave/sanitize-html
3
- // Definitions by: Rogier Schouten <https://github.com/rogierschouten>, Afshin Darian <https://github.com/afshin>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
-
6
- export = sanitize;
7
-
8
- declare function sanitize(dirty: string, options?: sanitize.IOptions): string;
9
-
10
- declare namespace sanitize {
11
- type Attributes = { [attr: string]: string };
12
-
13
-
14
- type Tag = { tagName: string; attribs: Attributes; text?: string; };
15
-
16
-
17
- type Transformer = (tagName: string, attribs: Attributes) => Tag;
18
-
19
-
20
- interface IDefaults {
21
- allowedAttributes: { [index: string]: string[] };
22
- allowedSchemes: string[];
23
- allowedSchemesByTag: { [index: string]: string[] };
24
- allowedTags: string[];
25
- selfClosing: string[];
26
- }
27
-
28
-
29
- interface IFrame {
30
- tag: string;
31
- attribs: { [index: string]: string };
32
- text: string;
33
- tagPosition: number;
34
- }
35
-
36
-
37
- interface IOptions {
38
- allowedAttributes?: { [index: string]: string[] };
39
- allowedClasses?: { [index: string]: string[] };
40
- allowedSchemes?: string[];
41
- allowedTags?: string[];
42
- exclusiveFilter?: (frame: IFrame) => boolean;
43
- nonTextTags?: string[];
44
- selfClosing?: string[];
45
- transformTags?: { [tagName: string]: string | Transformer };
46
- }
47
-
48
-
49
- var defaults: IDefaults;
50
-
51
-
52
- function simpleTransform(tagName: string, attribs: Attributes, merge?: boolean): Transformer;
53
- }
1
+ // Type definitions for sanitize-html 1.13.0
2
+ // Project: https://github.com/punkave/sanitize-html
3
+ // Definitions by: Rogier Schouten <https://github.com/rogierschouten>, Afshin Darian <https://github.com/afshin>
4
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
+
6
+ export = sanitize;
7
+
8
+ declare function sanitize(dirty: string, options?: sanitize.IOptions): string;
9
+
10
+ declare namespace sanitize {
11
+ type Attributes = { [attr: string]: string };
12
+
13
+
14
+ type Tag = { tagName: string; attribs: Attributes; text?: string; };
15
+
16
+
17
+ type Transformer = (tagName: string, attribs: Attributes) => Tag;
18
+
19
+
20
+ interface IDefaults {
21
+ allowedAttributes: { [index: string]: string[] };
22
+ allowedSchemes: string[];
23
+ allowedSchemesByTag: { [index: string]: string[] };
24
+ allowedTags: string[];
25
+ selfClosing: string[];
26
+ }
27
+
28
+
29
+ interface IFrame {
30
+ tag: string;
31
+ attribs: { [index: string]: string };
32
+ text: string;
33
+ tagPosition: number;
34
+ }
35
+
36
+
37
+ interface IOptions {
38
+ allowedAttributes?: { [index: string]: string[] } | boolean;
39
+ allowedClasses?: { [index: string]: string[] } | boolean;
40
+ allowedSchemes?: string[] | boolean;
41
+ allowedTags?: string[] | boolean;
42
+ exclusiveFilter?: (frame: IFrame) => boolean;
43
+ nonTextTags?: string[];
44
+ selfClosing?: string[];
45
+ transformTags?: { [tagName: string]: string | Transformer };
46
+ }
47
+
48
+
49
+ var defaults: IDefaults;
50
+
51
+
52
+ function simpleTransform(tagName: string, attribs: Attributes, merge?: boolean): Transformer;
53
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sanitize-html",
3
- "version": "1.13.30",
3
+ "version": "1.13.31",
4
4
  "description": "TypeScript definitions for sanitize-html 1.13.0",
5
5
  "license": "MIT",
6
6
  "author": "Rogier Schouten <https://github.com/rogierschouten>, Afshin Darian <https://github.com/afshin>",
@@ -11,5 +11,6 @@
11
11
  },
12
12
  "scripts": {},
13
13
  "dependencies": {},
14
- "typings": "index.d.ts"
14
+ "typings": "index.d.ts",
15
+ "typesPublisherContentHash": "835459fc02d0882a0a8f60d07d512b8e8b0257af86caeebf79081a0eb1ac4c29"
15
16
  }
@@ -21,5 +21,5 @@
21
21
  "index.d.ts"
22
22
  ],
23
23
  "hasPackageJson": false,
24
- "contentHash": "08558f770a74b676c881affe89f311bb283681c9d17d74b59f0c1dcbd9922ad8"
24
+ "contentHash": "835459fc02d0882a0a8f60d07d512b8e8b0257af86caeebf79081a0eb1ac4c29"
25
25
  }