dlr-eoc / ukis-frontend-libraries

A collection of angular ui-components, services, interfaces... to help you create geospatial mapping applications for the web.
Apache License 2.0
17 stars 4 forks source link

Npm workspaces #185

Closed boeckMt closed 1 year ago

boeckMt commented 1 year ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

The management of dependencies in the repository is done in the root package.json, so npm install only uses this as source. It would be better to only declare dependencies in the packages that actually use them. With npm workspaces it is possible to install and declare dependencies more pertinent to the appropriate packages.

To sync versions for some of the dependencies we used placeholders that were replaced at build time. Unfortunately, this is currently not possible with workspaces and the placeholders prevent the installation of workspaces.

Issue Number: https://github.com/dlr-eoc/ukis-frontend-libraries/issues/55

What is the new behavior?

All package versions are now managed trough npm workspaces.

To sync versions a small script in ukis-libraries-scripts has been implemented and all versions are now set to current versions to remove the placeholders.

Does this PR introduce a breaking change?

Other information

Is it part of one/more packages and which?

socket-security[bot] commented 1 year ago

New dependency changes detected. Learn more about Socket for GitHub ↗︎


🚨 Potential security issues found in this pull request. To accept the risk, merge this PR and you will not be notified again.

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore esbuild@0.15.5
  • @SocketSecurity ignore es5-ext@0.10.62
📜 Install scripts

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Package Script field Source
esbuild@0.15.5 (upgraded) postinstall package-lock.json via @angular-devkit/build-angular@14.2.11, ng-packagr@14.2.2
es5-ext@0.10.62 (upgraded) postinstall package-lock.json via @compodoc/compodoc@1.1.19, projects/demo-maps/package.json via @dlr-eoc/services-ogc@11.0.0-alpha.1, projects/services-ogc/package.json via opensearch-browser@2.0.0-alpha.6
Pull request alert summary
Issue Status
Install scripts ⚠️ 2 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

➕ Added Package Capability Access +/- Transitive Count Publisher
@dlr-eoc/base-layers-raster@11.0.0-alpha.1 None +20 dlr-eoc-ukis
@dlr-eoc/map-tools@11.0.0-alpha.1 network, filesystem +31 dlr-eoc-ukis
@dlr-eoc/utils-ogc@11.0.0-alpha.1 network, filesystem +9 dlr-eoc-ukis
@dlr-eoc/cookie-alert@11.0.0-alpha.1 None +5 dlr-eoc-ukis
@dlr-eoc/user-info@11.0.0-alpha.1 None +17 dlr-eoc-ukis
typescript@4.8.4 filesystem +0 typescript-bot
@dlr-eoc/services-map-state@11.0.0-alpha.1 None +25 dlr-eoc-ukis
@dlr-eoc/services-ogc@11.0.0-alpha.1 eval, network, filesystem +22 dlr-eoc-ukis
@dlr-eoc/layer-control@11.0.0-alpha.1 None +64 dlr-eoc-ukis
@dlr-eoc/services-util-store@11.0.0-alpha.1 None +8 dlr-eoc-ukis
@dlr-eoc/map-three@11.0.0-alpha.1 network, filesystem +18 dlr-eoc-ukis
@dlr-eoc/core-ui@11.0.0-alpha.1 None +52 dlr-eoc-ukis
@dlr-eoc/services-layers@11.0.0-alpha.1 None +24 dlr-eoc-ukis
@dlr-eoc/map-ol@11.0.0-alpha.1 network, filesystem +68 dlr-eoc-ukis
@dlr-eoc/utils-maps@11.0.0-alpha.1 network, filesystem +27 dlr-eoc-ukis
tslib@2.5.0 None +0 typescript-bot
@angular/cli@14.2.11 network, filesystem, shell, environment +39 google-wombot
@schematics/angular@14.2.11 filesystem, environment +16 google-wombot
@angular-devkit/architect@0.1401.3 eval, network +8 google-wombot
@angular-devkit/schematics@14.2.11 filesystem, shell, environment +14 google-wombot
jsonc-parser@3.2.0 None +0 aeschli
@angular-devkit/core@14.2.11 eval, network, filesystem +6 google-wombot
⬆️ Updated Package Version Diff Added Capability Access +/- Transitive Count Publisher
karma@6.4.1 6.4.0...6.4.1 None +28/-23 karmarunnerbot
ts-node@8.10.2 8.3.0...8.10.2 None +1/-0 cspotcode
karma-coverage@2.2.0 2.0.3...2.2.0 None +21/-32 karmarunnerbot
@types/jasmine@3.10.7 3.6.11...3.10.7 None +0/-0 types
@cds/core@6.4.0 6.1.0...6.4.0 None +7/-5 kevinbuhmann
zone.js@0.11.8 0.11.7...0.11.8 None +17/-0 google-wombot
@angular-devkit/build-angular@14.2.11 14.1.1...14.2.11 None +223/-226 google-wombot
proj4@2.9.0 2.8.0...2.9.0 None +6/-1 ahocevar
ng-packagr@14.2.2 14.1.0...14.2.2 None +104/-102 alan.agius4
@webcomponents/webcomponentsjs@2.8.0 2.6.0...2.8.0 None +0/-0 bicknellr
luxon@2.5.2 2.5.0...2.5.2 None +0/-0 icambron
@angular/compiler-cli@14.3.0 14.1.1...14.3.0 None +25/-33 google-wombot
ol@7.3.0 7.1.0...7.3.0 network +49/-5 ahocevar
@angular/cdk@14.2.7 14.1.1...14.2.7 None +4/-3 google-wombot
@angular/platform-browser@14.3.0 14.1.1...14.3.0 None +15/-4 google-wombot
@angular/language-service@14.3.0 14.1.1...14.3.0 None +0/-0 google-wombot
@clr/angular@13.16.0 13.7.0...13.16.0 None +77/-9 clarity-service-account
@angular/platform-browser-dynamic@14.3.0 14.1.1...14.3.0 None +126/-6 google-wombot
ol-mapbox-style@9.7.0 9.2.1...9.7.0 filesystem +3/-2 ahocevar
@angular/common@14.3.0 14.1.1...14.3.0 None +45/-2 google-wombot
@angular/animations@14.3.0 14.1.1...14.3.0 None +3/-2 google-wombot
@angular/forms@14.3.0 14.1.1...14.3.0 None +24/-5 google-wombot
@angular/router@14.3.0 14.1.1...14.3.0 None +24/-5 google-wombot
@clr/ui@13.16.0 13.7.0...13.16.0 None +48/-10 clarity-service-account
@angular/compiler@14.3.0 14.1.1...14.3.0 None +3/-2 google-wombot
@angular/core@14.3.0 14.1.1...14.3.0 None +36/-1 google-wombot

🚮 Removed packages: @types/node@14.18.23