@percy/core 1.0.0-beta.70 → 1.0.0-beta.71
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/browser.js +6 -2
- package/dist/network.js +8 -4
- package/dist/percy.js +6 -2
- package/dist/queue.js +6 -2
- package/dist/session.js +5 -1
- package/dist/snapshot.js +1 -0
- package/package.json +6 -6
package/dist/browser.js
CHANGED
|
@@ -29,6 +29,10 @@ var _page = _interopRequireDefault(require("./page"));
|
|
|
29
29
|
|
|
30
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
31
|
|
|
32
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
33
|
+
|
|
34
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
35
|
+
|
|
32
36
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
37
|
|
|
34
38
|
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
|
@@ -61,12 +65,12 @@ class Browser extends _events.default {
|
|
|
61
65
|
|
|
62
66
|
_defineProperty(this, "closed", false);
|
|
63
67
|
|
|
64
|
-
|
|
68
|
+
_classPrivateFieldInitSpec(this, _callbacks, {
|
|
65
69
|
writable: true,
|
|
66
70
|
value: new Map()
|
|
67
71
|
});
|
|
68
72
|
|
|
69
|
-
|
|
73
|
+
_classPrivateFieldInitSpec(this, _lastid, {
|
|
70
74
|
writable: true,
|
|
71
75
|
value: 0
|
|
72
76
|
});
|
package/dist/network.js
CHANGED
|
@@ -13,6 +13,10 @@ var _discovery = require("./discovery");
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
17
|
+
|
|
18
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
19
|
+
|
|
16
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
21
|
|
|
18
22
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
|
@@ -37,22 +41,22 @@ class Network {
|
|
|
37
41
|
|
|
38
42
|
_defineProperty(this, "log", (0, _logger.default)('core:network'));
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
_classPrivateFieldInitSpec(this, _pending, {
|
|
41
45
|
writable: true,
|
|
42
46
|
value: new Map()
|
|
43
47
|
});
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
_classPrivateFieldInitSpec(this, _requests, {
|
|
46
50
|
writable: true,
|
|
47
51
|
value: new Map()
|
|
48
52
|
});
|
|
49
53
|
|
|
50
|
-
|
|
54
|
+
_classPrivateFieldInitSpec(this, _intercepts, {
|
|
51
55
|
writable: true,
|
|
52
56
|
value: new Map()
|
|
53
57
|
});
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
_classPrivateFieldInitSpec(this, _authentications, {
|
|
56
60
|
writable: true,
|
|
57
61
|
value: new Set()
|
|
58
62
|
});
|
package/dist/percy.js
CHANGED
|
@@ -23,6 +23,10 @@ var _snapshot = require("./snapshot");
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
27
|
+
|
|
28
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
29
|
+
|
|
26
30
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
31
|
|
|
28
32
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
|
@@ -73,12 +77,12 @@ class Percy {
|
|
|
73
77
|
|
|
74
78
|
_defineProperty(this, "readyState", null);
|
|
75
79
|
|
|
76
|
-
|
|
80
|
+
_classPrivateFieldInitSpec(this, _uploads, {
|
|
77
81
|
writable: true,
|
|
78
82
|
value: new _queue.default()
|
|
79
83
|
});
|
|
80
84
|
|
|
81
|
-
|
|
85
|
+
_classPrivateFieldInitSpec(this, _snapshots, {
|
|
82
86
|
writable: true,
|
|
83
87
|
value: new _queue.default()
|
|
84
88
|
});
|
package/dist/queue.js
CHANGED
|
@@ -7,6 +7,10 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _utils = require("./utils");
|
|
9
9
|
|
|
10
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
11
|
+
|
|
12
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
13
|
+
|
|
10
14
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
15
|
|
|
12
16
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
|
@@ -38,12 +42,12 @@ class Queue {
|
|
|
38
42
|
|
|
39
43
|
_defineProperty(this, "closed", false);
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
_classPrivateFieldInitSpec(this, _queued, {
|
|
42
46
|
writable: true,
|
|
43
47
|
value: new Map()
|
|
44
48
|
});
|
|
45
49
|
|
|
46
|
-
|
|
50
|
+
_classPrivateFieldInitSpec(this, _pending, {
|
|
47
51
|
writable: true,
|
|
48
52
|
value: new Map()
|
|
49
53
|
});
|
package/dist/session.js
CHANGED
|
@@ -13,6 +13,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
|
|
14
14
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
15
|
|
|
16
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
17
|
+
|
|
18
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
19
|
+
|
|
16
20
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
|
17
21
|
|
|
18
22
|
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
|
@@ -30,7 +34,7 @@ class Session extends _events.default {
|
|
|
30
34
|
|
|
31
35
|
super();
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
_classPrivateFieldInitSpec(this, _callbacks, {
|
|
34
38
|
writable: true,
|
|
35
39
|
value: new Map()
|
|
36
40
|
});
|
package/dist/snapshot.js
CHANGED
|
@@ -63,6 +63,7 @@ function getSnapshotConfig(percy, options) {
|
|
|
63
63
|
// only specific discovery options are used per-snapshot
|
|
64
64
|
discovery: {
|
|
65
65
|
allowedHostnames: [uri.hostname, ...config.discovery.allowedHostnames],
|
|
66
|
+
networkIdleTimeout: config.discovery.networkIdleTimeout,
|
|
66
67
|
requestHeaders: config.discovery.requestHeaders,
|
|
67
68
|
authorization: config.discovery.authorization,
|
|
68
69
|
disableCache: config.discovery.disableCache,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.71",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@percy/client": "1.0.0-beta.
|
|
29
|
-
"@percy/config": "1.0.0-beta.
|
|
30
|
-
"@percy/dom": "1.0.0-beta.
|
|
31
|
-
"@percy/logger": "1.0.0-beta.
|
|
28
|
+
"@percy/client": "1.0.0-beta.71",
|
|
29
|
+
"@percy/config": "1.0.0-beta.71",
|
|
30
|
+
"@percy/dom": "1.0.0-beta.71",
|
|
31
|
+
"@percy/logger": "1.0.0-beta.71",
|
|
32
32
|
"cross-spawn": "^7.0.3",
|
|
33
33
|
"extract-zip": "^2.0.1",
|
|
34
34
|
"rimraf": "^3.0.2",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"url": "https://github.com/percy/cli",
|
|
40
40
|
"directory": "packages/core"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "364d1df717fb19a26ccb024458df6e78a9c11f99"
|
|
43
43
|
}
|