From 9f6d37263c912cff50ac533e18658b7adf6fd09f Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 14 Nov 2021 10:17:30 +0100 Subject: [PATCH 1/6] Update npm packages --- package-lock.json | 127 +++++++++++++++++++++++----------------------- package.json | 14 ++--- 2 files changed, 70 insertions(+), 71 deletions(-) diff --git a/package-lock.json b/package-lock.json index 437ac0f08..27e89d4ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1216,9 +1216,9 @@ } }, "@babel/runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", - "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.3.tgz", + "integrity": "sha512-WBwekcqacdY2e9AF/Q7WLFUWmdJGJTkbjqTjoMDgXkVZ3ZRUvOPsLb5KdwISoQVsbP+DQzVZW4Zhci0DvpbNTQ==", "dev": true, "requires": { "regenerator-runtime": "^0.13.4" @@ -1374,9 +1374,9 @@ } }, "@eslint/eslintrc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.0.3.tgz", - "integrity": "sha512-DHI1wDPoKCBPoLZA3qDR91+3te/wDSc1YhKg3jR8NxKKRJq2hwHwcWv31cSwSYvIBrmbENoYMWcenW8uproQqg==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.0.4.tgz", + "integrity": "sha512-h8Vx6MdxwWI2WM8/zREHMoqdgLNXEL4QX3MWSVMdyNJGvXVOs+6lp+m2hc3FnuMHDc4poxFNI20vCk0OmI4G0Q==", "dev": true, "requires": { "ajv": "^6.12.4", @@ -1385,11 +1385,17 @@ "globals": "^13.9.0", "ignore": "^4.0.6", "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", + "js-yaml": "^4.1.0", "minimatch": "^3.0.4", "strip-json-comments": "^3.1.1" }, "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "debug": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", @@ -1399,6 +1405,15 @@ "ms": "2.1.2" } }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -1436,9 +1451,9 @@ } }, "@humanwhocodes/object-schema": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", - "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, "@javascript-obfuscator/escodegen": { @@ -3214,9 +3229,9 @@ } }, "core-js": { - "version": "3.19.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.0.tgz", - "integrity": "sha512-L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg==", + "version": "3.19.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.1.tgz", + "integrity": "sha512-Tnc7E9iKd/b/ff7GFbhwPVzJzPztGrChB8X8GLqoYGdEOG8IpLnK1xPyo3ZoO3HsK6TodJS58VGPOxA+hLHQMg==", "dev": true }, "core-js-compat": { @@ -3835,9 +3850,9 @@ "dev": true }, "es-module-shims": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-module-shims/-/es-module-shims-1.3.0.tgz", - "integrity": "sha512-Sxf2sAwlTRujxrdMOz2FA+2iD8fgWuyB56M2UMRd4L22PHfjKr/Ro3WMFfgWFshDWKnCR7RKfUHJ/A38t2aPnA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/es-module-shims/-/es-module-shims-1.3.1.tgz", + "integrity": "sha512-HrxmCO6zaLEiWK6ZKaBFhrSA7lP4mUcWKTvhkStVlDMUvTbe3HuC9SnpAlkS2g5UBXgIa6EoSKa3GAPP6YQucw==", "dev": true }, "es-to-primitive": { @@ -3908,12 +3923,12 @@ "dev": true }, "eslint": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.1.0.tgz", - "integrity": "sha512-JZvNneArGSUsluHWJ8g8MMs3CfIEzwaLx9KyH4tZ2i+R2/rPWzL8c0zg3rHdwYVpN/1sB9gqnjHwz9HoeJpGHw==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.2.0.tgz", + "integrity": "sha512-erw7XmM+CLxTOickrimJ1SiF55jiNlVSp2qqm0NuBWPtHYQCegD5ZMaW0c3i5ytPqL+SSLaCxdvQXFPLJn+ABw==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.0.3", + "@eslint/eslintrc": "^1.0.4", "@humanwhocodes/config-array": "^0.6.0", "ajv": "^6.10.0", "chalk": "^4.0.0", @@ -3947,7 +3962,7 @@ "progress": "^2.0.0", "regexpp": "^3.2.0", "semver": "^7.2.1", - "strip-ansi": "^6.0.0", + "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", "text-table": "^0.2.0", "v8-compile-cache": "^2.0.3" @@ -4025,9 +4040,9 @@ } }, "eslint-visitor-keys": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.0.0.tgz", - "integrity": "sha512-mJOZa35trBTb3IyRmo8xmKBZlxf+N7OnUl4+ZhJHs/r+0770Wh/LEACE2pqMGMe27G/4y8P2bYGk4J70IC5k1Q==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz", + "integrity": "sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==", "dev": true }, "estraverse": { @@ -4239,9 +4254,9 @@ } }, "eslint-plugin-import": { - "version": "2.25.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.2.tgz", - "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==", + "version": "2.25.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.3.tgz", + "integrity": "sha512-RzAVbby+72IB3iOEL8clzPLzL3wpDrlwjsTBAQXgyp5SeTqqY+0bFubwuo+y/HLhNZcXV4XqTBO4LGsfyHIDXg==", "dev": true, "requires": { "array-includes": "^3.1.4", @@ -4249,9 +4264,9 @@ "debug": "^2.6.9", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.0", + "eslint-module-utils": "^2.7.1", "has": "^1.0.3", - "is-core-module": "^2.7.0", + "is-core-module": "^2.8.0", "is-glob": "^4.0.3", "minimatch": "^3.0.4", "object.values": "^1.1.5", @@ -4515,9 +4530,9 @@ }, "dependencies": { "eslint-visitor-keys": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.0.0.tgz", - "integrity": "sha512-mJOZa35trBTb3IyRmo8xmKBZlxf+N7OnUl4+ZhJHs/r+0770Wh/LEACE2pqMGMe27G/4y8P2bYGk4J70IC5k1Q==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz", + "integrity": "sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==", "dev": true } } @@ -7932,18 +7947,18 @@ "dev": true }, "mime-db": { - "version": "1.50.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", - "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==", + "version": "1.51.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", "dev": true }, "mime-types": { - "version": "2.1.33", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", - "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", "dev": true, "requires": { - "mime-db": "1.50.0" + "mime-db": "1.51.0" } }, "mimic-response": { @@ -14728,28 +14743,18 @@ } }, "terser-webpack-plugin": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.4.tgz", - "integrity": "sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==", + "version": "5.2.5", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.5.tgz", + "integrity": "sha512-3luOVHku5l0QBeYS8r4CdHYWEGMmIj3H1U64jgkdZzECcSOJAyJ9TjuqcQZvw1Y+4AOBN9SeYJPJmFn2cM4/2g==", "dev": true, "requires": { "jest-worker": "^27.0.6", - "p-limit": "^3.1.0", "schema-utils": "^3.1.1", "serialize-javascript": "^6.0.0", "source-map": "^0.6.1", "terser": "^5.7.2" }, "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, "schema-utils": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", @@ -15516,15 +15521,15 @@ } }, "web-streams-polyfill": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.1.1.tgz", - "integrity": "sha512-Czi3fG883e96T4DLEPRvufrF2ydhOOW1+1a6c3gNjH2aIh50DNFBdfwh2AKoOf1rXvpvavAoA11Qdq9+BKjE0Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.0.tgz", + "integrity": "sha512-EqPmREeOzttaLRm5HS7io98goBgZ7IVz79aDvqjD0kYXLtFZTc0T/U6wHTPKyIjb+MdN7DFIIX6hgdBEpWmfPA==", "dev": true }, "webpack": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.61.0.tgz", - "integrity": "sha512-fPdTuaYZ/GMGFm4WrPi2KRCqS1vDp773kj9S0iI5Uc//5cszsFEDgHNaX4Rj1vobUiU1dFIV3mA9k1eHeluFpw==", + "version": "5.64.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.64.0.tgz", + "integrity": "sha512-UclnN24m054HaPC45nmDEosX6yXWD+UGC12YtUs5i356DleAUGMDC9LBAw37xRRfgPKYIdCYjGA7RZ1AA+ZnGg==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.0", @@ -16672,12 +16677,6 @@ "buffer-crc32": "~0.2.3" } }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - }, "zwitch": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", diff --git a/package.json b/package.json index c500a0616..589d92a6f 100644 --- a/package.json +++ b/package.json @@ -5,21 +5,21 @@ "@babel/plugin-transform-modules-commonjs": "^7.16.0", "@babel/plugin-transform-runtime": "^7.16.0", "@babel/preset-env": "^7.16.0", - "@babel/runtime": "^7.16.0", + "@babel/runtime": "^7.16.3", "@javascript-obfuscator/escodegen": "2.2.2", "acorn": "^8.5.0", "autoprefixer": "^10.4.0", "babel-loader": "^8.2.3", "canvas": "^2.8.0", - "core-js": "^3.19.0", + "core-js": "^3.19.1", "cross-env": "^7.0.3", "dommatrix": "^0.0.6", - "es-module-shims": "^1.3.0", - "eslint": "^8.1.0", + "es-module-shims": "^1.3.1", + "eslint": "^8.2.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-fetch-options": "^0.0.5", "eslint-plugin-html": "^6.2.0", - "eslint-plugin-import": "^2.25.2", + "eslint-plugin-import": "^2.25.3", "eslint-plugin-json": "^3.1.0", "eslint-plugin-mozilla": "^2.11.1", "eslint-plugin-no-unsanitized": "^3.2.0", @@ -56,8 +56,8 @@ "typogr": "^0.6.8", "vinyl": "^2.2.1", "vinyl-fs": "^3.0.3", - "web-streams-polyfill": "^3.1.1", - "webpack": "^5.61.0", + "web-streams-polyfill": "^3.2.0", + "webpack": "^5.64.0", "webpack-stream": "^7.0.0", "wintersmith": "^2.5.0", "yargs": "^17.2.1" From bd1e140e2a8c4be867ad18341d24be83e3a2e5b4 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 14 Nov 2021 10:20:54 +0100 Subject: [PATCH 2/6] Update the `dommatrix` package to the latest version --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 27e89d4ae..06e0c01a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3590,9 +3590,9 @@ } }, "dommatrix": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/dommatrix/-/dommatrix-0.0.6.tgz", - "integrity": "sha512-arWsB8xJsMDU/oSaz8W/ha8W65CJSNJGdFbIYJIuI3pUxT+wtb4vcr8OxNMU+R+Cz6Ad4j+BfwBjzC74AZkytQ==", + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/dommatrix/-/dommatrix-0.0.8.tgz", + "integrity": "sha512-yac0gE+HqiXznHip03UYYc6sVWl22rVuDzH9GCKkn3jMadEDELHb5sv6XndyVclTEDiPngZhWt4xFLpZXYYE2A==", "dev": true, "requires": { "@rollup/plugin-buble": "^0.21.3", @@ -13837,9 +13837,9 @@ } }, "source-map-support": { - "version": "0.5.19", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", - "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "version": "0.5.20", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.20.tgz", + "integrity": "sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw==", "dev": true, "requires": { "buffer-from": "^1.0.0", diff --git a/package.json b/package.json index 589d92a6f..c4dc4485c 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "canvas": "^2.8.0", "core-js": "^3.19.1", "cross-env": "^7.0.3", - "dommatrix": "^0.0.6", + "dommatrix": "^0.0.8", "es-module-shims": "^1.3.1", "eslint": "^8.2.0", "eslint-config-prettier": "^8.3.0", From 1dd74efb0fd68230ea8845397b7f1117983fcd65 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 14 Nov 2021 10:24:41 +0100 Subject: [PATCH 3/6] Update the `eslint-plugin-no-unsanitized` package to the latest version --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 06e0c01a3..439eccf7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4383,9 +4383,9 @@ } }, "eslint-plugin-no-unsanitized": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-3.2.0.tgz", - "integrity": "sha512-92opuXbjWmXcod94EyCKhp36V1QHLM/ArAST2ssgKOojALne0eZvSPfrg4oyr0EwTXvy0RJNe/Tkm33VkDUrKQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-4.0.0.tgz", + "integrity": "sha512-Wguc3EZS+7BJ/Pgu8C1/G86eXHUIRz4ZHEhPlwVkS42MbHEyfh8Wm+pDRVAg73EE0TR//SbjkPlHr93yLJT10g==", "dev": true }, "eslint-plugin-prettier": { diff --git a/package.json b/package.json index c4dc4485c..b6e3aa1f2 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "eslint-plugin-import": "^2.25.3", "eslint-plugin-json": "^3.1.0", "eslint-plugin-mozilla": "^2.11.1", - "eslint-plugin-no-unsanitized": "^3.2.0", + "eslint-plugin-no-unsanitized": "^4.0.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-sort-exports": "^0.6.0", "eslint-plugin-unicorn": "^37.0.1", From 04bdc26d3aa50a1ab4ed5eaec6c6743a43386fe5 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 14 Nov 2021 10:27:29 +0100 Subject: [PATCH 4/6] Update the `eslint-plugin-unicorn` package to the latest version --- package-lock.json | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 439eccf7e..839e06054 100644 --- a/package-lock.json +++ b/package-lock.json @@ -112,9 +112,9 @@ } }, "@babel/eslint-parser": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.15.8.tgz", - "integrity": "sha512-fYP7QFngCvgxjUuw8O057SVH5jCXsbFFOoE77CFDcvzwBVgTOkMD/L4mIC5Ud1xf8chK/no2fRbSSn1wvNmKuQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.16.3.tgz", + "integrity": "sha512-iB4ElZT0jAt7PKVaeVulOECdGe6UnmA/O0P9jlF5g5GBOwDVbna8AXhHRu4s27xQf6OkveyA8iTDv1jHdDejgQ==", "dev": true, "requires": { "eslint-scope": "^5.1.1", @@ -407,9 +407,9 @@ } }, "@babel/helper-validator-identifier": { - "version": "7.14.9", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz", - "integrity": "sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g==", + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", "dev": true }, "@babel/helper-validator-option": { @@ -4404,9 +4404,9 @@ "dev": true }, "eslint-plugin-unicorn": { - "version": "37.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-37.0.1.tgz", - "integrity": "sha512-E1jq5u9ojnadisJcPi+hMXTGSiIzkIUMDvWsBudsCGXvKUB2aNSU2TcfyW2/jAS5A4ryBXfzxLykMxX1EdluSQ==", + "version": "38.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-38.0.1.tgz", + "integrity": "sha512-eu4HCg7Bv43nk/hYZoWpLzRo668Nb7swQySn94aohn0heh9KLJ1GOFgVxJndLS8BploMGaClxgsyTNGJrP69yw==", "dev": true, "requires": { "@babel/helper-validator-identifier": "^7.14.9", diff --git a/package.json b/package.json index b6e3aa1f2..186bed979 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "eslint-plugin-no-unsanitized": "^4.0.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-sort-exports": "^0.6.0", - "eslint-plugin-unicorn": "^37.0.1", + "eslint-plugin-unicorn": "^38.0.1", "globals": "^13.12.0", "gulp": "^4.0.2", "gulp-postcss": "^9.0.1", From c47f5e81fe334568e618ec421b1269a9991c48e1 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 14 Nov 2021 10:38:28 +0100 Subject: [PATCH 5/6] Update l10n files --- l10n/cs/viewer.properties | 2 + l10n/el/viewer.properties | 1 + l10n/es-ES/viewer.properties | 2 + l10n/es-MX/viewer.properties | 2 + l10n/eu/viewer.properties | 2 + l10n/fi/viewer.properties | 2 + l10n/kk/viewer.properties | 2 + l10n/lt/viewer.properties | 2 + l10n/ne-NP/viewer.properties | 41 ++++++++++++ l10n/oc/viewer.properties | 2 + l10n/ru/viewer.properties | 2 + l10n/sc/viewer.properties | 119 +++++++++++++++++++++++++++++++++++ l10n/sl/viewer.properties | 2 + l10n/sq/viewer.properties | 9 +++ l10n/th/viewer.properties | 2 + 15 files changed, 192 insertions(+) create mode 100644 l10n/sc/viewer.properties diff --git a/l10n/cs/viewer.properties b/l10n/cs/viewer.properties index 894cc5eb4..341172cac 100644 --- a/l10n/cs/viewer.properties +++ b/l10n/cs/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Výběr textu cursor_hand_tool.title=Povolí nástroj ručička cursor_hand_tool_label=Nástroj ručička +scroll_page.title=Posouvat po stránkách +scroll_page_label=Posouvání po stránkách scroll_vertical.title=Použít svislé posouvání scroll_vertical_label=Svislé posouvání scroll_horizontal.title=Použít vodorovné posouvání diff --git a/l10n/el/viewer.properties b/l10n/el/viewer.properties index 2fcae930a..2525b3bce 100644 --- a/l10n/el/viewer.properties +++ b/l10n/el/viewer.properties @@ -61,6 +61,7 @@ cursor_text_select_tool_label=Εργαλείο επιλογής κειμένου cursor_hand_tool.title=Ενεργοποίηση εργαλείου χεριού cursor_hand_tool_label=Εργαλείο χεριού +scroll_page.title=Χρήση κύλισης σελίδας scroll_page_label=Κύλιση σελίδας scroll_vertical.title=Χρήση κάθετης κύλισης scroll_vertical_label=Κάθετη κύλιση diff --git a/l10n/es-ES/viewer.properties b/l10n/es-ES/viewer.properties index f5bdf9796..de4bbdf62 100644 --- a/l10n/es-ES/viewer.properties +++ b/l10n/es-ES/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Herramienta de selección de texto cursor_hand_tool.title=Activar herramienta de mano cursor_hand_tool_label=Herramienta de mano +scroll_page.title=Usar desplazamiento de página +scroll_page_label=Desplazamiento de página scroll_vertical.title=Usar desplazamiento vertical scroll_vertical_label=Desplazamiento vertical scroll_horizontal.title=Usar desplazamiento horizontal diff --git a/l10n/es-MX/viewer.properties b/l10n/es-MX/viewer.properties index 4ac214213..a44768d85 100644 --- a/l10n/es-MX/viewer.properties +++ b/l10n/es-MX/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Herramienta de selección de texto cursor_hand_tool.title=Activar la herramienta de mano cursor_hand_tool_label=Herramienta de mano +scroll_page.title=Usar desplazamiento de página +scroll_page_label=Desplazamiento de página scroll_vertical.title=Usar desplazamiento vertical scroll_vertical_label=Desplazamiento vertical scroll_horizontal.title=Usar desplazamiento horizontal diff --git a/l10n/eu/viewer.properties b/l10n/eu/viewer.properties index 5a379dc5d..aa2bef792 100644 --- a/l10n/eu/viewer.properties +++ b/l10n/eu/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Testuaren hautapen tresna cursor_hand_tool.title=Gaitu eskuaren tresna cursor_hand_tool_label=Eskuaren tresna +scroll_page.title=Erabili orriaren korritzea +scroll_page_label=Orriaren korritzea scroll_vertical.title=Erabili korritze bertikala scroll_vertical_label=Korritze bertikala scroll_horizontal.title=Erabili korritze horizontala diff --git a/l10n/fi/viewer.properties b/l10n/fi/viewer.properties index a5482800e..23496e93b 100644 --- a/l10n/fi/viewer.properties +++ b/l10n/fi/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Tekstinvalintatyökalu cursor_hand_tool.title=Käytä käsityökalua cursor_hand_tool_label=Käsityökalu +scroll_page.title=Käytä sivun vieritystä +scroll_page_label=Sivun vieritys scroll_vertical.title=Käytä pystysuuntaista vieritystä scroll_vertical_label=Pystysuuntainen vieritys scroll_horizontal.title=Käytä vaakasuuntaista vieritystä diff --git a/l10n/kk/viewer.properties b/l10n/kk/viewer.properties index a29c5d85b..456504456 100644 --- a/l10n/kk/viewer.properties +++ b/l10n/kk/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Мәтінді таңдау құралы cursor_hand_tool.title=Қол құралын іске қосу cursor_hand_tool_label=Қол құралы +scroll_page.title=Беттерді айналдыруды пайдалану +scroll_page_label=Беттерді айналдыру scroll_vertical.title=Вертикалды айналдыруды қолдану scroll_vertical_label=Вертикалды айналдыру scroll_horizontal.title=Горизонталды айналдыруды қолдану diff --git a/l10n/lt/viewer.properties b/l10n/lt/viewer.properties index 5577f6d59..6188a92d1 100644 --- a/l10n/lt/viewer.properties +++ b/l10n/lt/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Teksto žymėjimo įrankis cursor_hand_tool.title=Įjungti vilkimo įrankį cursor_hand_tool_label=Vilkimo įrankis +scroll_page.title=Naudoti puslapio slinkimą +scroll_page_label=Puslapio slinkimas scroll_vertical.title=Naudoti vertikalų slinkimą scroll_vertical_label=Vertikalus slinkimas scroll_horizontal.title=Naudoti horizontalų slinkimą diff --git a/l10n/ne-NP/viewer.properties b/l10n/ne-NP/viewer.properties index 1e30fece8..004416745 100644 --- a/l10n/ne-NP/viewer.properties +++ b/l10n/ne-NP/viewer.properties @@ -61,6 +61,16 @@ cursor_text_select_tool_label=पाठ चयन उपकरण cursor_hand_tool.title=हाते उपकरण सक्षम गर्नुहोस् cursor_hand_tool_label=हाते उपकरण +scroll_vertical.title=ठाडो स्क्रोलिङ्ग प्रयोग गर्नुहोस् +scroll_vertical_label=ठाडो स्क्र्रोलिङ्ग +scroll_horizontal.title=तेर्सो स्क्रोलिङ्ग प्रयोग गर्नुहोस् +scroll_horizontal_label=तेर्सो स्क्रोलिङ्ग +scroll_wrapped.title=लिपि स्क्रोलिङ्ग प्रयोग गर्नुहोस् +scroll_wrapped_label=लिपि स्क्रोलिङ्ग + +spread_none.title=पृष्ठ स्प्रेडमा सामेल हुनुहुन्न +spread_none_label=स्प्रेड छैन + # Document properties dialog box document_properties.title=कागजात विशेषताहरू... document_properties_label=कागजात विशेषताहरू... @@ -85,6 +95,23 @@ document_properties_creator=सर्जक: document_properties_producer=PDF निर्माता: document_properties_version=PDF संस्करण document_properties_page_count=पृष्ठ गणना: +document_properties_page_size=पृष्ठ आकार: +document_properties_page_size_unit_inches=इन्च +document_properties_page_size_unit_millimeters=मि.मि. +document_properties_page_size_orientation_portrait=पोट्रेट +document_properties_page_size_orientation_landscape=परिदृश्य +document_properties_page_size_name_letter=अक्षर +document_properties_page_size_name_legal=कानूनी +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized_yes=हो +document_properties_linearized_no=होइन document_properties_close=बन्द गर्नुहोस् print_progress_message=मुद्रणका लागि कागजात तयारी गरिदै… @@ -107,6 +134,7 @@ thumbs_label=थम्बनेलहरू findbar.title=कागजातमा फेला पार्नुहोस् findbar_label=फेला पार्नुहोस् +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. # Thumbnails panel item (tooltip and alt text for images) # LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page # number. @@ -124,8 +152,17 @@ find_next.title=यस वाक्यांशको पछिल्लो घ find_next_label=अर्को find_highlight=सबै हाइलाइट गर्ने find_match_case_label=केस जोडा मिलाउनुहोस् +find_entire_word_label=पुरा शब्दहरु find_reached_top=पृष्ठको शिर्षमा पुगीयो, तलबाट जारी गरिएको थियो find_reached_bottom=पृष्ठको अन्त्यमा पुगीयो, शिर्षबाट जारी गरिएको थियो +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. find_not_found=वाक्यांश फेला परेन # Error panel labels @@ -156,11 +193,15 @@ page_scale_actual=वास्तविक आकार # numerical scale value. page_scale_percent={{scale}}% +# Loading indicator messages loading_error=यो PDF लोड गर्दा एउटा त्रुटि देखापर्‍यो। invalid_file_error=अवैध वा दुषित PDF फाइल। missing_file_error=हराईरहेको PDF फाइल। unexpected_response_error=अप्रत्याशित सर्भर प्रतिक्रिया। +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. + # LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. # "{{type}}" will be replaced with an annotation type from a list defined in # the PDF spec (32000-1:2008 Table 169 – Annotation types). diff --git a/l10n/oc/viewer.properties b/l10n/oc/viewer.properties index b3ee54f9a..219de4de2 100644 --- a/l10n/oc/viewer.properties +++ b/l10n/oc/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Aisina de seleccion de tèxte cursor_hand_tool.title=Activar l’aisina man cursor_hand_tool_label=Aisina man +scroll_page.title=Activar lo desfilament per pagina +scroll_page_label=Desfilament per pagina scroll_vertical.title=Utilizar lo desfilament vertical scroll_vertical_label=Desfilament vertical scroll_horizontal.title=Utilizar lo desfilament orizontal diff --git a/l10n/ru/viewer.properties b/l10n/ru/viewer.properties index e015623c1..8f817bd10 100644 --- a/l10n/ru/viewer.properties +++ b/l10n/ru/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Инструмент «Выделение текс cursor_hand_tool.title=Включить Инструмент «Рука» cursor_hand_tool_label=Инструмент «Рука» +scroll_page.title=Использовать прокрутку страниц +scroll_page_label=Прокрутка страниц scroll_vertical.title=Использовать вертикальную прокрутку scroll_vertical_label=Вертикальная прокрутка scroll_horizontal.title=Использовать горизонтальную прокрутку diff --git a/l10n/sc/viewer.properties b/l10n/sc/viewer.properties new file mode 100644 index 000000000..00702225b --- /dev/null +++ b/l10n/sc/viewer.properties @@ -0,0 +1,119 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous_label=S'ischeda chi b'est primu +next_label=Imbeniente + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=Pàgina +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. + +zoom_out.title=Impitica +zoom_out_label=Impitica +zoom_in.title=Ismànnia +zoom_in_label=Ismànnia +zoom.title=Ismànnia +open_file.title=Aberi s'archìviu +open_file_label=Abertu +print.title=Imprenta +print_label=Imprenta +download.title=Iscàrriga +download_label=Iscàrriga + +# Secondary toolbar and context menu +tools.title=Istrumentos +tools_label=Istrumentos + + + + +# Document properties dialog box +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_subject=Ogetu: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_close=Serra + +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_close=Cantzella + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +attachments_label=Alliongiados + +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. + +# Find panel button title and messages +find_previous_label=S'ischeda chi b'est primu +find_next_label=Imbeniente +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. + +# Error panel labels +error_close=Serra +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number + +# Predefined zoom values +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. + +# Loading indicator messages + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +password_invalid=Sa crae no est curreta. Torra·bi a proare. +password_ok=Andat bene +password_cancel=Cantzella + diff --git a/l10n/sl/viewer.properties b/l10n/sl/viewer.properties index a6e725efa..723f75dab 100644 --- a/l10n/sl/viewer.properties +++ b/l10n/sl/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Orodje za izbor besedila cursor_hand_tool.title=Omogoči roko cursor_hand_tool_label=Roka +scroll_page.title=Uporabi drsenje po strani +scroll_page_label=Drsenje po strani scroll_vertical.title=Uporabi navpično drsenje scroll_vertical_label=Navpično drsenje scroll_horizontal.title=Uporabi vodoravno drsenje diff --git a/l10n/sq/viewer.properties b/l10n/sq/viewer.properties index 281c25e0f..3ff4e4d24 100644 --- a/l10n/sq/viewer.properties +++ b/l10n/sq/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=Mjet Përzgjedhjeje Teksti cursor_hand_tool.title=Aktivizo Mjetin Dorë cursor_hand_tool_label=Mjeti Dorë +scroll_page.title=Përdor Rrëshqitje Në Faqe +scroll_page_label=Rrëshqitje Në Faqe scroll_vertical.title=Përdor Rrëshqitje Vertikale scroll_vertical_label=Rrëshqitje Vertikale scroll_horizontal.title=Përdor Rrëshqitje Horizontale @@ -112,6 +114,7 @@ document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}}) # LOCALIZATION NOTE (document_properties_linearized): The linearization status of # the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=Parje e Shpjetë në Web: document_properties_linearized_yes=Po document_properties_linearized_no=Jo document_properties_close=Mbylleni @@ -136,10 +139,14 @@ layers.title=Shfaq Shtresa (dyklikoni që të rikthehen krejt shtresat në gjend layers_label=Shtresa thumbs.title=Shfaqni Miniatura thumbs_label=Miniatura +current_outline_item.title=Gjej Objektin e Tanishëm të Përvijuar +current_outline_item_label=Objekt i Tanishëm i Përvijuar findbar.title=Gjeni në Dokument findbar_label=Gjej additional_layers=Shtresa Shtesë +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark=Faqja {{page}} # Thumbnails panel item (tooltip and alt text for images) # LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page # number. @@ -211,6 +218,8 @@ page_scale_actual=Madhësia Faktike # numerical scale value. page_scale_percent={{scale}}% +# Loading indicator messages +loading=Po ngarkohet… loading_error=Ndodhi një gabim gjatë ngarkimit të PDF-së. invalid_file_error=Kartelë PDF e pavlefshme ose e dëmtuar. missing_file_error=Kartelë PDF që mungon. diff --git a/l10n/th/viewer.properties b/l10n/th/viewer.properties index 78e859654..c48a7115e 100644 --- a/l10n/th/viewer.properties +++ b/l10n/th/viewer.properties @@ -61,6 +61,8 @@ cursor_text_select_tool_label=เครื่องมือการเลื cursor_hand_tool.title=เปิดใช้งานเครื่องมือมือ cursor_hand_tool_label=เครื่องมือมือ +scroll_page.title=ใช้การเลื่อนหน้า +scroll_page_label=การเลื่อนหน้า scroll_vertical.title=ใช้การเลื่อนแนวตั้ง scroll_vertical_label=การเลื่อนแนวตั้ง scroll_horizontal.title=ใช้การเลื่อนแนวนอน From a54bed49637503464e1fc955e030640dee5381cb Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 14 Nov 2021 10:40:32 +0100 Subject: [PATCH 6/6] Enable the ESLint `no-loss-of-precision` rule Please refer to https://eslint.org/docs/rules/no-loss-of-precision --- .eslintrc | 1 + src/core/colorspace.js | 2 +- src/core/jpg.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index d7782481d..ae3143d3d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -71,6 +71,7 @@ "no-inner-declarations": ["error", "functions"], "no-invalid-regexp": "error", "no-irregular-whitespace": "error", + "no-loss-of-precision": "error", "no-obj-calls": "error", "no-promise-executor-return": "error", "no-regex-spaces": "error", diff --git a/src/core/colorspace.js b/src/core/colorspace.js index b07be2a8f..232ceb60a 100644 --- a/src/core/colorspace.js +++ b/src/core/colorspace.js @@ -947,7 +947,7 @@ const CalGrayCS = (function CalGrayCSClosure() { const L = cs.YW * AG; // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4. // Convert values to rgb range [0, 255]. - const val = Math.max(295.8 * L ** 0.333333333333333333 - 40.8, 0); + const val = Math.max(295.8 * L ** 0.3333333333333333 - 40.8, 0); dest[destOffset] = val; dest[destOffset + 1] = val; dest[destOffset + 2] = val; diff --git a/src/core/jpg.js b/src/core/jpg.js index 5084181ca..6b53131cc 100644 --- a/src/core/jpg.js +++ b/src/core/jpg.js @@ -1349,7 +1349,7 @@ class JpegImage { (0.00006834815998235662 * y + 0.00015168452363460973 * k - 0.09751927774728933) - - k * (0.00031891311758832814 * k + 0.7364883807733168); + k * (0.0003189131175883281 * k + 0.7364883807733168); data[offset++] = 255 +