@percy/core 1.9.0 → 1.9.1
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/dist/api.js +8 -8
- package/package.json +6 -6
package/dist/api.js
CHANGED
|
@@ -138,14 +138,16 @@ export function createPercyServer(percy, port) {
|
|
|
138
138
|
}
|
|
139
139
|
}, res) => {
|
|
140
140
|
body = Buffer.isBuffer(body) ? body.toString() : body;
|
|
141
|
+
let {
|
|
142
|
+
remoteLoggers
|
|
143
|
+
} = percy.testing;
|
|
141
144
|
|
|
142
145
|
if (cmd === 'reset') {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
// the reset command will reset testing mode and clear any logs
|
|
147
|
+
percy.testing = remoteLoggers ? {
|
|
148
|
+
remoteLoggers
|
|
149
|
+
} : {};
|
|
147
150
|
logger.instance.messages.clear();
|
|
148
|
-
percy.testing = {};
|
|
149
151
|
} else if (cmd === 'version') {
|
|
150
152
|
// the version command will update the api version header for testing
|
|
151
153
|
percy.testing.version = body;
|
|
@@ -161,10 +163,8 @@ export function createPercyServer(percy, port) {
|
|
|
161
163
|
error: 'Build failed'
|
|
162
164
|
};
|
|
163
165
|
} else if (cmd === 'remote-logging') {
|
|
164
|
-
var _percy$testing$remote2;
|
|
165
|
-
|
|
166
166
|
// the remote-logging command will toggle remote logging support
|
|
167
|
-
if (body === false)
|
|
167
|
+
if (body === false) remoteLoggers === null || remoteLoggers === void 0 ? void 0 : remoteLoggers.forEach(ws => ws.terminate());
|
|
168
168
|
percy.testing.remoteLogging = body;
|
|
169
169
|
} else {
|
|
170
170
|
// 404 for unknown commands
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"test:types": "tsd"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@percy/client": "1.9.
|
|
43
|
-
"@percy/config": "1.9.
|
|
44
|
-
"@percy/dom": "1.9.
|
|
45
|
-
"@percy/logger": "1.9.
|
|
42
|
+
"@percy/client": "1.9.1",
|
|
43
|
+
"@percy/config": "1.9.1",
|
|
44
|
+
"@percy/dom": "1.9.1",
|
|
45
|
+
"@percy/logger": "1.9.1",
|
|
46
46
|
"content-disposition": "^0.5.4",
|
|
47
47
|
"cross-spawn": "^7.0.3",
|
|
48
48
|
"extract-zip": "^2.0.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"rimraf": "^3.0.2",
|
|
54
54
|
"ws": "^8.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "b2ff5100698488c8bf8c681972f4f2b9a1e2055f"
|
|
57
57
|
}
|