],
"compilerOptions": {
"allowJs": true,
- "target": "es2017",
+ "target": "es2019",
"module": "amd",
"rootDir": "ts/",
"outDir": "wcfsetup/install/files/js/",
"lib": [
"dom",
- "es2017"
+ "es2019"
],
"strictNullChecks": true,
"moduleResolution": "node",
try {
maybeJson = JSON.parse(decodedValue);
}
- catch (_a) {
+ catch {
// Skip invalid values.
}
if ((0, Core_1.isPlainObject)(maybeJson)) {
return undefined;
},
};
- const Plural = Object.assign({
+ const Plural = {
/**
* Returns the plural category for the given value.
*/
*/
getV(n) {
return n.toString().replace(/^[^.]*\.?/, "").length;
- } }, Languages);
+ },
+ ...Languages,
+ };
return Plural;
});
getColor() {
const color = this.colorInput.value;
const alpha = this.alphaInput.value;
- return Object.assign(Object.assign({}, ColorUtil.hexToRgb(color)), { a: +alpha });
+ return { ...ColorUtil.hexToRgb(color), a: +alpha };
}
/**
* Opens the color picker after clicking on the picker button.