@percy/core
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -141,10 +141,12 @@ import fs from 'fs'; | ||
body = Buffer.isBuffer(body) ? body.toString() : body; | ||
let { | ||
remoteLoggers | ||
} = percy.testing; | ||
if (cmd === 'reset') { | ||
var _percy$testing$remote; | ||
// the reset command will terminate connections, clear logs, and reset testing mode | ||
(_percy$testing$remote = percy.testing.remoteLoggers) === null || _percy$testing$remote === void 0 ? void 0 : _percy$testing$remote.forEach(ws => ws.terminate()); | ||
// the reset command will reset testing mode and clear any logs | ||
percy.testing = remoteLoggers ? { | ||
remoteLoggers | ||
} : {}; | ||
logger.instance.messages.clear(); | ||
percy.testing = {}; | ||
} else if (cmd === 'version') { | ||
@@ -165,6 +167,4 @@ // the version command will update the api version header for testing | ||
} else if (cmd === 'remote-logging') { | ||
var _percy$testing$remote2; | ||
// the remote-logging command will toggle remote logging support | ||
if (body === false) (_percy$testing$remote2 = percy.testing.remoteLoggers) === null || _percy$testing$remote2 === void 0 ? void 0 : _percy$testing$remote2.forEach(ws => ws.terminate()); | ||
if (body === false) remoteLoggers === null || remoteLoggers === void 0 ? void 0 : remoteLoggers.forEach(ws => ws.terminate()); | ||
percy.testing.remoteLogging = body; | ||
@@ -171,0 +171,0 @@ } else { |
{ | ||
"name": "@percy/core", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"license": "MIT", | ||
@@ -42,6 +42,6 @@ "repository": { | ||
"dependencies": { | ||
"@percy/client": "1.9.0", | ||
"@percy/config": "1.9.0", | ||
"@percy/dom": "1.9.0", | ||
"@percy/logger": "1.9.0", | ||
"@percy/client": "1.9.1", | ||
"@percy/config": "1.9.1", | ||
"@percy/dom": "1.9.1", | ||
"@percy/logger": "1.9.1", | ||
"content-disposition": "^0.5.4", | ||
@@ -57,3 +57,3 @@ "cross-spawn": "^7.0.3", | ||
}, | ||
"gitHead": "3332a2a63802c58848d0a5fbdd3c7aadc076212b" | ||
"gitHead": "b2ff5100698488c8bf8c681972f4f2b9a1e2055f" | ||
} |
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
3367
152469
+ Added@percy/client@1.9.1(transitive)
+ Added@percy/config@1.9.1(transitive)
+ Added@percy/dom@1.9.1(transitive)
+ Added@percy/env@1.9.1(transitive)
+ Added@percy/logger@1.9.1(transitive)
- Removed@percy/client@1.9.0(transitive)
- Removed@percy/config@1.9.0(transitive)
- Removed@percy/dom@1.9.0(transitive)
- Removed@percy/env@1.9.0(transitive)
- Removed@percy/logger@1.9.0(transitive)
Updated@percy/client@1.9.1
Updated@percy/config@1.9.1
Updated@percy/dom@1.9.1
Updated@percy/logger@1.9.1