mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-04-16 22:24:49 +00:00
Fix security vulnerabilities in npm dependencies (#11815)
* Update package dependencies: remove unused 'picomatch' and 'minimatch' modules from package-lock.json, and add specific versions for 'picomatch', 'minimatch', 'path-to-regexp', and 'serialize-javascript' in package.json. * Upgrade nx and @nx/workspace to fix minimatch vulnerabilities - Upgrade nx from 22.4.1 to 22.6.3 - Upgrade @nx/workspace from 22.4.5 to 22.6.3 - Remove minimatch override to maintain Karma compatibility This resolves the high severity minimatch vulnerabilities while keeping tests functional. * Refactor nx.json: Consolidate sharedGlobals array and add analytics flag - Merged multiple lines in the sharedGlobals array for better readability. - Added an analytics flag set to false for configuration. * Update package dependencies: bump @nx packages to version 22.6.5 [ci:force] * Add test specifications for feature flags and user initial pipe [ci:force] - Introduced new selectors for feature flag components in `features.directive.spec.ts` and `not-features.directive.spec.ts`. - Added an injectable sanitizer class in `user-initial.pipe.spec.ts` to enhance testing capabilities. - Created a new log file `out.txt` to capture Karma test execution details and warnings.
This commit is contained in:
@@ -22,6 +22,7 @@ import { FeaturesDirective } from './features.directive';
|
||||
import { UnitTestingUtils } from '../../../../src/lib/testing/unit-testing-utils';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-test-features-enabled',
|
||||
template: `
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfForFeatures="features"></div>
|
||||
@@ -34,6 +35,7 @@ class TestWithEnabledFlagComponent {
|
||||
features = 'feature1';
|
||||
}
|
||||
@Component({
|
||||
selector: 'adf-test-features-disabled',
|
||||
template: `
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfForFeatures="features"></div>
|
||||
|
||||
@@ -22,6 +22,7 @@ import { NotFeaturesDirective } from './not-features.directive';
|
||||
import { UnitTestingUtils } from '../../../../src/lib/testing/unit-testing-utils';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-test-not-features-enabled',
|
||||
template: `
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfNotForFeatures="features"></div>
|
||||
@@ -34,6 +35,7 @@ class TestWithEnabledFlagComponent {
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'adf-test-not-features-disabled',
|
||||
template: `
|
||||
<div>
|
||||
<div id="underFeatureFlag" *adfNotForFeatures="features"></div>
|
||||
|
||||
@@ -19,7 +19,9 @@ import { DomSanitizer } from '@angular/platform-browser';
|
||||
import { User } from '../models/general-user.model';
|
||||
import { InitialUsernamePipe } from './user-initial.pipe';
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable()
|
||||
class FakeSanitizer extends DomSanitizer {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
9
nx.json
9
nx.json
@@ -26,11 +26,7 @@
|
||||
},
|
||||
"namedInputs": {
|
||||
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
||||
"sharedGlobals": [
|
||||
"{workspaceRoot}/angular.json",
|
||||
"{workspaceRoot}/e2e/protractor.excludes.json",
|
||||
"{workspaceRoot}/e2e/protractor.conf.js"
|
||||
],
|
||||
"sharedGlobals": ["{workspaceRoot}/angular.json", "{workspaceRoot}/e2e/protractor.excludes.json", "{workspaceRoot}/e2e/protractor.conf.js"],
|
||||
"production": [
|
||||
"default",
|
||||
"!{projectRoot}/.storybook/**/*",
|
||||
@@ -42,5 +38,6 @@
|
||||
]
|
||||
},
|
||||
"cacheDirectory": "nxcache",
|
||||
"defaultBase": "develop"
|
||||
"defaultBase": "develop",
|
||||
"analytics": false
|
||||
}
|
||||
|
||||
4499
package-lock.json
generated
4499
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
19
package.json
19
package.json
@@ -85,12 +85,12 @@
|
||||
"@angular-eslint/template-parser": "19.8.1",
|
||||
"@angular/compiler-cli": "19.2.20",
|
||||
"@chromatic-com/storybook": "4.1.3",
|
||||
"@nx/angular": "22.6.3",
|
||||
"@nx/eslint-plugin": "22.6.3",
|
||||
"@nx/js": "22.6.3",
|
||||
"@nx/node": "22.6.3",
|
||||
"@nx/storybook": "^22.6.3",
|
||||
"@nx/workspace": "22.4.5",
|
||||
"@nx/angular": "22.6.5",
|
||||
"@nx/eslint-plugin": "22.6.5",
|
||||
"@nx/js": "22.6.5",
|
||||
"@nx/node": "22.6.5",
|
||||
"@nx/storybook": "^22.6.5",
|
||||
"@nx/workspace": "22.6.5",
|
||||
"@schematics/angular": "19.2.22",
|
||||
"@storybook/addon-themes": "^10.2.0",
|
||||
"@storybook/angular": "^10.2.0",
|
||||
@@ -139,7 +139,7 @@
|
||||
"moment": "^2.29.4",
|
||||
"ng-packagr": "19.2.2",
|
||||
"nock": "13.5.5",
|
||||
"nx": "22.4.1",
|
||||
"nx": "22.6.5",
|
||||
"prettier": "3.6.2",
|
||||
"react": "^19.2.4",
|
||||
"react-dom": "^19.2.4",
|
||||
@@ -156,7 +156,10 @@
|
||||
"overrides": {
|
||||
"@storybook/angular": {
|
||||
"webpack": "5.105.3"
|
||||
}
|
||||
},
|
||||
"picomatch": "4.0.4",
|
||||
"path-to-regexp": "^0.1.13",
|
||||
"serialize-javascript": "7.0.5"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
|
||||
Reference in New Issue
Block a user