* Set default configurations for a node.js module. * * This variant is provided to support handling loading of multiple versions * of a library. This is meant for module developers to create a config snapshot * for an old version of the code, particularly during a staged upgrade. * In
(moduleName, defaultProperties)
| 248 | * @see Load.scan() for loading more robust defaults |
| 249 | */ |
| 250 | withModuleDefaults(moduleName, defaultProperties) { |
| 251 | const load = this.#config[LOAD_SYMBOL]; |
| 252 | const copy = new ConfigClass(load.clone()); |
| 253 | |
| 254 | copy.util.setModuleDefaults(moduleName, defaultProperties); |
| 255 | |
| 256 | return copy; |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * <p>Make a javascript object property immutable (assuring it cannot be changed |
no test coverage detected