Skip to content

Commit

Permalink
Merge pull request #3 from shadiabuhilal/fixVulnerability
Browse files Browse the repository at this point in the history
fix: fix Babel vulnerable to arbitrary code execution
  • Loading branch information
shadiabuhilal authored Apr 8, 2024
2 parents 8346735 + 86cf583 commit 9e4b30c
Show file tree
Hide file tree
Showing 15 changed files with 8,301 additions and 9,402 deletions.
2,774 changes: 1,387 additions & 1,387 deletions __tests__/__snapshots__/index.debug.spec.js.snap

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions __tests__/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`__tests__/build/css/style-a.css 1`] = `
Object {
exports[`Spritify .build() should build sprites and update css successfully: __tests__/build/css/style-a.css 1`] = `
{
"content": "body {
padding: 50px;
font: 14px \\"Lucida Grande\\", Helvetica, Arial, sans-serif;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
background: #00B7FF;
}
Expand All @@ -17,13 +17,13 @@ a {
}
.log {
background-image: url(\\"http://localhost:3000/images/logo.png\\");
background-image: url("http://localhost:3000/images/logo.png");
}
/* spritify: ignore */
.bg-1 {
background: url(\\"../images/bg/bg-1.png\\");
background: url("../images/bg/bg-1.png");
background-position: -100px -200px;
background-size: 500px 600px;
width: 100px;
Expand All @@ -35,13 +35,13 @@ a {
/*
spritify : ignore
*/
background-image: url(\\"../images/bg/bg-2.png\\");
background-image: url("../images/bg/bg-2.png");
background-color: blue;
}
.icon-home2 {
/*spritify:ignore*/
background-image: url(\\"../img/common/1x/icon-home.png\\");
background-image: url("../img/common/1x/icon-home.png");
background-position: -100px -200px;
background-size: 500px 600px;
width: 100px;
Expand All @@ -50,7 +50,7 @@ a {
}
.icon-home {
background-image: url(\\"../img/icons/icon-home.png\\");
background-image: url("../img/icons/icon-home.png");
background-position: -100px -200px;
background-size: 500px 600px;
width: 100px;
Expand Down Expand Up @@ -84,7 +84,7 @@ a {
@media only screen and (-webkit-min-device-pixel-ratio: 2), not all, not all, not all, only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.log {
background-image: url(\\"https://localhost:3000/images/[email protected]\\");
background-image: url("https://localhost:3000/images/[email protected]");
}
.icon-home,
Expand Down Expand Up @@ -123,8 +123,8 @@ a {
}
`;

exports[`__tests__/build/css/style-b.css 1`] = `
Object {
exports[`Spritify .build() should build sprites and update css successfully: __tests__/build/css/style-b.css 1`] = `
{
"content": "body {
padding: 50px;
background: #00B7FF;
Expand All @@ -145,13 +145,13 @@ Object {
}
.icon-error {
background-image: url(\\"../img/icons/icon-error.png\\");
background-image: url("../img/icons/icon-error.png");
width: 50px;
height: 50px;
}
.car {
background-image: url(\\"../img/car.png\\");
background-image: url("../img/car.png");
width: 175px;
height: 70px;
}
Expand All @@ -173,11 +173,11 @@ Object {
}
`;

exports[`__tests__/build/css/style-c.min.css 1`] = `
Object {
exports[`Spritify .build() should build sprites and update css successfully: __tests__/build/css/style-c.min.css 1`] = `
{
"content": "body {
padding: 50px;
font: 14px \\"Lucida Grande\\",Helvetica,Arial,sans-serif;
font: 14px "Lucida Grande",Helvetica,Arial,sans-serif;
background: #00B7FF;
}
Expand Down Expand Up @@ -254,11 +254,11 @@ a {
}
`;

exports[`__tests__/build/css/style-inline.css 1`] = `
Object {
exports[`Spritify .build() should build sprites and update css successfully: __tests__/build/css/style-inline.css 1`] = `
{
"content": "body {
padding: 50px;
font: 14px \\"Lucida Grande\\", Helvetica, Arial, sans-serif;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
background: #00B7FF;
}
Expand All @@ -271,24 +271,24 @@ a {
}
.log {
background-image: url(\\"http://localhost:3000/images/logo.png\\");
background-image: url("http://localhost:3000/images/logo.png");
}
.bg-1 {
/* spritify: ignore */
background: url(\\"../images/bg/bg-1.png\\");
background: url("../images/bg/bg-1.png");
}
.bg-2 {
/*
spritify : ignore
*/
background-image: url(\\"../images/bg/bg-1.png\\");
background-image: url("../images/bg/bg-1.png");
background-color: blue;
}
.bg-3 {
background-image: url(\\"../images//bg/bg-1.png\\");
background-image: url("../images//bg/bg-1.png");
background-position: -100px -200px;
background-size: 500px 600px;
width: 100px;
Expand Down Expand Up @@ -331,7 +331,7 @@ a {
@media only screen and (-webkit-min-device-pixel-ratio: 2), not all, not all, not all, only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.log {
background-image: url(\\"https://localhost:3000/images/[email protected]\\");
background-image: url("https://localhost:3000/images/[email protected]");
}
.icon-home {
Expand Down
Loading

0 comments on commit 9e4b30c

Please sign in to comment.