@opentermsarchive/engine 0.32.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,15 +54,6 @@
54
54
  "updateTemplateId": 7
55
55
  }
56
56
  },
57
- "reporter": {
58
- "githubIssues": {
59
- "repositories": {
60
- "declarations": "OpenTermsArchive/sandbox-declarations",
61
- "versions": "OpenTermsArchive/sandbox-versions",
62
- "snapshots": "OpenTermsArchive/sandbox-snapshots"
63
- }
64
- }
65
- },
66
57
  "dataset": {
67
58
  "title": "sandbox",
68
59
  "versionsRepositoryURL": "https://github.com/OpenTermsArchive/sandbox"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentermsarchive/engine",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "Tracks and makes visible changes to the terms of online services",
5
5
  "homepage": "https://github.com/OpenTermsArchive/engine#readme",
6
6
  "bugs": {
package/src/index.js CHANGED
@@ -43,10 +43,14 @@ export default async function track({ services, types, extractOnly, schedule })
43
43
  }
44
44
 
45
45
  if (process.env.GITHUB_TOKEN) {
46
- const reporter = new Reporter(config.get('reporter'));
47
-
48
- await reporter.initialize();
49
- archivist.attach(reporter);
46
+ if (config.has('reporter.githubIssues.repositories.declarations')) {
47
+ const reporter = new Reporter(config.get('reporter'));
48
+
49
+ await reporter.initialize();
50
+ archivist.attach(reporter);
51
+ } else {
52
+ logger.warn('Configuration key "reporter.githubIssues.repositories.declarations" was not found; the Reporter module will be ignored\n');
53
+ }
50
54
  }
51
55
 
52
56
  if (!schedule) {
@@ -132,8 +132,8 @@ If the source documents are accessible in a browser but fetching them always fai
132
132
  ### References
133
133
 
134
134
  - ${latestDeclarationLink}
135
- - ${latestVersionLink}
136
- - ${latestSnapshotsLink}
135
+ ${this.repositories.versions ? `- ${latestVersionLink}` : ''}
136
+ ${this.repositories.snapshots ? `- ${latestSnapshotsLink}` : ''}
137
137
  `;
138
138
  /* eslint-enable no-irregular-whitespace */
139
139
  }