Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
75a1faf
fix(dashmate): parse string as object
pshenmic Apr 3, 2023
0840754
fix: fix masternodes lists
pshenmic Apr 10, 2023
cf301c6
Merge remote-tracking branch 'origin/v0.24-dev' into v0.24-dev
pshenmic Apr 13, 2023
3f6e9ff
Merge remote-tracking branch 'origin/v0.24-dev' into v0.24-dev
pshenmic Apr 14, 2023
4c2f9e4
Merge branch 'v0.24-dev' into fix/config-set-object
pshenmic Apr 14, 2023
80742bc
feat: always JSON.parse on config set
pshenmic Apr 14, 2023
1f19aa4
feat: check schema for value type
pshenmic Apr 14, 2023
f3286e7
fix(dashmate): add support for definitions
pshenmic Apr 14, 2023
395c2df
chore(dashmate): lint fix
pshenmic Apr 14, 2023
3e4d026
Merge branch 'master' into fix/config-set-object
pshenmic May 19, 2023
0297d73
Merge remote-tracking branch 'origin/master' into fix/config-set-object
pshenmic May 19, 2023
b544a2d
Merge remote-tracking branch 'origin/master' into fix/config-set-object
pshenmic Jun 5, 2023
7a0b237
feat(dashmate): add derefence
pshenmic Jun 5, 2023
9fc2aed
feat(dashmate): add set spec
pshenmic Jun 5, 2023
8a56d20
feat(dashmate): lint fix
pshenmic Jun 5, 2023
09604fe
feat(dashmate): enable
pshenmic Jun 5, 2023
941ee2c
feat(dashmate): commit pnp cjs
pshenmic Jun 5, 2023
610fcbc
feat(dashmate): stringify optionValue
pshenmic Jun 5, 2023
a0e4667
feat(dashmate): remove redundant $ref condition
pshenmic Jun 6, 2023
0645b50
feat(dashmate): replace with getPropertyDefinitionByPath.js
pshenmic Jun 6, 2023
33be452
feat(dashmate): replace with JSON.parse()
pshenmic Jun 6, 2023
7172c68
feat(dashmate): add type mismatch case
pshenmic Jun 6, 2023
035ed89
chore(dashmate): remove unused
pshenmic Jun 6, 2023
9c7ad78
chore(dashmate): fix test desc
pshenmic Jun 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/dashmate/src/commands/config/set.js
Comment thread
shumkov marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ class ConfigSetCommand extends ConfigBaseCommand {
optionValue = null;
Comment thread
shumkov marked this conversation as resolved.
Outdated
}

config.set(optionPath, optionValue);
if (typeof config.get(optionPath) === 'object') {
Comment thread
shumkov marked this conversation as resolved.
Outdated
config.set(optionPath, JSON.parse(optionValue));
} else {
config.set(optionPath, optionValue);
}

// eslint-disable-next-line no-console
console.log(`${optionPath} set to ${config.get(optionPath)}`);
Expand Down