Comparing version 1.0.5 to 1.0.6
@@ -22,4 +22,5 @@ import { SettingStorage, MutableSettingStorage } from "./MutableSettingStorage"; | ||
getSetting(key: string): any | null; | ||
manage(settingFields: SettingField<any>[], overrideDefaultObj: any): any; | ||
config(configObj: any): any; | ||
manage(settingFields: SettingField<any>[], overrideDefaultObj?: any): any; | ||
neededKeys(): string[]; | ||
} |
@@ -74,2 +74,5 @@ "use strict"; | ||
} | ||
config(configObj) { | ||
return this.manage(Object.keys(configObj), configObj); | ||
} | ||
manage(settingFields, overrideDefaultObj) { | ||
@@ -79,3 +82,3 @@ const _this = this; | ||
var _a, _b; | ||
return (_b = (_a = _this.getSetting(key)) !== null && _a !== void 0 ? _a : overrideDefaultObj[key]) !== null && _b !== void 0 ? _b : defaultValue; | ||
return (_b = (_a = _this.getSetting(key)) !== null && _a !== void 0 ? _a : overrideDefaultObj === null || overrideDefaultObj === void 0 ? void 0 : overrideDefaultObj[key]) !== null && _b !== void 0 ? _b : defaultValue; | ||
}; | ||
@@ -82,0 +85,0 @@ const configObject = settingFields.reduce((obj, f) => { |
@@ -22,4 +22,5 @@ import { SettingStorage, MutableSettingStorage } from "./MutableSettingStorage"; | ||
getSetting(key: string): any | null; | ||
manage(settingFields: SettingField<any>[], overrideDefaultObj: any): any; | ||
config(configObj: any): any; | ||
manage(settingFields: SettingField<any>[], overrideDefaultObj?: any): any; | ||
neededKeys(): string[]; | ||
} |
@@ -74,2 +74,5 @@ "use strict"; | ||
} | ||
config(configObj) { | ||
return this.manage(Object.keys(configObj), configObj); | ||
} | ||
manage(settingFields, overrideDefaultObj) { | ||
@@ -79,3 +82,3 @@ const _this = this; | ||
var _a, _b; | ||
return (_b = (_a = _this.getSetting(key)) !== null && _a !== void 0 ? _a : overrideDefaultObj[key]) !== null && _b !== void 0 ? _b : defaultValue; | ||
return (_b = (_a = _this.getSetting(key)) !== null && _a !== void 0 ? _a : overrideDefaultObj === null || overrideDefaultObj === void 0 ? void 0 : overrideDefaultObj[key]) !== null && _b !== void 0 ? _b : defaultValue; | ||
}; | ||
@@ -82,0 +85,0 @@ const configObject = settingFields.reduce((obj, f) => { |
{ | ||
"name": "biewangle", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22337
498