@commercetools-frontend/cypress-environments 0.1.8 → 0.1.9

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.
@@ -123,7 +123,8 @@ async function getConfigurationForEnvironment(environmentName) {
123
123
  console.log(`ℹ️ No shared configuration for ${environmentName} defined.`);
124
124
  }
125
125
  }
126
- return _objectSpread(_objectSpread({}, sharedEnvironmentConfiguration), mergedConfigurationAndSecrests);
126
+ const config = _objectSpread(_objectSpread({}, sharedEnvironmentConfiguration), mergedConfigurationAndSecrests);
127
+ return config;
127
128
  }
128
129
 
129
130
  exports.getConfigurationForEnvironment = getConfigurationForEnvironment;
@@ -123,7 +123,8 @@ async function getConfigurationForEnvironment(environmentName) {
123
123
  console.log(`ℹ️ No shared configuration for ${environmentName} defined.`);
124
124
  }
125
125
  }
126
- return _objectSpread(_objectSpread({}, sharedEnvironmentConfiguration), mergedConfigurationAndSecrests);
126
+ const config = _objectSpread(_objectSpread({}, sharedEnvironmentConfiguration), mergedConfigurationAndSecrests);
127
+ return config;
127
128
  }
128
129
 
129
130
  exports.getConfigurationForEnvironment = getConfigurationForEnvironment;
@@ -100,7 +100,8 @@ async function getConfigurationForEnvironment(environmentName) {
100
100
  console.log(`ℹ️ No shared configuration for ${environmentName} defined.`);
101
101
  }
102
102
  }
103
- return _objectSpread(_objectSpread({}, sharedEnvironmentConfiguration), mergedConfigurationAndSecrests);
103
+ const config = _objectSpread(_objectSpread({}, sharedEnvironmentConfiguration), mergedConfigurationAndSecrests);
104
+ return config;
104
105
  }
105
106
 
106
107
  export { getConfigurationForEnvironment };
@@ -1,3 +1,5 @@
1
- type TEnvironmentConfigurationVariables = Record<string, string>;
2
- declare function getConfigurationForEnvironment(environmentName: string): Promise<TEnvironmentConfigurationVariables>;
1
+ export type TConfigForEnvironment = {
2
+ [key: string]: string;
3
+ };
4
+ declare function getConfigurationForEnvironment(environmentName: string): Promise<TConfigForEnvironment>;
3
5
  export { getConfigurationForEnvironment };
@@ -1,2 +1,3 @@
1
- import { getConfigurationForEnvironment } from "./environments.js";
1
+ import { getConfigurationForEnvironment, type TConfigForEnvironment } from "./environments.js";
2
2
  export { getConfigurationForEnvironment };
3
+ export type { TConfigForEnvironment };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/cypress-environments",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Cypress package to setup environment configuration using dotenv files",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -19,14 +19,14 @@
19
19
  "@babel/core": "^7.22.11",
20
20
  "@babel/runtime-corejs3": "^7.21.0",
21
21
  "cosmiconfig": "9.0.0",
22
- "dotenv": "16.4.7",
22
+ "dotenv": "16.6.1",
23
23
  "glob": "10.4.5",
24
24
  "pkg-dir": "5.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@tsconfig/node20": "20.1.4",
27
+ "@tsconfig/node20": "20.1.6",
28
28
  "@types/glob": "8.1.0",
29
- "@types/node": "22.13.14",
29
+ "@types/node": "22.18.8",
30
30
  "typescript": "5.2.2"
31
31
  },
32
32
  "engines": {