Skip to content

Commit c6bb4b9

Browse files
committed
fix: add @types packages to the dependencies
1 parent 92cbfe8 commit c6bb4b9

3 files changed

Lines changed: 20 additions & 45 deletions

File tree

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "atom-ide-base",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"main": "package/main.js",
55
"types": "./types-packages/main.d.ts",
66
"files": [
@@ -78,6 +78,11 @@
7878
"pnpm": ">=5.12"
7979
},
8080
"dependencies": {
81+
"@types/atom": "1.40.10",
82+
"@types/node": "^14.14.35",
83+
"@types/react": "^17.0.3",
84+
"@types/react-dom": "^17.0.2",
85+
"@types/dompurify": "^2.2.1",
8186
"atom-ide-markdown-service": "^2.1.0",
8287
"atom-package-deps": "^7.2.2",
8388
"classnames": "^2.2.6",
@@ -91,13 +96,8 @@
9196
"@babel/cli": "7.13.10",
9297
"@babel/core": "7.13.10",
9398
"@jest-runner/nuclide-e2e": "^2.0",
94-
"@types/atom": "1.40.10",
9599
"@types/classnames": "^2.2.11",
96-
"@types/dompurify": "^2.2.1",
97100
"@types/jasmine": "^3.6.7",
98-
"@types/node": "^14.14.35",
99-
"@types/react": "^17.0.3",
100-
"@types/react-dom": "^17.0.2",
101101
"atom-jasmine3-test-runner": "^5.2.2",
102102
"babel-jest": "^26.6.3",
103103
"babel-preset-atomic": "^3.0.2",

pnpm-lock.yaml

Lines changed: 11 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types-packages/markdown-service.d.ts

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,6 @@
1-
export interface DOMPurifyConfig {
2-
ADD_ATTR?: string[]
3-
ADD_DATA_URI_TAGS?: string[]
4-
ADD_TAGS?: string[]
5-
ALLOW_DATA_ATTR?: boolean
6-
ALLOWED_ATTR?: string[]
7-
ALLOWED_TAGS?: string[]
8-
FORBID_ATTR?: string[]
9-
FORBID_TAGS?: string[]
10-
FORCE_BODY?: boolean
11-
KEEP_CONTENT?: boolean
12-
/**
13-
* This defaults to `true` starting DOMPurify 2.2.0. Note that setting it to `false`
14-
* might cause XSS from attacks hidden in closed shadowroots in case the browser
15-
* supports Declarative Shadow: DOM https://web.dev/declarative-shadow-dom/
16-
*/
17-
RETURN_DOM_IMPORT?: boolean
18-
SANITIZE_DOM?: boolean
19-
WHOLE_DOCUMENT?: boolean
20-
ALLOWED_URI_REGEXP?: RegExp
21-
SAFE_FOR_TEMPLATES?: boolean
22-
ALLOW_UNKNOWN_PROTOCOLS?: boolean
23-
USE_PROFILES?: false | { mathMl?: boolean; svg?: boolean; svgFilters?: boolean; html?: boolean }
24-
IN_PLACE?: boolean
25-
}
1+
import { Config } from "dompurify"
2+
export type DOMPurifyConfig = Omit<Config, "RETURN_DOM" | "RETURN_DOM_FRAGMENT" | "RETURN_TRUSTED_TYPE">
3+
264
/**
275
* the markdown service object
286
*/

0 commit comments

Comments
 (0)