Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
gooddata
Advanced tools
GoodData JavaScript SDK
GoodData javascript sdk library mainly provides a thin javascript abstraction over the GoodData REST API. It is created to makes it easy to use the GD platform and write small javascript apps relying on GD APIs.
It has been renamed from gooddata
to @gooddata/gooddata-js
in April 2018.
See https://www.npmjs.com/package/@gooddata/gooddata-js
The result of the build is in dist/gooddata[.min].js
.
Result of the build UMD-compatible -
you can use it both globally (see D3 example) and as AMD module. Note that you need to provide
jQuery before trying to load sdk. In both AMD and CommonJS environment we expect jQuery library module
to be named jquery
.
You can use the SDK in nodejs, but do not forget to set custom domain URL:
const gooddata = require('gooddata');
const getStream = require('get-stream');
gooddata.config.setCustomDomain('secure.gooddata.com');
gooddata.user.login('john.doe@example.com', 'your-secret-password')
.then(() => console.log('Success'))
.catch((e) => {
getStream(e.response.body).then(str => console.error(str))
});
To build the sdk you need to have git and Node.js installed. MacOS users should install Homebrew first and then run:
$ brew install git node yarn
Now, clone this repo with $ git clone git@github.com:gooddata/gooddata-js.git
and get the library dependecies with
$ yarn install
In the repository run:
$ grunt
and the built library is ready for you at dist/gooddata.min.js
It is easy to start your own project with this repository or modify and explore examples depicting some of the sdk usages. To start with examples run:
$ grunt dev
Which starts proxy that allows your script to communicate with secure.gooddata.com
(backend can be changed with $ grunt dev --backend=some-other-backend.na.getgooddata.com
).
To run some of the examples, first you need to update credentials in the related js file.
In case of d3-data-viz example you need to edit
viz.js
file and update user
and passwd
variables. Then just add the name of the example to URL like
localhost:8443/d3-data-viz and you should get a nice chord
chart rendered in a while.
Documentation of functions available in SDK can be found at sdk.gooddata.com/gooddata-js/api. It can be generated right from the source code by running:
$ grunt doc
Run tests with:
$ grunt test
Test coverage report can be found in coverage/
folder.
Flow of release is:
package.json
Steps to publish a release:
yarn version
command to select next versiongrunt bump-gh-pages
in master
npm publish
in master
FAQs
GoodData JavaScript SDK
The npm package gooddata receives a total of 34 weekly downloads. As such, gooddata popularity was classified as not popular.
We found that gooddata demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.