@percy/env 1.26.3-beta.1 → 1.26.3-beta.3
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/utils.js +12 -0
- package/package.json +3 -3
package/dist/utils.js
CHANGED
|
@@ -52,4 +52,16 @@ export function github({
|
|
|
52
52
|
} catch {}
|
|
53
53
|
}
|
|
54
54
|
return github.payload || (github.payload = {});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// auto strip double quotes/spaces if any
|
|
58
|
+
export function stripQuotesAndSpaces(line) {
|
|
59
|
+
if (typeof line === 'string') {
|
|
60
|
+
const regex = /^["\s"]+|["\s"]+$/g;
|
|
61
|
+
const strippedLine = line.replace(regex, '');
|
|
62
|
+
return strippedLine;
|
|
63
|
+
} else {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
;
|
|
55
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/env",
|
|
3
|
-
"version": "1.26.3-beta.
|
|
3
|
+
"version": "1.26.3-beta.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test:coverage": "yarn test --coverage"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@percy/logger": "1.26.3-beta.
|
|
35
|
+
"@percy/logger": "1.26.3-beta.3"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "10985eb00dad949e7dd6bbe6418b3fecfe22bba8"
|
|
38
38
|
}
|