-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(editor): Upgrade vite and vitest to address CVE-2023-49293
- Loading branch information
Showing
16 changed files
with
624 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
.../design-system/src/components/N8nActionBox/__tests__/__snapshots__/ActionBox.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`N8NActionBox > should render correctly 1`] = ` | ||
"<div class=\\"n8n-action-box container\\" data-test-id=\\"action-box\\"> | ||
<div class=\\"emoji\\">😿</div> | ||
<div class=\\"heading\\"> | ||
<n8n-heading-stub align=\\"center\\" tag=\\"span\\" bold=\\"false\\" size=\\"xlarge\\"></n8n-heading-stub> | ||
"<div class="n8n-action-box container" data-test-id="action-box"> | ||
<div class="emoji">😿</div> | ||
<div class="heading"> | ||
<n8n-heading-stub align="center" tag="span" bold="false" size="xlarge"></n8n-heading-stub> | ||
</div> | ||
<div class=\\"description\\"> | ||
<n8n-text-stub color=\\"text-base\\" bold=\\"false\\" size=\\"medium\\" compact=\\"false\\" tag=\\"span\\"></n8n-text-stub> | ||
<div class="description"> | ||
<n8n-text-stub color="text-base" bold="false" size="medium" compact="false" tag="span"></n8n-text-stub> | ||
</div> | ||
<n8n-button-stub label=\\"Do something\\" type=\\"primary\\" size=\\"large\\" loading=\\"false\\" disabled=\\"false\\" outline=\\"false\\" text=\\"false\\" block=\\"false\\" active=\\"false\\" square=\\"false\\" element=\\"button\\"></n8n-button-stub> | ||
<n8n-button-stub label="Do something" type="primary" size="large" loading="false" disabled="false" outline="false" text="false" block="false" active="false" square="false" element="button"></n8n-button-stub> | ||
<!--v-if--> | ||
</div>" | ||
`; |
8 changes: 4 additions & 4 deletions
8
...stem/src/components/N8nActionDropdown/__tests__/__snapshots__/ActionDropdown.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`components > N8nActionDropdown > should render custom styling correctly 1`] = ` | ||
"<div class=\\"action-dropdown-container actionDropdownContainer\\"> | ||
<el-dropdown-stub trigger=\\"click\\" effect=\\"light\\" placement=\\"bottom\\" popperoptions=\\"[object Object]\\" size=\\"\\" splitbutton=\\"false\\" hideonclick=\\"true\\" loop=\\"true\\" showtimeout=\\"150\\" hidetimeout=\\"150\\" tabindex=\\"0\\" maxheight=\\"\\" popperclass=\\"[object Object]\\" disabled=\\"false\\" role=\\"menu\\" teleported=\\"true\\"></el-dropdown-stub> | ||
"<div class="action-dropdown-container actionDropdownContainer"> | ||
<el-dropdown-stub trigger="click" effect="light" placement="bottom" popperoptions="[object Object]" size="" splitbutton="false" hideonclick="true" loop="true" showtimeout="150" hidetimeout="150" tabindex="0" maxheight="" popperclass="[object Object]" disabled="false" role="menu" teleported="true"></el-dropdown-stub> | ||
</div>" | ||
`; | ||
|
||
exports[`components > N8nActionDropdown > should render default styling correctly 1`] = ` | ||
"<div class=\\"action-dropdown-container actionDropdownContainer\\" teleported=\\"false\\"> | ||
<el-dropdown-stub trigger=\\"click\\" effect=\\"light\\" placement=\\"bottom\\" popperoptions=\\"[object Object]\\" size=\\"\\" splitbutton=\\"false\\" hideonclick=\\"true\\" loop=\\"true\\" showtimeout=\\"150\\" hidetimeout=\\"150\\" tabindex=\\"0\\" maxheight=\\"\\" popperclass=\\"[object Object]\\" disabled=\\"false\\" role=\\"menu\\" teleported=\\"true\\"></el-dropdown-stub> | ||
"<div class="action-dropdown-container actionDropdownContainer" teleported="false"> | ||
<el-dropdown-stub trigger="click" effect="light" placement="bottom" popperoptions="[object Object]" size="" splitbutton="false" hideonclick="true" loop="true" showtimeout="150" hidetimeout="150" tabindex="0" maxheight="" popperclass="[object Object]" disabled="false" role="menu" teleported="true"></el-dropdown-stub> | ||
</div>" | ||
`; |
6 changes: 3 additions & 3 deletions
6
packages/design-system/src/components/N8nBadge/__tests__/__snapshots__/Badge.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`components > N8nBadge > props > should render default theme correctly 1`] = `"<span class=\\"n8n-badge default\\"><n8n-text-stub bold=\\"true\\" size=\\"large\\" compact=\\"true\\" tag=\\"span\\"></n8n-text-stub></span>"`; | ||
exports[`components > N8nBadge > props > should render default theme correctly 1`] = `"<span class="n8n-badge default"><n8n-text-stub bold="true" size="large" compact="true" tag="span"></n8n-text-stub></span>"`; | ||
|
||
exports[`components > N8nBadge > props > should render secondary theme correctly 1`] = `"<span class=\\"n8n-badge secondary\\"><n8n-text-stub bold=\\"false\\" size=\\"medium\\" compact=\\"true\\" tag=\\"span\\"></n8n-text-stub></span>"`; | ||
exports[`components > N8nBadge > props > should render secondary theme correctly 1`] = `"<span class="n8n-badge secondary"><n8n-text-stub bold="false" size="medium" compact="true" tag="span"></n8n-text-stub></span>"`; | ||
|
||
exports[`components > N8nBadge > props > should render with default values correctly 1`] = `"<span class=\\"n8n-badge default\\"><n8n-text-stub bold=\\"false\\" size=\\"small\\" compact=\\"true\\" tag=\\"span\\"></n8n-text-stub></span>"`; | ||
exports[`components > N8nBadge > props > should render with default values correctly 1`] = `"<span class="n8n-badge default"><n8n-text-stub bold="false" size="small" compact="true" tag="span"></n8n-text-stub></span>"`; |
8 changes: 4 additions & 4 deletions
8
packages/design-system/src/components/N8nButton/__tests__/__snapshots__/Button.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`components > N8nButton > props > icon > should render icon button 1`] = `"<button class=\\"button button primary medium withIcon\\" aria-live=\\"polite\\"><span class=\\"icon\\"><n8n-icon-stub icon=\\"plus-circle\\" size=\\"medium\\" spin=\\"false\\"></n8n-icon-stub></span><span>Button</span></button>"`; | ||
exports[`components > N8nButton > props > icon > should render icon button 1`] = `"<button class="button button primary medium withIcon" aria-live="polite"><span class="icon"><n8n-icon-stub icon="plus-circle" size="medium" spin="false"></n8n-icon-stub></span><span>Button</span></button>"`; | ||
|
||
exports[`components > N8nButton > props > loading > should render loading spinner 1`] = `"<button class=\\"button button primary medium loading withIcon\\" disabled=\\"\\" aria-busy=\\"true\\" aria-live=\\"polite\\"><span class=\\"icon\\"><n8n-spinner-stub size=\\"medium\\" type=\\"dots\\"></n8n-spinner-stub></span><span>Button</span></button>"`; | ||
exports[`components > N8nButton > props > loading > should render loading spinner 1`] = `"<button class="button button primary medium loading withIcon" disabled="" aria-busy="true" aria-live="polite"><span class="icon"><n8n-spinner-stub size="medium" type="dots"></n8n-spinner-stub></span><span>Button</span></button>"`; | ||
|
||
exports[`components > N8nButton > props > square > should render square button 1`] = ` | ||
"<button class=\\"button button primary medium square\\" aria-live=\\"polite\\"> | ||
"<button class="button button primary medium square" aria-live="polite"> | ||
<!--v-if--><span>48</span> | ||
</button>" | ||
`; | ||
|
||
exports[`components > N8nButton > should render correctly 1`] = ` | ||
"<button class=\\"button button primary medium\\" aria-live=\\"polite\\"> | ||
"<button class="button button primary medium" aria-live="polite"> | ||
<!--v-if--><span>Button</span> | ||
</button>" | ||
`; |
72 changes: 36 additions & 36 deletions
72
...ages/design-system/src/components/N8nCallout/__tests__/__snapshots__/Callout.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,79 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`components > N8nCallout > should render additional slots correctly 1`] = ` | ||
"<div class=\\"n8n-callout callout custom round\\" role=\\"alert\\"> | ||
<div class=\\"messageSection\\"> | ||
<div class=\\"icon\\"> | ||
<n8n-icon-stub icon=\\"code-branch\\" size=\\"medium\\" spin=\\"false\\"></n8n-icon-stub> | ||
"<div class="n8n-callout callout custom round" role="alert"> | ||
<div class="messageSection"> | ||
<div class="icon"> | ||
<n8n-icon-stub icon="code-branch" size="medium" spin="false"></n8n-icon-stub> | ||
</div> | ||
<n8n-text-stub bold=\\"false\\" size=\\"small\\" compact=\\"false\\" tag=\\"span\\"></n8n-text-stub> <n8n-link-stub size=\\"small\\"></n8n-link-stub> | ||
<n8n-text-stub bold="false" size="small" compact="false" tag="span"></n8n-text-stub> <n8n-link-stub size="small"></n8n-link-stub> | ||
</div> | ||
<n8n-link-stub theme=\\"secondary\\" size=\\"small\\" bold=\\"true\\" underline=\\"true\\" to=\\"https://n8n.io\\"></n8n-link-stub> | ||
<n8n-link-stub theme="secondary" size="small" bold="true" underline="true" to="https://n8n.io"></n8n-link-stub> | ||
</div>" | ||
`; | ||
|
||
exports[`components > N8nCallout > should render custom theme correctly 1`] = ` | ||
"<div class=\\"n8n-callout callout custom round\\" role=\\"alert\\"> | ||
<div class=\\"messageSection\\"> | ||
<div class=\\"icon\\"> | ||
<n8n-icon-stub icon=\\"code-branch\\" size=\\"medium\\" spin=\\"false\\"></n8n-icon-stub> | ||
"<div class="n8n-callout callout custom round" role="alert"> | ||
<div class="messageSection"> | ||
<div class="icon"> | ||
<n8n-icon-stub icon="code-branch" size="medium" spin="false"></n8n-icon-stub> | ||
</div> | ||
<n8n-text-stub bold=\\"false\\" size=\\"small\\" compact=\\"false\\" tag=\\"span\\"></n8n-text-stub> | ||
<n8n-text-stub bold="false" size="small" compact="false" tag="span"></n8n-text-stub> | ||
</div> | ||
</div>" | ||
`; | ||
|
||
exports[`components > N8nCallout > should render danger theme correctly 1`] = ` | ||
"<div class=\\"n8n-callout callout danger round\\" role=\\"alert\\"> | ||
<div class=\\"messageSection\\"> | ||
<div class=\\"icon\\"> | ||
<n8n-icon-stub icon=\\"exclamation-triangle\\" size=\\"medium\\" spin=\\"false\\"></n8n-icon-stub> | ||
"<div class="n8n-callout callout danger round" role="alert"> | ||
<div class="messageSection"> | ||
<div class="icon"> | ||
<n8n-icon-stub icon="exclamation-triangle" size="medium" spin="false"></n8n-icon-stub> | ||
</div> | ||
<n8n-text-stub bold=\\"false\\" size=\\"small\\" compact=\\"false\\" tag=\\"span\\"></n8n-text-stub> | ||
<n8n-text-stub bold="false" size="small" compact="false" tag="span"></n8n-text-stub> | ||
</div> | ||
</div>" | ||
`; | ||
|
||
exports[`components > N8nCallout > should render info theme correctly 1`] = ` | ||
"<div class=\\"n8n-callout callout info round\\" role=\\"alert\\"> | ||
<div class=\\"messageSection\\"> | ||
<div class=\\"icon\\"> | ||
<n8n-icon-stub icon=\\"info-circle\\" size=\\"medium\\" spin=\\"false\\"></n8n-icon-stub> | ||
"<div class="n8n-callout callout info round" role="alert"> | ||
<div class="messageSection"> | ||
<div class="icon"> | ||
<n8n-icon-stub icon="info-circle" size="medium" spin="false"></n8n-icon-stub> | ||
</div> | ||
<n8n-text-stub bold=\\"false\\" size=\\"small\\" compact=\\"false\\" tag=\\"span\\"></n8n-text-stub> | ||
<n8n-text-stub bold="false" size="small" compact="false" tag="span"></n8n-text-stub> | ||
</div> | ||
</div>" | ||
`; | ||
|
||
exports[`components > N8nCallout > should render secondary theme correctly 1`] = ` | ||
"<div class=\\"n8n-callout callout secondary round\\" role=\\"alert\\"> | ||
<div class=\\"messageSection\\"> | ||
<div class=\\"icon\\"> | ||
<n8n-icon-stub icon=\\"info-circle\\" size=\\"medium\\" spin=\\"false\\"></n8n-icon-stub> | ||
"<div class="n8n-callout callout secondary round" role="alert"> | ||
<div class="messageSection"> | ||
<div class="icon"> | ||
<n8n-icon-stub icon="info-circle" size="medium" spin="false"></n8n-icon-stub> | ||
</div> | ||
<n8n-text-stub bold=\\"false\\" size=\\"small\\" compact=\\"false\\" tag=\\"span\\"></n8n-text-stub> | ||
<n8n-text-stub bold="false" size="small" compact="false" tag="span"></n8n-text-stub> | ||
</div> | ||
</div>" | ||
`; | ||
|
||
exports[`components > N8nCallout > should render success theme correctly 1`] = ` | ||
"<div class=\\"n8n-callout callout success round\\" role=\\"alert\\"> | ||
<div class=\\"messageSection\\"> | ||
<div class=\\"icon\\"> | ||
<n8n-icon-stub icon=\\"check-circle\\" size=\\"medium\\" spin=\\"false\\"></n8n-icon-stub> | ||
"<div class="n8n-callout callout success round" role="alert"> | ||
<div class="messageSection"> | ||
<div class="icon"> | ||
<n8n-icon-stub icon="check-circle" size="medium" spin="false"></n8n-icon-stub> | ||
</div> | ||
<n8n-text-stub bold=\\"false\\" size=\\"small\\" compact=\\"false\\" tag=\\"span\\"></n8n-text-stub> | ||
<n8n-text-stub bold="false" size="small" compact="false" tag="span"></n8n-text-stub> | ||
</div> | ||
</div>" | ||
`; | ||
|
||
exports[`components > N8nCallout > should render warning theme correctly 1`] = ` | ||
"<div class=\\"n8n-callout callout warning round\\" role=\\"alert\\"> | ||
<div class=\\"messageSection\\"> | ||
<div class=\\"icon\\"> | ||
<n8n-icon-stub icon=\\"exclamation-triangle\\" size=\\"medium\\" spin=\\"false\\"></n8n-icon-stub> | ||
"<div class="n8n-callout callout warning round" role="alert"> | ||
<div class="messageSection"> | ||
<div class="icon"> | ||
<n8n-icon-stub icon="exclamation-triangle" size="medium" spin="false"></n8n-icon-stub> | ||
</div> | ||
<n8n-text-stub bold=\\"false\\" size=\\"small\\" compact=\\"false\\" tag=\\"span\\"></n8n-text-stub> | ||
<n8n-text-stub bold="false" size="small" compact="false" tag="span"></n8n-text-stub> | ||
</div> | ||
</div>" | ||
`; |
16 changes: 8 additions & 8 deletions
16
packages/design-system/src/components/N8nCard/__tests__/__snapshots__/Card.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...n-system/src/components/N8nCircleLoader/__tests__/__snapshots__/CircleLoader.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`N8NCircleLoader > should render correctly 1`] = ` | ||
"<div class=\\"progress-circle\\"><svg class=\\"progress-ring\\" width=\\"60\\" height=\\"60\\"> | ||
<circle class=\\"progressRingCircle\\" stroke-width=\\"10\\" stroke=\\"#DCDFE6\\" fill=\\"transparent\\" r=\\"20\\" cx=\\"30\\" cy=\\"30\\"></circle> | ||
<circle class=\\"progressRingCircle\\" stroke=\\"#5C4EC2\\" stroke-width=\\"10\\" fill=\\"transparent\\" r=\\"20\\" cx=\\"30\\" cy=\\"30\\" style=\\"stroke-dasharray: 125.66370614359172; stroke-dashoffset: 72.8849495632832;\\"></circle> | ||
"<div class="progress-circle"><svg class="progress-ring" width="60" height="60"> | ||
<circle class="progressRingCircle" stroke-width="10" stroke="#DCDFE6" fill="transparent" r="20" cx="30" cy="30"></circle> | ||
<circle class="progressRingCircle" stroke="#5C4EC2" stroke-width="10" fill="transparent" r="20" cx="30" cy="30" style="stroke-dasharray: 125.66370614359172; stroke-dashoffset: 72.8849495632832;"></circle> | ||
</svg></div>" | ||
`; |
Oops, something went wrong.