Skip to content

Commit 462eac0

Browse files
authored
test: include all dompurify test cases (#37)
1 parent daaacaf commit 462eac0

26 files changed

+1216
-48
lines changed

.changeset/rich-plants-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"domiso": minor
3+
---
4+
5+
feat: better compatibility with `dompurify`, prevent many more XSS cases

.codesandbox/ci.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"node": "18",
3+
"installCommand": "codesandbox:install",
4+
"buildCommand": "codesandbox:build",
35
"sandboxes": []
46
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ coverage
22
dist
33
lib
44
CHANGELOG.md
5+
/DOMPurify
56
/auto-imports.d.ts
67
/pnpm-lock.yaml
78
!/.github

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"root": true,
33
"extends": "@1stg",
44
"rules": {
5+
"unicorn/prefer-set-has": "off",
56
"unicorn/template-indent": "off"
67
},
78
"overrides": [

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout Repo
2323
uses: actions/checkout@v4
24+
with:
25+
submodules: true
2426

2527
- name: Setup pnpm
2628
uses: pnpm/action-setup@v2

.github/workflows/size-limit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
CI_JOB_NUMBER: 1
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
submodules: true
1517

1618
- name: Setup pnpm
1719
uses: pnpm/action-setup@v2

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "DOMPurify"]
2+
path = DOMPurify
3+
url = https://github.com/cure53/DOMPurify.git

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
auto-install-peers=true
21
enable-pre-post-scripts=true
32
public-hoist-pattern[]=@1stg/*
43
public-hoist-pattern[]=@commitlint/*

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
coverage
44
dist
55
lib
6+
/DOMPurify
7+
/auto-imports.d.ts
68
/pnpm-lock.yaml

.stylelintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ coverage
22
dist
33
lib
44
LICENSE
5+
fixtures
6+
/DOMPurify
57
*.json
68
*.log
9+
*.mts
710
*.patch
811
*.snap
912
*.svg

0 commit comments

Comments
 (0)