spec-up-t 0.11.6 → 0.11.8

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.
package/index.js CHANGED
@@ -31,7 +31,7 @@ module.exports = function(options = {}) {
31
31
  }
32
32
  ];
33
33
 
34
- // getXrefsData();
34
+ getXrefsData();
35
35
 
36
36
  // Get the current working directory
37
37
  const projectRoot = process.cwd();
@@ -51,12 +51,6 @@ module.exports = function(options = {}) {
51
51
  xrefsData = "";
52
52
  }
53
53
 
54
-
55
-
56
- console.log('xrefsData: ', xrefsData);
57
-
58
-
59
-
60
54
  function applyReplacers(doc) {
61
55
  return doc.replace(replacerRegex, function (match, type, args) {
62
56
  let replacer = replacers.find(r => type.trim().match(r.test));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-up-t",
3
- "version": "0.11.6",
3
+ "version": "0.11.8",
4
4
  "description": "Technical specification drafting tool that generates rich specification documents from markdown. Forked from https://github.com/decentralized-identity/spec-up by Daniel Buchner (https://github.com/csuwildcat)",
5
5
  "main": "./index",
6
6
  "repository": {
@@ -190,11 +190,9 @@ function getXrefsData() {
190
190
  });
191
191
 
192
192
  async function fetchLatestCommitHashes() {
193
-
194
- // // temporary no github api call
195
- // for (const match of allXrefs.xrefs) {
196
- // match.commitHash = await fetchLatestCommitHash(match);
197
- // }
193
+ for (const match of allXrefs.xrefs) {
194
+ match.commitHash = await fetchLatestCommitHash(match);
195
+ }
198
196
  }
199
197
 
200
198
  // Call the function and wait for it to complete before writing to the file