Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@hpcc-js/dgrid-shim
Advanced tools
This package is part of the mono repository "@hpcc-js" (aka Visualization Framework), for more information including quick start, demos and tutorials, please visit the main page on GitHub: hpcc-systems/Visualization.
The dgrid-shim package "wraps" a subset of the dojo grid functionality in a WebPack bundle to simplify its inclusion in modern JavaScript libraries / Web Applications.
Currently it exposes the following items:
Should "just work"
Simply include the package in your html file as normal (it has a global ID of "@hpcc-js/dgrid-shim"):
<head>
...
<script src="node_modules/@hpcc-js/dgrid-shim/dist/index.min.js"></script>
<script>
var dgridShim = window["@hpcc-js/dgrid-shim"];
</script>
</head>
<body>
...
<script>
var myGrid = new dgridShim.PagingGrid();
...
</script>
...
</body>
Since Rollup.js has no native support for non es6 modules (the rollup-plugin-commonjs
simply converts commonjs exports to es6 for example) and part of the es6 specifications dictates that modules should "use strict", which will cause issues with libraries that rely on non strict features.
As dgrid-shim is dependent on DGrid and Dojo which uses non "strict" code, it is ultimately impossible to use Rollup.js to create bundles which include dgrid-shim (without forcing Rollup.JS to not include "use strict"). Here are two suggested workarounds:
external: [
"@hpcc-js/dgrid-shim"
],
output: {
...
globals: {
"@hpcc-js/dgrid-shim": "@hpcc-js/dgrid-shim"
}
},
<head>
...
<script src="node_modules/@hpcc-js/dgrid-shim/dist/index.min.js"></script>
</head>
output: {
...
strict: false
}
plugins: [
...,
commonjs({ }),
...
]
3.1.0 (2024-10-24)
FAQs
dgrid shim
The npm package @hpcc-js/dgrid-shim receives a total of 864 weekly downloads. As such, @hpcc-js/dgrid-shim popularity was classified as not popular.
We found that @hpcc-js/dgrid-shim 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.