Skip to content

Commit 58b8c8f

Browse files
fix(security): corrige dependências com vulnerabilidades reportadas
O projeto apresenta dependências com vulnerabilidades altas e violações de políticas. Corrige as vulnerabilidades apontadas, atualizando e substituindo dependências vulneráveis. Dependências atualizadas: - @angular-devkit/build-angular@~17.3.14 - custom-idle-queue@file:custom-idle-queue-3.0.2.tgz - dgeni-package@file:dgeni-packages-v0.30.1.tgz - ng-packagr@~19.2.0 - gulp@^5.0.0 Dependências adicionadas: - [email protected] Dependências removidas: - gulp-run - protractor - sonarjs Overrides removidos: - @babel/runtime Fixes DTHFUI-11124
1 parent bb79f49 commit 58b8c8f

File tree

55 files changed

+41
-1312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+41
-1312
lines changed

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
2929
lint:
3030

31-
runs-on: ubuntu-20.04
31+
runs-on: ubuntu-latest
3232

3333
# As etapas do workflow são definidas nessa tag.
3434
steps:
@@ -57,7 +57,7 @@ jobs:
5757
build:
5858
name: Build packages
5959

60-
runs-on: ubuntu-20.04
60+
runs-on: ubuntu-latest
6161

6262
steps:
6363

@@ -80,7 +80,7 @@ jobs:
8080
test-ui:
8181
name: Test ui
8282

83-
runs-on: ubuntu-20.04
83+
runs-on: ubuntu-latest
8484

8585
steps:
8686

@@ -97,7 +97,7 @@ jobs:
9797
test-templates:
9898
name: Test templates
9999

100-
runs-on: ubuntu-20.04
100+
runs-on: ubuntu-latest
101101

102102
steps:
103103

@@ -115,7 +115,7 @@ jobs:
115115
test-code-editor:
116116
name: Test code editor
117117

118-
runs-on: ubuntu-20.04
118+
runs-on: ubuntu-latest
119119

120120
steps:
121121

@@ -132,7 +132,7 @@ jobs:
132132
test-storage:
133133
name: Test storage
134134

135-
runs-on: ubuntu-20.04
135+
runs-on: ubuntu-latest
136136

137137
steps:
138138

@@ -149,7 +149,7 @@ jobs:
149149
test-sync:
150150
name: Test sync
151151

152-
runs-on: ubuntu-20.04
152+
runs-on: ubuntu-latest
153153

154154
steps:
155155

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Veja abaixo a lista de dependências e as versões compatíveis, elas devem ser
6767
...
6868
},
6969
"devDependencies": {
70-
"@angular-devkit/build-angular": "~17.2.3",
70+
"@angular-devkit/build-angular": "~17.3.14",
7171
"@angular/cli": "~17.2.3",
7272
"@angular/compiler-cli": "~17.2.4",
7373
...

angular.json

-24
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,6 @@
120120
}
121121
}
122122
},
123-
"e2e": {
124-
"builder": "@angular-devkit/build-angular:protractor",
125-
"options": {
126-
"protractorConfig": "projects/app/e2e/protractor.conf.js",
127-
"devServerTarget": "app:serve"
128-
},
129-
"configurations": {
130-
"production": {
131-
"devServerTarget": "app:serve:production"
132-
}
133-
}
134-
},
135123
"lint": {
136124
"builder": "@angular-eslint/builder:lint",
137125
"options": {
@@ -369,18 +357,6 @@
369357
"options": {
370358
"lintFilePatterns": ["projects/portal/**/*.ts", "projects/portal/**/*.html"]
371359
}
372-
},
373-
"e2e": {
374-
"builder": "@angular-devkit/build-angular:protractor",
375-
"options": {
376-
"protractorConfig": "projects/portal/e2e/protractor.conf.js",
377-
"devServerTarget": "portal:serve"
378-
},
379-
"configurations": {
380-
"production": {
381-
"devServerTarget": "portal:serve:production"
382-
}
383-
}
384360
}
385361
}
386362
}

custom-idle-queue-3.0.2.tgz

144 KB
Binary file not shown.

dgeni-packages-v0.30.1.tgz

380 KB
Binary file not shown.

docs/guides/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Veja abaixo a lista de dependências e as versões compatíveis, elas devem ser
5050
...
5151
},
5252
"devDependencies": {
53-
"@angular-devkit/build-angular": "~17.2.3",
53+
"@angular-devkit/build-angular": "~17.3.14",
5454
"@angular-devkit/schematics": "~17.2.3",
5555
"@angular/cli": "~17.2.3",
5656
"@angular/compiler-cli": "~17.2.4",

docs/guides/sync-get-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Antes de executar a instalação, é necessário que todas as dependências do p
6666
...
6767
},
6868
"devDependencies": {
69-
"@angular-devkit/build-angular": "~17.2.3",
69+
"@angular-devkit/build-angular": "~17.3.14",
7070
"@angular-devkit/schematics": "~17.2.3",
7171
"@angular/cli": "~17.2.3",
7272
"@angular/compiler": "~17.2.4",

package.json

+5-15
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@
7878
"capitalize": "^2.0.4",
7979
"colors": "1.4.0",
8080
"core-js": "3.33.3",
81-
"custom-idle-queue": "3.0.1",
81+
"custom-idle-queue": "file:custom-idle-queue-3.0.2.tgz",
8282
"eslint-plugin-sonarjs": "^0.23.0",
8383
"gulp-clean": "^0.4.0",
84-
"gulp-run": "^1.7.1",
8584
"highlight.js": "^11.9.0",
8685
"http-status-codes": "^2.3.0",
8786
"localforage": "1.10.0",
@@ -95,7 +94,7 @@
9594
"zone.js": "~0.14.4"
9695
},
9796
"devDependencies": {
98-
"@angular-devkit/build-angular": "~17.2.3",
97+
"@angular-devkit/build-angular": "~17.3.14",
9998
"@angular-eslint/builder": "^17.2.1",
10099
"@angular-eslint/eslint-plugin": "^17.2.1",
101100
"@angular-eslint/eslint-plugin-template": "^17.2.1",
@@ -116,15 +115,16 @@
116115
"@typescript-eslint/parser": "^6.13.1",
117116
"del": "^6.0.0",
118117
"dgeni": "^0.4.14",
119-
"dgeni-packages": "0.30.0",
118+
"dgeni-packages": "file:dgeni-packages-v0.30.1.tgz",
120119
"eslint": "^8.54.0",
121120
"eslint-plugin-import": "latest",
122121
"eslint-plugin-jsdoc": "latest",
123122
"eslint-plugin-prefer-arrow": "latest",
124123
"eslint-plugin-react": "latest",
125-
"gulp": "^4.0.2",
124+
"gulp": "^5.0.0",
126125
"gulp-tap": "^2.0.0",
127126
"husky": "^8.0.0",
127+
"jasmine": "2.8.0",
128128
"jasmine-core": "5.1.1",
129129
"jasmine-spec-reporter": "7.0.0",
130130
"karma": "6.4.2",
@@ -136,23 +136,13 @@
136136
"mkdirp": "3.0.1",
137137
"ng-packagr": "~17.0.2",
138138
"prettier": "^3.1.0",
139-
"protractor": "~7.0.0",
140139
"rollup": "4.24.4",
141-
"sonarjs": "latest",
142140
"sonarqube-scanner": "^3.3.0",
143141
"standard-version": "^9.5.0",
144142
"ts-node": "~10.9.1",
145143
"typemoq": "^2.1.0",
146144
"typescript": "~5.2.2"
147145
},
148-
"overrides": {
149-
"custom-idle-queue": {
150-
"@babel/runtime": "~7.26.10"
151-
},
152-
"@angular-devkit/build-angular": {
153-
"@babel/runtime": "~7.26.10"
154-
}
155-
},
156146
"standard-version": {
157147
"skip": {
158148
"commit": true,

projects/app/e2e/protractor.conf.js

-30
This file was deleted.

projects/app/e2e/src/app.e2e-spec.ts

-25
This file was deleted.

projects/app/e2e/src/app.po.ts

-11
This file was deleted.

projects/app/e2e/tsconfig.json

-9
This file was deleted.

projects/portal/e2e/protractor.conf.js

-30
This file was deleted.

projects/portal/e2e/src/app.e2e-spec.ts

-25
This file was deleted.

projects/portal/e2e/src/app.po.ts

-11
This file was deleted.

projects/portal/e2e/tsconfig.json

-9
This file was deleted.

projects/portal/gulpfile.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ gulp.task('build:guides', () => {
188188
mkdir(GUIDE_DIR);
189189

190190
poProjectsNames.forEach(project => {
191-
sources.push(`${configuration.sourceFolder}/${project}/docs/guides/*.md`);
191+
const projectPath = `${configuration.sourceFolder}/${project}`;
192+
193+
if (fs.existsSync(projectPath)) {
194+
sources.push(`${projectPath}/docs/guides/*.md`);
195+
}
192196
});
193197

194198
return gulp

projects/templates/src/lib/components/po-page-login/po-page-login.component.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import { PoPageLoginCustomField } from './interfaces/po-page-login-custom-field.
2828
import { PoPageLoginLiterals } from './interfaces/po-page-login-literals.interface';
2929
import { PoPageLoginService } from './po-page-login.service';
3030
import { OverlayModule } from '@angular/cdk/overlay';
31-
import { element } from 'protractor';
3231

3332
describe('PoPageLoginComponent: ', () => {
3433
let component: PoPageLoginComponent;

projects/ui/src/lib/components/po-avatar/po-avatar.component.ts

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { PoAvatarBaseComponent } from './po-avatar-base.component';
1010
* <example name="po-avatar-basic" title="PO Avatar Basic" >
1111
* <file name="sample-po-avatar-basic/sample-po-avatar-basic.component.html"> </file>
1212
* <file name="sample-po-avatar-basic/sample-po-avatar-basic.component.ts"> </file>
13-
* <file name="sample-po-avatar-basic/sample-po-avatar-basic.component.e2e-spec.ts"> </file>
14-
* <file name="sample-po-avatar-basic/sample-po-avatar-basic.component.po.ts"> </file>
1513
* </example>
1614
*
1715
* <example name="po-avatar-labs" title="PO Avatar Labs" >

projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-basic/sample-po-avatar-basic.component.e2e-spec.ts

-13
This file was deleted.

0 commit comments

Comments
 (0)