Skip to content

Commit a1afcfa

Browse files
authored
fix: Add patch dom mutator (#146)
* Add patch to dom-mutator * Add yarn.lock updates
1 parent bf60c05 commit a1afcfa

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ jobs:
2424
with:
2525
node-version: 16
2626

27+
- name: Set up SSH for deploy key
28+
run: |
29+
mkdir -p ~/.ssh
30+
echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519
31+
chmod 600 ~/.ssh/id_ed25519
32+
ssh-keyscan github.com >> ~/.ssh/known_hosts
33+
continue-on-error: true # forked repos don't have access, and this is only for experiment-tag
34+
shell: bash
35+
2736
- name: Install
2837
run: yarn install --frozen-lockfile
2938

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ jobs:
4444
with:
4545
node-version: '16'
4646

47+
- name: Set up SSH for deploy key
48+
run: |
49+
mkdir -p ~/.ssh
50+
echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519
51+
chmod 600 ~/.ssh/id_ed25519
52+
ssh-keyscan github.com >> ~/.ssh/known_hosts
53+
continue-on-error: true # forked repos don't have access, and this is only for experiment-tag
54+
shell: bash
55+
4756
- name: Install
4857
run: yarn install --frozen-lockfile
4958

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ jobs:
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232

33+
- name: Set up SSH for deploy key
34+
run: |
35+
mkdir -p ~/.ssh
36+
echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519
37+
chmod 600 ~/.ssh/id_ed25519
38+
ssh-keyscan github.com >> ~/.ssh/known_hosts
39+
continue-on-error: true # forked repos don't have access, and this is only for experiment-tag
40+
shell: bash
41+
3342
- name: Install
3443
run: yarn install --frozen-lockfile
3544

packages/experiment-tag/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"@amplitude/experiment-core": "^0.10.1",
3030
"@amplitude/experiment-js-client": "^1.13.2",
31-
"dom-mutator": "^0.6.0"
31+
"dom-mutator": "git+ssh://[email protected]:amplitude/dom-mutator#nested-html-fix"
3232
},
3333
"devDependencies": {
3434
"@rollup/plugin-terser": "^0.4.4"

yarn.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3646,10 +3646,9 @@ dom-accessibility-api@^0.5.1:
36463646
resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz#5a7429e6066eb3664d911e33fb0e45de8eb08453"
36473647
integrity sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==
36483648

3649-
dom-mutator@^0.6.0:
3650-
version "0.6.0"
3651-
resolved "https://registry.yarnpkg.com/dom-mutator/-/dom-mutator-0.6.0.tgz#079d7a4b3e8981a562cd777548b99baab51d65c5"
3652-
integrity sha512-iCt9o0aYfXMUkz/43ZOAUFQYotjGB+GNbYJiJdz4TgXkyToXbbRy5S6FbTp72lRBtfpUMwEc1KmpFEU4CZeoNg==
3649+
"dom-mutator@git+ssh://[email protected]:amplitude/dom-mutator#nested-html-fix":
3650+
version "0.7.1"
3651+
resolved "git+ssh://[email protected]:amplitude/dom-mutator#86232f6caa011c4bcec3523e58bd918ed967906d"
36533652

36543653
domexception@^4.0.0:
36553654
version "4.0.0"

0 commit comments

Comments
 (0)