@percy/env 1.30.6 → 1.30.7-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.
@@ -278,6 +278,17 @@ export class PercyEnv {
278
278
  get token() {
279
279
  return this.vars.PERCY_TOKEN || null;
280
280
  }
281
+
282
+ // PERCY_FORCE_PKG_VALUE for forcing package.json values
283
+ // to be used as the current environment values in client
284
+ get forcedPkgValue() {
285
+ try {
286
+ let pkg = this.vars.PERCY_FORCE_PKG_VALUE;
287
+ return JSON.parse(pkg) || null;
288
+ } catch (e) {
289
+ return null;
290
+ }
291
+ }
281
292
  }
282
293
 
283
294
  // 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.30.6",
3
+ "version": "1.30.7-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": "latest"
12
+ "tag": "beta"
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.30.6"
35
+ "@percy/logger": "1.30.7-beta.1"
36
36
  },
37
- "gitHead": "4f08c2841c452d1d445077a8e465641100b712de"
37
+ "gitHead": "b9a15ba7853ff350b7d7b7c3364700e70ca66643"
38
38
  }