
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@uiowa/universal-workflow
Advanced tools
This NPM package @uiowa/universal-workflow
serves as the standard way to display Universal Workflow widget and routing history in Angular. The package contains two components, workflow-widget
and uw-routing-history
, and a service WorkflowService
.
This package depends on @uiowa/spinner
which shows a loading placeholder while the Universal Workflow data is loading.
The Widget Component
<ng-container *ngIf="uwPermissions?.canSign; else history">
<workflow-widget
[packageId]="packageId"
[signatureId]="signatureId"
></workflow-widget>
</ng-container>
<ng-template #history>
<uw-routing-history [packageId]="packageId"></uw-routing-history>
</ng-template>
ngOnInit(): void {
this.route.queryParamMap
.pipe(
switchMap((params: ParamMap) => {
if (!params) {
return of(null);
}
this.formId = params.get('formId') || '';
this.packageId = +(params.get('packageId') || '');
this.signatureId = params.get('signatureId') || '';
if (!this.packageId) {
return of(null);
}
this.loading = true;
return this.svc
.getMyForm(this.packageId)
.pipe(finalize(() => (this.loading = false)));
})
)
.subscribe((x) => {
if (x) {
this.dataRows = x.data;
this.uwPermissions = x.permissions;
}
});
}
The Routing History Component
<uw-routing-history [packageId]="13082237"></uw-routing-history>
The Workflow Service
By default, you don't need to touch the WorkflowService
. The service has two methods: getWorkflowWidgetConfig()
and getPackageRoutingHistory(packageId: number): Observable<string>
, which call backend API endpoints ${this.api}/widget-config
and ${this.api}/packages/${packageId}/routing-history
where protected readonly api: string = 'api/workflow'
.
If you decide to choose a different implementation, then you can follow the demo app in this solution to provide another service.
FAQs
universal-workflow, uiowa-universal-workflow, universal workflow
The npm package @uiowa/universal-workflow receives a total of 4 weekly downloads. As such, @uiowa/universal-workflow popularity was classified as not popular.
We found that @uiowa/universal-workflow demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.