@percy/env 1.31.0-alpha.2 → 1.31.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.
@@ -278,6 +278,22 @@ export class PercyEnv {
278
278
  get token() {
279
279
  return this.vars.PERCY_TOKEN || null;
280
280
  }
281
+
282
+ // th build uuid
283
+ get testhubBuildUuid() {
284
+ return this.vars.TH_BUILD_UUID || this.vars.BROWSERSTACK_TESTHUB_UUID || null;
285
+ }
286
+
287
+ // PERCY_FORCE_PKG_VALUE for forcing package.json values
288
+ // to be used as the current environment values in client
289
+ get forcedPkgValue() {
290
+ try {
291
+ let pkg = this.vars.PERCY_FORCE_PKG_VALUE;
292
+ return JSON.parse(pkg) || null;
293
+ } catch (e) {
294
+ return null;
295
+ }
296
+ }
281
297
  }
282
298
 
283
299
  // cache getters on initial call so subsequent calls are not re-computed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/env",
3
- "version": "1.31.0-alpha.2",
3
+ "version": "1.31.0",
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": "alpha"
12
+ "tag": "latest"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -32,7 +32,7 @@
32
32
  "test:coverage": "yarn test --coverage"
33
33
  },
34
34
  "dependencies": {
35
- "@percy/logger": "1.31.0-alpha.2"
35
+ "@percy/logger": "1.31.0"
36
36
  },
37
- "gitHead": "1c7711f564fd4a112e1e1490a772db757df0535d"
37
+ "gitHead": "49895470c0dfa7242881db43e293317d1fb8f8b6"
38
38
  }