Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
## Module dependencies ``` scatter-core scatterjs-plugin-eosjs eosjs@16.0.9 ``` ## Installation ``` npm i --save eos-ulm ```
scatter-core
scatterjs-plugin-eosjs
eosjs@16.0.9
npm i --save eos-ulm
// put the code below in patch.js in root of your project and (node patch.js)
const fs = require('fs');
const f = 'node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js';
fs.readFile(f, 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
var result = data.replace(/node: false/g, 'node: {crypto: true, stream: true}');
fs.writeFile(f, result, 'utf8', function (err) {
if (err) return console.log(err);
});
});
import { LoginEOSModule } from 'eos-ulm';
...
// @NgModule config example
LoginEOSModule.forRoot({
appName: 'your_app_name',
httpEndpoint: 'https://bp.cryptolions.io,
chain: 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906',
verbose: false,
blockchain: 'eos',
host: 'bp.cryptolions.io',
port: 443,
protocol: 'https',
expireInSeconds: 5
}),
...
<app-login-eos></app-login-eos>
import { Component, OnInit } from '@angular/core';
import { LoginEOSService } from 'eos-ulm';
@Component({
selector: 'login',
templateUrl: './login.component.html'
})
export class LoginComponent {
constructor(public loginEOSService: LoginEOSService){}
}
// example of login/logout button
<a class="" (click)="loginEOSService.openPopup()" *ngIf="!loginEOSService.connected">Login</a>
<a class="" (click)="loginEOSService.logout()" *ngIf="loginEOSService.connected">Logout</a>
// you can subscribe for loggedin events
this.loginEOSService.loggedIn.subscribe(res => {
// do something
});
this.loginEOSService.eos.contract('your contract name', {
accounts: ['your network config']
}).then(contract => {
contract['contract action name']('some data fields', this.loginEOSService.options)
.then((result: any) => {
// do something
}).catch(err => {
this.loginEOSService.contractError(err);
});
}).catch(err => {
this.loginEOSService.contractError(err);
});
this.loginEOSService.contractError(err);
this.loginEOSService.showMessage('your message text');
FAQs
## Module dependencies ``` scatter-core scatterjs-plugin-eosjs eosjs@16.0.9 ``` ## Installation ``` npm i --save eos-ulm ```
The npm package eos-ulm receives a total of 0 weekly downloads. As such, eos-ulm popularity was classified as not popular.
We found that eos-ulm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.