Skip to content

Commit

Permalink
Small changelog and readme corrections, touch #564.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDalek committed Nov 25, 2024
1 parent 8a7b945 commit e9279b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ _Fixes:_

- Fixed the warning message when the the default `resources.json` file is not found.
- Fixed the problem with the lack of the `instr` value, when the `options` is set instead.
- Corrected the `Node.js Module` example in the README.

# 4.0.2

Expand Down
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,23 +569,20 @@ const options = {
};
// Logic must be triggered in an asynchronous function
(async () => {
// Initialize export settings with your chart's config
const exportSettings = exporter.setOptions(options);
// Must initialize exporting before being able to export charts
await exporter.initExport(exportSettings);
// Perform an export
await exporter.startExport(exportSettings, async (error, info) => {
// The export result is now in info
// It will be base64 encoded (info.result)
// Kill the pool when we are done with it
await exporter.killPool();
});
})();
// Initialize export settings with your chart's config
const exportSettings = exporter.setOptions(options);
// Must initialize exporting before being able to export charts
await exporter.initExport(exportSettings);
// Perform an export
await exporter.startExport(exportSettings, async (error, info) => {
// The export result is now in info
// It will be base64 encoded (info.data)
// Kill the pool when we are done with it
await exporter.killPool();
});
```

## CommonJS support
Expand Down

0 comments on commit e9279b3

Please sign in to comment.