@percy/core 1.30.9-alpha.0 → 1.30.9-beta.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/package.json +9 -9
- package/dist/timing.js +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.30.9-
|
|
3
|
+
"version": "1.30.9-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public",
|
|
12
|
-
"tag": "
|
|
12
|
+
"tag": "beta"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=14"
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"test:types": "tsd"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@percy/client": "1.30.9-
|
|
47
|
-
"@percy/config": "1.30.9-
|
|
48
|
-
"@percy/dom": "1.30.9-
|
|
49
|
-
"@percy/logger": "1.30.9-
|
|
50
|
-
"@percy/monitoring": "1.30.9-
|
|
51
|
-
"@percy/webdriver-utils": "1.30.9-
|
|
46
|
+
"@percy/client": "1.30.9-beta.1",
|
|
47
|
+
"@percy/config": "1.30.9-beta.1",
|
|
48
|
+
"@percy/dom": "1.30.9-beta.1",
|
|
49
|
+
"@percy/logger": "1.30.9-beta.1",
|
|
50
|
+
"@percy/monitoring": "1.30.9-beta.1",
|
|
51
|
+
"@percy/webdriver-utils": "1.30.9-beta.1",
|
|
52
52
|
"content-disposition": "^0.5.4",
|
|
53
53
|
"cross-spawn": "^7.0.3",
|
|
54
54
|
"extract-zip": "^2.0.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"ws": "^8.17.1",
|
|
62
62
|
"yaml": "^2.4.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "c8101e4cb408ee4b729a9b2433c193b98605d8ab"
|
|
65
65
|
}
|
package/dist/timing.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import logger from '@percy/logger';
|
|
2
|
-
export default class TimeIt {
|
|
3
|
-
log = logger('timer');
|
|
4
|
-
// returns a singleton instance
|
|
5
|
-
constructor() {
|
|
6
|
-
let {
|
|
7
|
-
instance = this
|
|
8
|
-
} = this.constructor;
|
|
9
|
-
this.constructor.instance = instance;
|
|
10
|
-
return instance;
|
|
11
|
-
}
|
|
12
|
-
async measure(name, identifier, callback) {
|
|
13
|
-
const startTime = Date.now();
|
|
14
|
-
try {
|
|
15
|
-
return await callback();
|
|
16
|
-
} finally {
|
|
17
|
-
const duration = Date.now() - startTime;
|
|
18
|
-
this.log.info(`${name} - ${identifier} - ${duration / 1000}s`);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|