
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
RealGrid is a javascript data grid component with various powerful functions such as editing, row grouping, filtering, and sorting data on web environment.
RealGrid is a javascript data grid component with various powerful functions such as editing, row grouping, filtering, and sorting data on web environment.
npm i realgrid
The License file is required for proper use. More information, visit: https://support.realgrid.com/download
It's usage in typescript. If you want to use in javascript, just remove the type.
//index.ts
import { LocalDataProvider, GridView } from 'realgrid'
// or you can use default import ex) import RealGrid from 'realgrid';
// then it should be...ex) new RealGrid.GridView(container);
const container = document.createElement('div');
document.body.appendChild(container);
container.id = 'realgrid';
const ds = new LocalDataProvider(false);
const grid = new GridView(container);
grid.setDataSource(ds);
ds.setFields(fields);
grid.setColumns(columns);
ds.setRows(rows);
...
// fields
import {ValueType, DataFieldInput} from 'realgrid';
export const fields: DataFieldInput[] = [
{
"fieldName": "Name",
"dataType": ValueType.TEXT
},
{
"fieldName": "FullName",
"dataType": ValueType.TEXT
},
{
"fieldName": "Email",
"dataType": ValueType.TEXT
},
{
"fieldName": "Company",
"dataType": ValueType.TEXT
},
{
"fieldName": "Phone",
"dataType": ValueType.TEXT
}
]
//columns
export const columns = [{
"name": "Name",
"fieldName": "Name",
"type": "data",
"width": "80",
"styles": {
"textAlignment": "center"
},
"header": {
"text": "Name",
showTooltip: true,
tooltip:'<span style="color: red;">이름</span>',
},
renderer: {
type:"text",
showTooltip:true
}
}, {
"name": "FullName",
"fieldName": "FullName",
"type": "data",
"width": "150",
"styles": {
"textAlignment": "center"
},
"header": {
"text": "Full Name"
}
},
...
recommendation: for convenient, set
strictNullChecks
option asfalse
ontsconfig.json
{
"compilerOptions": {
"strictNullChecks": false,
...
}
}
or check if the object exists.
/// good!
if( grid.filteringOptions.automating) {
grid.filteringOptions.automating.dateCategorize = false;
}
// error
grid.filteringOptions?.automating?.dateCategorize = false;
import 'realgrid/dist/realgrid-style.css';
FAQs
RealGrid is a javascript data grid component with various powerful functions such as editing, row grouping, filtering, and sorting data on web environment.
The npm package realgrid receives a total of 1,129 weekly downloads. As such, realgrid popularity was classified as popular.
We found that realgrid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.