Skip to content

Commit

Permalink
chore(Test): added log for travis debug
Browse files Browse the repository at this point in the history
  • Loading branch information
raiseandfall committed Feb 3, 2021
1 parent 3125173 commit 8c0be31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/inspectors/computeLocalHash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export default async function computeLocalHash (document: any): Promise<string>

const jsonldDocumentLoader = setJsonLdDocumentLoader();
const customLoader = function (url, callback): any { // Not typed by JSONLD
console.log(url);

if (url in CONTEXTS) {
return callback(null, {
contextUrl: null,
Expand All @@ -57,6 +59,7 @@ export default async function computeLocalHash (document: any): Promise<string>

return new Promise((resolve, reject) => {
jsonld.normalize(theDocument, normalizeArgs, (err, normalized) => {
console.log('normalize error:', err);
const isErr = !!err;
if (isErr) {
reject(
Expand Down

0 comments on commit 8c0be31

Please sign in to comment.