Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Don't set `@base` in initial context and don't resolve a relative IRI
when setting `@base` in a context, so that the document location can
be kept separate from the context itself.
- Use `package.json` `version` field for EARL reports.

## 3.0.1 - 2020-03-10

Expand Down
6 changes: 3 additions & 3 deletions tests/earl-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ function EarlReport(options) {
'subjectOf': []
};
/* eslint-enable quote-props */
// FIXME: read this from somewhere
version = 'v3.0.1'
const version = require('../package.json').version;
this._report['@id'] += '#' + this.id;
this._report['doap:name'] += ' ' + this.id;
this._report['dc:title'] += ' ' + this.id;
this._report['doap:release']['doap:name'] = this._report['doap:name'] + ' ' + version;
this._report['doap:release']['doap:name'] =
this._report['doap:name'] + ' ' + version;
this._report['doap:release']['doap:revision'] = version;
}

Expand Down