@percy/env 1.24.2 → 1.25.0
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/environment.js +5 -0
- package/package.json +5 -2
package/dist/environment.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { getCommitData, getJenkinsSha, github } from './utils.js';
|
|
2
|
+
import logger from '@percy/logger';
|
|
2
3
|
export class PercyEnv {
|
|
3
4
|
constructor(vars = process.env) {
|
|
4
5
|
this.vars = vars;
|
|
6
|
+
this.log = logger('env');
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
// used for getter switch statements
|
|
@@ -287,6 +289,9 @@ Object.defineProperties(PercyEnv.prototype, Object.entries(Object.getOwnProperty
|
|
|
287
289
|
Object.defineProperty(this, key, {
|
|
288
290
|
value
|
|
289
291
|
});
|
|
292
|
+
if (key !== 'token') {
|
|
293
|
+
this.log.debug(`Detected ${key} as ${JSON.stringify(value)}`);
|
|
294
|
+
}
|
|
290
295
|
return value;
|
|
291
296
|
}
|
|
292
297
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/env",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,5 +30,8 @@
|
|
|
30
30
|
"test": "node ../../scripts/test",
|
|
31
31
|
"test:coverage": "yarn test --coverage"
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@percy/logger": "1.25.0"
|
|
35
|
+
},
|
|
36
|
+
"gitHead": "e07723ed1b47cd34be8b13f2ad674f923e51d673"
|
|
34
37
|
}
|