rootaccessxvv-bbmarker 0.0.1-security → 1.0.1

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.

Potentially problematic release.


This version of rootaccessxvv-bbmarker might be problematic. Click here for more details.

Files changed (39) hide show
  1. package/README.md +13 -3
  2. package/index.js +1 -0
  3. package/package.json +18 -6
  4. package/sim/node_modules/.bin/xss +16 -0
  5. package/sim/node_modules/.bin/xss.cmd +17 -0
  6. package/sim/node_modules/.bin/xss.ps1 +28 -0
  7. package/sim/node_modules/.package-lock.json +36 -0
  8. package/sim/node_modules/commander/CHANGELOG.md +419 -0
  9. package/sim/node_modules/commander/LICENSE +22 -0
  10. package/sim/node_modules/commander/Readme.md +428 -0
  11. package/sim/node_modules/commander/index.js +1224 -0
  12. package/sim/node_modules/commander/package.json +38 -0
  13. package/sim/node_modules/commander/typings/index.d.ts +310 -0
  14. package/sim/node_modules/cssfilter/LICENSE +22 -0
  15. package/sim/node_modules/cssfilter/README.md +86 -0
  16. package/sim/node_modules/cssfilter/lib/css.js +110 -0
  17. package/sim/node_modules/cssfilter/lib/default.js +398 -0
  18. package/sim/node_modules/cssfilter/lib/index.js +32 -0
  19. package/sim/node_modules/cssfilter/lib/parser.js +74 -0
  20. package/sim/node_modules/cssfilter/lib/util.js +35 -0
  21. package/sim/node_modules/cssfilter/package.json +49 -0
  22. package/sim/node_modules/xss/CHANGELOG.md +24 -0
  23. package/sim/node_modules/xss/LICENSE +23 -0
  24. package/sim/node_modules/xss/README.md +505 -0
  25. package/sim/node_modules/xss/README.zh.md +491 -0
  26. package/sim/node_modules/xss/bin/xss +67 -0
  27. package/sim/node_modules/xss/dist/test.html +15 -0
  28. package/sim/node_modules/xss/dist/xss.js +1665 -0
  29. package/sim/node_modules/xss/dist/xss.min.js +1 -0
  30. package/sim/node_modules/xss/lib/cli.js +45 -0
  31. package/sim/node_modules/xss/lib/default.js +459 -0
  32. package/sim/node_modules/xss/lib/index.js +44 -0
  33. package/sim/node_modules/xss/lib/parser.js +247 -0
  34. package/sim/node_modules/xss/lib/util.js +34 -0
  35. package/sim/node_modules/xss/lib/xss.js +211 -0
  36. package/sim/node_modules/xss/package.json +63 -0
  37. package/sim/node_modules/xss/typings/xss.d.ts +202 -0
  38. package/sim/package-lock.json +44 -0
  39. package/sim/package.json +16 -0
@@ -0,0 +1,202 @@
1
+ /**
2
+ * xss
3
+ *
4
+ * @author Zongmin Lei<leizongmin@gmail.com>
5
+ */
6
+
7
+ declare module "xss" {
8
+ global {
9
+ function filterXSS(html: string, options?: IFilterXSSOptions): string;
10
+
11
+ namespace XSS {
12
+ export interface IFilterXSSOptions {
13
+ whiteList?: IWhiteList;
14
+ onTag?: OnTagHandler;
15
+ onTagAttr?: OnTagAttrHandler;
16
+ onIgnoreTag?: OnTagHandler;
17
+ onIgnoreTagAttr?: OnTagAttrHandler;
18
+ safeAttrValue?: SafeAttrValueHandler;
19
+ escapeHtml?: EscapeHandler;
20
+ stripIgnoreTag?: boolean;
21
+ stripIgnoreTagBody?: boolean | string[];
22
+ allowCommentTag?: boolean;
23
+ stripBlankChar?: boolean;
24
+ css?: {} | boolean;
25
+ }
26
+
27
+ interface IWhiteList extends Record<string, string[] | undefined> {
28
+ a?: string[];
29
+ abbr?: string[];
30
+ address?: string[];
31
+ area?: string[];
32
+ article?: string[];
33
+ aside?: string[];
34
+ audio?: string[];
35
+ b?: string[];
36
+ bdi?: string[];
37
+ bdo?: string[];
38
+ big?: string[];
39
+ blockquote?: string[];
40
+ br?: string[];
41
+ caption?: string[];
42
+ center?: string[];
43
+ cite?: string[];
44
+ code?: string[];
45
+ col?: string[];
46
+ colgroup?: string[];
47
+ dd?: string[];
48
+ del?: string[];
49
+ details?: string[];
50
+ div?: string[];
51
+ dl?: string[];
52
+ dt?: string[];
53
+ em?: string[];
54
+ figure?: string[];
55
+ figcaption?: string[];
56
+ font?: string[];
57
+ footer?: string[];
58
+ h1?: string[];
59
+ h2?: string[];
60
+ h3?: string[];
61
+ h4?: string[];
62
+ h5?: string[];
63
+ h6?: string[];
64
+ header?: string[];
65
+ hr?: string[];
66
+ i?: string[];
67
+ img?: string[];
68
+ ins?: string[];
69
+ li?: string[];
70
+ mark?: string[];
71
+ nav?: string[];
72
+ ol?: string[];
73
+ p?: string[];
74
+ pre?: string[];
75
+ s?: string[];
76
+ section?: string[];
77
+ small?: string[];
78
+ span?: string[];
79
+ sub?: string[];
80
+ sup?: string[];
81
+ strong?: string[];
82
+ strike?: string[];
83
+ summary?: string[];
84
+ table?: string[];
85
+ tbody?: string[];
86
+ td?: string[];
87
+ tfoot?: string[];
88
+ th?: string[];
89
+ thead?: string[];
90
+ tr?: string[];
91
+ tt?: string[];
92
+ u?: string[];
93
+ ul?: string[];
94
+ video?: string[];
95
+ }
96
+
97
+ type OnTagHandler = (
98
+ tag: string,
99
+ html: string,
100
+ options: {
101
+ sourcePosition?: number;
102
+ position?: number;
103
+ isClosing?: boolean;
104
+ isWhite?: boolean;
105
+ }
106
+ ) => string | void;
107
+
108
+ type OnTagAttrHandler = (
109
+ tag: string,
110
+ name: string,
111
+ value: string,
112
+ isWhiteAttr: boolean
113
+ ) => string | void;
114
+
115
+ type SafeAttrValueHandler = (
116
+ tag: string,
117
+ name: string,
118
+ value: string,
119
+ cssFilter: ICSSFilter
120
+ ) => string;
121
+
122
+ type EscapeHandler = (str: string) => string;
123
+
124
+ interface ICSSFilter {
125
+ process(value: string): string;
126
+ }
127
+ }
128
+ }
129
+ export interface IFilterXSSOptions extends XSS.IFilterXSSOptions {}
130
+
131
+ export interface IWhiteList extends XSS.IWhiteList {}
132
+
133
+ export type OnTagHandler = XSS.OnTagHandler;
134
+
135
+ export type OnTagAttrHandler = XSS.OnTagAttrHandler;
136
+
137
+ export type SafeAttrValueHandler = XSS.SafeAttrValueHandler;
138
+
139
+ export type EscapeHandler = XSS.EscapeHandler;
140
+
141
+ export interface ICSSFilter extends XSS.ICSSFilter {}
142
+
143
+ export function StripTagBody(
144
+ tags: string[],
145
+ next: () => void
146
+ ): {
147
+ onIgnoreTag(
148
+ tag: string,
149
+ html: string,
150
+ options: {
151
+ position: number;
152
+ isClosing: boolean;
153
+ }
154
+ ): string;
155
+ remove(html: string): string;
156
+ };
157
+
158
+ export class FilterXSS {
159
+ constructor(options?: IFilterXSSOptions);
160
+ process(html: string): string;
161
+ }
162
+
163
+ export function filterXSS(html: string, options?: IFilterXSSOptions): string;
164
+ export function parseTag(
165
+ html: string,
166
+ onTag: (
167
+ sourcePosition: number,
168
+ position: number,
169
+ tag: string,
170
+ html: string,
171
+ isClosing: boolean
172
+ ) => string,
173
+ escapeHtml: EscapeHandler
174
+ ): string;
175
+ export function parseAttr(
176
+ html: string,
177
+ onAttr: (name: string, value: string) => string
178
+ ): string;
179
+ export const whiteList: IWhiteList;
180
+ export function getDefaultWhiteList(): IWhiteList;
181
+ export const onTag: OnTagHandler;
182
+ export const onIgnoreTag: OnTagHandler;
183
+ export const onTagAttr: OnTagAttrHandler;
184
+ export const onIgnoreTagAttr: OnTagAttrHandler;
185
+ export const safeAttrValue: SafeAttrValueHandler;
186
+ export const escapeHtml: EscapeHandler;
187
+ export const escapeQuote: EscapeHandler;
188
+ export const unescapeQuote: EscapeHandler;
189
+ export const escapeHtmlEntities: EscapeHandler;
190
+ export const escapeDangerHtml5Entities: EscapeHandler;
191
+ export const clearNonPrintableCharacter: EscapeHandler;
192
+ export const friendlyAttrValue: EscapeHandler;
193
+ export const escapeAttrValue: EscapeHandler;
194
+ export function onIgnoreTagStripAll(): string;
195
+ export const stripCommentTag: EscapeHandler;
196
+ export const stripBlankChar: EscapeHandler;
197
+ export const cssFilter: ICSSFilter;
198
+ export function getDefaultCSSWhiteList(): ICSSFilter;
199
+
200
+ const xss: (html: string, options?: IFilterXSSOptions) => string;
201
+ export default xss;
202
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "sim",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "sim",
9
+ "version": "1.0.0",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "xss": "^1.0.10"
13
+ }
14
+ },
15
+ "node_modules/commander": {
16
+ "version": "2.20.3",
17
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
18
+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
19
+ "license": "MIT"
20
+ },
21
+ "node_modules/cssfilter": {
22
+ "version": "0.0.10",
23
+ "resolved": "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz",
24
+ "integrity": "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw==",
25
+ "license": "MIT"
26
+ },
27
+ "node_modules/xss": {
28
+ "version": "1.0.10",
29
+ "resolved": "https://registry.npmjs.org/xss/-/xss-1.0.10.tgz",
30
+ "integrity": "sha512-qmoqrRksmzqSKvgqzN0055UFWY7OKx1/9JWeRswwEVX9fCG5jcYRxa/A2DHcmZX6VJvjzHRQ2STeeVcQkrmLSw==",
31
+ "license": "MIT",
32
+ "dependencies": {
33
+ "commander": "^2.20.3",
34
+ "cssfilter": "0.0.10"
35
+ },
36
+ "bin": {
37
+ "xss": "bin/xss"
38
+ },
39
+ "engines": {
40
+ "node": ">= 0.10.0"
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "sim",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs",
13
+ "dependencies": {
14
+ "xss": "^1.0.10"
15
+ }
16
+ }