Skip to content

Commit

Permalink
fix: Add patch dom mutator (#146)
Browse files Browse the repository at this point in the history
* Add patch to dom-mutator

* Add yarn.lock updates
  • Loading branch information
hthr-lee authored Dec 10, 2024
1 parent bf60c05 commit a1afcfa
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ jobs:
with:
node-version: 16

- name: Set up SSH for deploy key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
continue-on-error: true # forked repos don't have access, and this is only for experiment-tag
shell: bash

- name: Install
run: yarn install --frozen-lockfile

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ jobs:
with:
node-version: '16'

- name: Set up SSH for deploy key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
continue-on-error: true # forked repos don't have access, and this is only for experiment-tag
shell: bash

- name: Install
run: yarn install --frozen-lockfile

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Set up SSH for deploy key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
continue-on-error: true # forked repos don't have access, and this is only for experiment-tag
shell: bash

- name: Install
run: yarn install --frozen-lockfile

Expand Down
2 changes: 1 addition & 1 deletion packages/experiment-tag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@amplitude/experiment-core": "^0.10.1",
"@amplitude/experiment-js-client": "^1.13.2",
"dom-mutator": "^0.6.0"
"dom-mutator": "git+ssh://[email protected]:amplitude/dom-mutator#nested-html-fix"
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4"
Expand Down
7 changes: 3 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3646,10 +3646,9 @@ dom-accessibility-api@^0.5.1:
resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz#5a7429e6066eb3664d911e33fb0e45de8eb08453"
integrity sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==

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

domexception@^4.0.0:
version "4.0.0"
Expand Down

0 comments on commit a1afcfa

Please sign in to comment.