Update npm packages

Note that the Prettier update made it possible to move a couple of comments after `default:`-cases back to their original/intended positions, please see https://prettier.io/blog/2022/03/16/2.6.0.html
This commit is contained in:
Jonas Jenwald 2022-03-20 10:36:11 +01:00
parent f017f295ec
commit 73d2ddac0d
4 changed files with 330 additions and 398 deletions

688
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +1,33 @@
{
"name": "pdf.js",
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
"@babel/core": "^7.17.8",
"@babel/plugin-transform-modules-commonjs": "^7.17.7",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/runtime": "^7.17.2",
"@babel/runtime": "^7.17.8",
"@javascript-obfuscator/escodegen": "2.3.0",
"acorn": "^8.7.0",
"autoprefixer": "^10.4.2",
"autoprefixer": "^10.4.4",
"babel-loader": "^8.2.3",
"caniuse-lite": "^1.0.30001313",
"canvas": "^2.9.0",
"caniuse-lite": "^1.0.30001319",
"canvas": "^2.9.1",
"core-js": "^3.21.1",
"cross-env": "^7.0.3",
"dommatrix": "^0.0.24",
"es-module-shims": "^1.4.7",
"eslint": "^8.10.0",
"es-module-shims": "1.4.7",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-fetch-options": "^0.0.5",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-mozilla": "^2.11.1",
"eslint-plugin-mozilla": "^2.11.3",
"eslint-plugin-no-unsanitized": "^4.0.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-sort-exports": "^0.6.0",
"eslint-plugin-unicorn": "^41.0.0",
"globals": "^13.12.1",
"eslint-plugin-unicorn": "^41.0.1",
"globals": "^13.13.0",
"gulp": "^4.0.2",
"gulp-postcss": "^9.0.1",
"gulp-rename": "^2.0.0",
@ -39,19 +39,19 @@
"merge-stream": "^2.0.0",
"mkdirp": "^1.0.4",
"needle": "^3.0.0",
"postcss": "^8.4.7",
"postcss": "^8.4.12",
"postcss-dir-pseudo-class": "^6.0.4",
"postcss-logical": "^5.0.4",
"prettier": "^2.5.1",
"puppeteer": "^13.4.1",
"prettier": "^2.6.0",
"puppeteer": "^13.5.1",
"rimraf": "^3.0.2",
"streamqueue": "^1.1.2",
"stylelint": "^14.5.3",
"stylelint": "^14.6.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-prettier": "^2.0.0",
"systemjs": "^0.21.6",
"systemjs-plugin-babel": "^0.0.25",
"terser": "^5.12.0",
"terser": "^5.12.1",
"through2": "^4.0.2",
"ttest": "^3.0.0",
"typescript": "^4.6.2",
@ -62,7 +62,7 @@
"webpack": "^5.70.0",
"webpack-stream": "^7.0.0",
"wintersmith": "^2.5.0",
"yargs": "^17.3.1"
"yargs": "^17.4.0"
},
"scripts": {
"postinstall": "cross-env PUPPETEER_PRODUCT=firefox node node_modules/puppeteer/install.js"

View File

@ -3374,8 +3374,7 @@ class PartialEvaluator {
}
}
break;
default:
// 'uniXXXX'/'uXXXX{XX}' glyphs
default: // 'uniXXXX'/'uXXXX{XX}' glyphs
const unicode = getUnicodeForGlyph(glyphName, glyphsUnicodeMap);
if (unicode !== -1) {
code = unicode;

View File

@ -156,8 +156,7 @@ class Parser {
}
this.shift();
return dict;
default:
// simple object
default: // simple object
return buf1;
}
}