genlayer 0.9.0 → 0.9.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.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +1 -2
- package/docker-compose.yml +6 -6
- package/package.json +1 -1
- package/src/lib/services/simulator.ts +0 -3
- package/tests/services/simulator.test.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## 0.9.1 (2024-12-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* removing volumes to stop error when running node without nvm ([#156](https://github.com/yeagerai/genlayer-cli/issues/156)) ([189c759](https://github.com/yeagerai/genlayer-cli/commit/189c7592fedb6373e3603f1bdb4366c79f289160))
|
|
9
|
+
|
|
3
10
|
## 0.9.0 (2024-12-13)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.js
CHANGED
|
@@ -58904,7 +58904,7 @@ var {
|
|
|
58904
58904
|
} = import_index.default;
|
|
58905
58905
|
|
|
58906
58906
|
// package.json
|
|
58907
|
-
var version = "0.9.
|
|
58907
|
+
var version = "0.9.1";
|
|
58908
58908
|
var package_default = {
|
|
58909
58909
|
name: "genlayer",
|
|
58910
58910
|
version,
|
|
@@ -59637,7 +59637,6 @@ var SimulatorService = class {
|
|
|
59637
59637
|
}
|
|
59638
59638
|
addConfigToEnvFile(newConfig) {
|
|
59639
59639
|
const envFilePath = path2.join(this.location, ".env");
|
|
59640
|
-
fs5.writeFileSync(`${envFilePath}.bak`, fs5.readFileSync(envFilePath));
|
|
59641
59640
|
const envConfig = dotenv.parse(fs5.readFileSync(envFilePath, "utf8"));
|
|
59642
59641
|
Object.keys(newConfig).forEach((key) => {
|
|
59643
59642
|
envConfig[key] = newConfig[key];
|
package/docker-compose.yml
CHANGED
|
@@ -7,8 +7,8 @@ services:
|
|
|
7
7
|
- "${FRONTEND_PORT:-8080}:8080"
|
|
8
8
|
environment:
|
|
9
9
|
- VITE_*
|
|
10
|
-
|
|
11
|
-
- ./.env
|
|
10
|
+
env_file:
|
|
11
|
+
- ./.env
|
|
12
12
|
depends_on:
|
|
13
13
|
jsonrpc:
|
|
14
14
|
condition: service_healthy
|
|
@@ -36,8 +36,8 @@ services:
|
|
|
36
36
|
ports:
|
|
37
37
|
- "${RPCPORT:-5000}:${RPCPORT:-5000}"
|
|
38
38
|
- "${RPCDEBUGPORT:-5001}:${RPCDEBUGPORT:-5001}"
|
|
39
|
-
|
|
40
|
-
- ./.env
|
|
39
|
+
env_file:
|
|
40
|
+
- ./.env
|
|
41
41
|
healthcheck:
|
|
42
42
|
test: [ "CMD", "python", "backend/healthcheck.py", "--port", "${RPCPORT}" ]
|
|
43
43
|
interval: 30s
|
|
@@ -75,8 +75,8 @@ services:
|
|
|
75
75
|
expose:
|
|
76
76
|
- "${WEBREQUESTPORT:-5002}:${WEBREQUESTPORT:-5002}"
|
|
77
77
|
- "${WEBREQUESTSELENIUMPORT:-4444}:${WEBREQUESTSELENIUMPORT:-4444}"
|
|
78
|
-
|
|
79
|
-
- ./.env
|
|
78
|
+
env_file:
|
|
79
|
+
- ./.env
|
|
80
80
|
depends_on:
|
|
81
81
|
ollama:
|
|
82
82
|
condition: service_started
|
package/package.json
CHANGED
|
@@ -50,9 +50,6 @@ export class SimulatorService implements ISimulatorService {
|
|
|
50
50
|
public addConfigToEnvFile(newConfig: Record<string, string>): void {
|
|
51
51
|
const envFilePath = path.join(this.location, ".env");
|
|
52
52
|
|
|
53
|
-
// Create a backup of the original .env file
|
|
54
|
-
fs.writeFileSync(`${envFilePath}.bak`, fs.readFileSync(envFilePath));
|
|
55
|
-
|
|
56
53
|
// Transform the config string to object
|
|
57
54
|
const envConfig = dotenv.parse(fs.readFileSync(envFilePath, "utf8"));
|
|
58
55
|
Object.keys(newConfig).forEach(key => {
|
|
@@ -173,7 +173,6 @@ describe("SimulatorService - Basic Tests", () => {
|
|
|
173
173
|
|
|
174
174
|
simulatorService.addConfigToEnvFile(newConfig);
|
|
175
175
|
|
|
176
|
-
expect(writeFileSyncMock).toHaveBeenCalledWith(`${envFilePath}.bak`, "");
|
|
177
176
|
const expectedUpdatedContent = `NEW_KEY=newValue`;
|
|
178
177
|
expect(writeFileSyncMock).toHaveBeenCalledWith(envFilePath, expectedUpdatedContent);
|
|
179
178
|
});
|