@grafana/plugin-e2e 3.4.2-canary.2512.22723033503.0 → 3.4.2
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.
|
@@ -11,7 +11,11 @@ const readProvisionedDataSource = async ({ provisioningRootDir }, use) => {
|
|
|
11
11
|
const raw = await fs.promises.readFile(resolvedPath, "utf8");
|
|
12
12
|
const contents = raw.replace(/\$\{(\w+)(?::-(.*?))?\}|\$(\w+)/g, (_, braced, fallback, plain) => {
|
|
13
13
|
const varName = braced ?? plain;
|
|
14
|
-
|
|
14
|
+
const value = process.env[varName];
|
|
15
|
+
if (fallback !== void 0) {
|
|
16
|
+
return value === void 0 || value === "" ? fallback : value ?? "";
|
|
17
|
+
}
|
|
18
|
+
return value ?? "";
|
|
15
19
|
});
|
|
16
20
|
const yml = yaml.parse(contents);
|
|
17
21
|
if (!name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "3.4.2
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"uuid": "^13.0.0",
|
|
52
52
|
"yaml": "^2.3.4"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "264656090e2dd18b4e81c4cedb7bbb501af5d0fc"
|
|
55
55
|
}
|