Skip to content

Commit

Permalink
debug CI colors
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Jul 17, 2024
1 parent 871772c commit 67b039d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/warn-upload-overwrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ const preUploadDoc = async (db, localDoc) => {

const diff = jsonDiff.diffString(remoteDoc, localDoc, { color: true });

// eslint-disable-next-line
const colors = require('json-diff/node_modules/colors/safe');
// eslint-disable-next-line
console.log("supports color", colors.supportsColor(), colors.enabled);
// eslint-disable-next-line
console.log(colors.green);
// eslint-disable-next-line
console.log(colors.red);
// eslint-disable-next-line
console.log("diff", JSON.stringify(diff));
// eslint-disable-next-line
Expand Down

0 comments on commit 67b039d

Please sign in to comment.