
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@hmcts/dg-docassembly-webcomponent
Advanced tools
[](https://coveralls.io/github/hmcts/dg-docassembly-webcomponent?branch=upload-npm-in-pipeline) [
import assets to your angular.json
{
"glob": "**/*",
"input": "node_modules/@hmcts/dg-docassembly-webcomponent/assets",
"output": "/assets"
}
and styles
"styles": [
"node_modules/@hmcts/dg-docassembly-webcomponent/assets/aui-styles.scss",
...
],
import JS dependencies as scripts within angular.json
"scripts": [
"node_modules/@hmcts/dg-docassembly-webcomponent/assets/js/pdf.combined.min.js",
"node_modules/@hmcts/dg-docassembly-webcomponent/assets/js/pdf_viewer.min.js",
"node_modules/@hmcts/dg-docassembly-webcomponent/assets/js/pdf-annotate.min.js"
...
]
component entry point:
using the default setup, the service needs to set: templateName, ouputFormats, templateData
<app-assembly-viewer *ngIf="selectedTemplate"
[templateName]="selectedTemplate"
[outputFormats]="['PDF']"
[templateData]="templateData"></app-assembly-viewer>
using the service-driven setup, the service needs to:
<app-form-viewer *ngIf="selectedTemplate"
[templateName]="selectedTemplate"
[outputFormats]="['PDF', 'DOC']"
[templateData]="templateData"
(previewDocument)="setPreviewData($event)"></app-form-viewer>
<app-document-viewer *ngIf="documentUrl"
[baseUrl]="'api'"
[isDM]="true"
[contentType]="outputFormat | lowercase"
[url]="documentUrl"></app-document-viewer>
Any changes made by the user can be accessed through the 'templateData' property by including a reference to the webcomponent within the service component as follows:
<app-assembly-viewer *ngIf="selectedTemplate" #assemblyComponent
[templateName]="selectedTemplate"
[templateData]="templateData"></app-assembly-viewer>
@ViewChild(AssemblyViewerComponent) assemblyComponent: AssemblyViewerComponent;
getAssemblyData() {
const documentUrl = assemblyComponent.documentUrl;
const templateData = assemblyComponent.templateData;
}
The docassembly component requies access to a number of API endpoints, some of which need to be proxied
npm run package
npm run build-demo
npm start
FAQs
[](https://coveralls.io/github/hmcts/dg-docassembly-webcomponent?branch=upload-npm-in-pipeline) [![Build Status](https://travis-ci.com/hmcts/dg-
We found that @hmcts/dg-docassembly-webcomponent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.