mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Account for formatting changes in Prettier version 2.3.0
With the exception of one tweaked `eslint-disable` comment, in `web/generic_scripting.js`, this patch was generated automatically using `gulp lint --fix`. Please find additional information at: - https://github.com/prettier/prettier/releases/tag/2.3.0 - https://prettier.io/blog/2021/05/09/2.3.0.html
This commit is contained in:
parent
30908451b4
commit
8943bcd3c3
28 changed files with 127 additions and 192 deletions
12
gulpfile.js
12
gulpfile.js
|
@ -756,8 +756,8 @@ gulp.task("cmaps", function (done) {
|
|||
}
|
||||
});
|
||||
|
||||
const compressCmaps = require("./external/cmapscompress/compress.js")
|
||||
.compressCmaps;
|
||||
const compressCmaps =
|
||||
require("./external/cmapscompress/compress.js").compressCmaps;
|
||||
compressCmaps(CMAP_INPUT, VIEWER_CMAP_OUTPUT, true);
|
||||
done();
|
||||
});
|
||||
|
@ -1415,7 +1415,8 @@ function buildLibHelper(bundleDefines, inputStream, outputDir) {
|
|||
babelPluginReplaceNonWebPackRequire,
|
||||
],
|
||||
}).code;
|
||||
const removeCjsSrc = /^(var\s+\w+\s*=\s*(_interopRequireDefault\()?require\(".*?)(?:\/src)(\/[^"]*"\)\)?;)$/gm;
|
||||
const removeCjsSrc =
|
||||
/^(var\s+\w+\s*=\s*(_interopRequireDefault\()?require\(".*?)(?:\/src)(\/[^"]*"\)\)?;)$/gm;
|
||||
content = content.replace(removeCjsSrc, (all, prefix, interop, suffix) => {
|
||||
return prefix + suffix;
|
||||
});
|
||||
|
@ -2176,9 +2177,8 @@ gulp.task(
|
|||
let reason = process.env.PDFJS_UPDATE_REASON;
|
||||
// Attempt to work-around the broken link, see https://github.com/mozilla/pdf.js/issues/10391
|
||||
if (typeof reason === "string") {
|
||||
const reasonParts = /^(See )(mozilla\/pdf\.js)@tags\/(v\d+\.\d+\.\d+)\s*$/.exec(
|
||||
reason
|
||||
);
|
||||
const reasonParts =
|
||||
/^(See )(mozilla\/pdf\.js)@tags\/(v\d+\.\d+\.\d+)\s*$/.exec(reason);
|
||||
|
||||
if (reasonParts) {
|
||||
reason =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue