@percy/core
Advanced tools
Comparing version 1.28.8-beta.3 to 1.28.8-beta.4
@@ -185,2 +185,17 @@ import fs from 'fs'; | ||
}); | ||
}).route('post', '/percy/log', async (req, res) => { | ||
const log = logger('sdk'); | ||
if (!req.body) { | ||
log.error('No request body for /percy/log endpoint'); | ||
return res.json(400, { | ||
error: 'No body passed' | ||
}); | ||
} | ||
const level = req.body.level; | ||
const message = req.body.message; | ||
const meta = req.body.meta || {}; | ||
log[level](message, meta); | ||
res.json(200, { | ||
success: true | ||
}); | ||
}) | ||
@@ -187,0 +202,0 @@ // stops percy at the end of the current event loop |
@@ -435,3 +435,3 @@ import PercyClient from '@percy/client'; | ||
const logsObject = { | ||
clilogs: logger.query(() => true) | ||
clilogs: logger.query(log => !['ci'].includes(log.debug)) | ||
}; | ||
@@ -441,3 +441,3 @@ // Only add CI logs if not disabled voluntarily. | ||
if (sendCILogs) { | ||
const redactedContent = redactSecrets(logger.query(() => true, true)); | ||
const redactedContent = redactSecrets(logger.query(log => ['ci'].includes(log.debug))); | ||
logsObject.cilogs = redactedContent; | ||
@@ -444,0 +444,0 @@ } |
{ | ||
"name": "@percy/core", | ||
"version": "1.28.8-beta.3", | ||
"version": "1.28.8-beta.4", | ||
"license": "MIT", | ||
@@ -46,7 +46,7 @@ "repository": { | ||
"dependencies": { | ||
"@percy/client": "1.28.8-beta.3", | ||
"@percy/config": "1.28.8-beta.3", | ||
"@percy/dom": "1.28.8-beta.3", | ||
"@percy/logger": "1.28.8-beta.3", | ||
"@percy/webdriver-utils": "1.28.8-beta.3", | ||
"@percy/client": "1.28.8-beta.4", | ||
"@percy/config": "1.28.8-beta.4", | ||
"@percy/dom": "1.28.8-beta.4", | ||
"@percy/logger": "1.28.8-beta.4", | ||
"@percy/webdriver-utils": "1.28.8-beta.4", | ||
"content-disposition": "^0.5.4", | ||
@@ -64,3 +64,3 @@ "cross-spawn": "^7.0.3", | ||
}, | ||
"gitHead": "60fcc0cc0e65b1dd9f81286a3a3cd7383f1f6220" | ||
"gitHead": "0ea30a56b97b5a5dab6ddc1282f71f1ecf07df2d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
390847
5061
+ Added@percy/client@1.28.8-beta.4(transitive)
+ Added@percy/config@1.28.8-beta.4(transitive)
+ Added@percy/dom@1.28.8-beta.4(transitive)
+ Added@percy/env@1.28.8-beta.4(transitive)
+ Added@percy/logger@1.28.8-beta.4(transitive)
+ Added@percy/sdk-utils@1.28.8-beta.4(transitive)
+ Added@percy/webdriver-utils@1.28.8-beta.4(transitive)
- Removed@percy/client@1.28.8-beta.3(transitive)
- Removed@percy/config@1.28.8-beta.3(transitive)
- Removed@percy/dom@1.28.8-beta.3(transitive)
- Removed@percy/env@1.28.8-beta.3(transitive)
- Removed@percy/logger@1.28.8-beta.3(transitive)
- Removed@percy/sdk-utils@1.28.8-beta.3(transitive)
- Removed@percy/webdriver-utils@1.28.8-beta.3(transitive)
Updated@percy/client@1.28.8-beta.4
Updated@percy/config@1.28.8-beta.4
Updated@percy/dom@1.28.8-beta.4
Updated@percy/logger@1.28.8-beta.4