Compare commits

Author SHA1 Message Date
dependabot[bot] 22485ccf71 chore(deps): bump commander from 15.0.0 to 15.1.0
Bumps [commander](https://github.com/tj/commander.js) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v15.0.0...v15.1.0)

---
updated-dependencies:
- dependency-name: commander
  dependency-version: 15.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-11-16 22:45:09 +00:00
√(noham)² 640b5d830c Fix cross-origin image rendering 2026-11-11 00:37:08 +01:00
√(noham)² eaff0ca975 Merge pull request #18 from NohamR/dependabot/npm_and_yarn/puppeteer-25.16.0
chore(deps): bump puppeteer from 25.14.0 to 25.16.0
2026-10-27 11:33:25 +01:00
dependabot[bot] 6d4d814ff0 chore(deps): bump puppeteer from 25.14.0 to 25.16.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 25.14.0 to 25.16.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v25.14.0...puppeteer-v25.16.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-version: 25.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-26 22:45:28 +00:00
3 changed files with 34 additions and 25 deletions

No files matched your search

+23 -23
View File
@@ -8,10 +8,10 @@
"name": "pdfy",
"version": "1.0.0",
"dependencies": {
"commander": "^15.0.0",
"commander": "^15.1.0",
"pino": "^10.4.0",
"pino-pretty": "^13.2.0",
"puppeteer": "^25.14.0"
"puppeteer": "^25.16.0"
}
},
"node_modules/@pinojs/redact": {
@@ -21,12 +21,12 @@
"license": "MIT"
},
"node_modules/@puppeteer/browsers": {
"version": "3.2.5",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.2.5.tgz",
"integrity": "sha512-UoCo3Pynbm37aLEEoydSiG+t24ui7sLD40+07CKxzxNy4PpSowJMkvlLIiV67XjP1lMVynhQVnuwlTABqBH8LQ==",
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.2.6.tgz",
"integrity": "sha512-MJP29gVoHznmqmwhH1tlZqzfeQ3aylTpSSa6WKZXtkwYUH02i9imBmWGTyZrbnAou5paX78SE4jMAUqnEPf8ug==",
"license": "Apache-2.0",
"dependencies": {
"modern-tar": "^0.8.5",
"modern-tar": "^0.8.6",
"yargs": "^18.0.0"
},
"bin": {
@@ -135,9 +135,9 @@
"license": "MIT"
},
"node_modules/commander": {
"version": "15.0.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz",
"integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==",
"version": "15.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-15.1.0.tgz",
"integrity": "sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==",
"license": "MIT",
"engines": {
"node": ">=22.12.0"
@@ -153,9 +153,9 @@
}
},
"node_modules/devtools-protocol": {
"version": "0.0.1696802",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1696802.tgz",
"integrity": "sha512-FO5/SENfvc2K8wRnWQflKcwuoTH4dBkXCWTQ9ebIWtuX8JM5+ZvCotaEmkfh21pO7TvIKGTM3hG4xFiq9WTwmg==",
"version": "0.0.1704951",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1704951.tgz",
"integrity": "sha512-GQhQOs9u/Mvm1zMtJIH872JS4AskuZdUSsPNPk4ChahtWAUqgz6atEtIsMt+nO7MqF1Ic4HxII/k8Cu36JivNg==",
"license": "BSD-3-Clause"
},
"node_modules/emoji-regex": {
@@ -381,17 +381,17 @@
}
},
"node_modules/puppeteer": {
"version": "25.14.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.14.0.tgz",
"integrity": "sha512-+s1Iqbl9DsGLOaQdgCQyhtgHZsF9hi4Iu8iuBqxzraxUXoRG1QkYQI0CA1/VsNK1gZWJfs50BL/oOb1L+Yz8Yg==",
"version": "25.16.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.16.0.tgz",
"integrity": "sha512-LOr3reYnxAYYfQkpopz1fQnL0LdvqhpR5U2Fu+QnwzTX2gpVTHsn91UETo5NNC1md2/oC54Zu1ChBXgZDNSP1A==",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "3.2.5",
"@puppeteer/browsers": "3.2.6",
"chromium-bidi": "157.0.8090-0",
"devtools-protocol": "0.0.1696802",
"devtools-protocol": "0.0.1704951",
"lilconfig": "^3.1.3",
"puppeteer-core": "25.14.0",
"puppeteer-core": "25.16.0",
"typed-query-selector": "^2.12.3"
},
"bin": {
@@ -402,14 +402,14 @@
}
},
"node_modules/puppeteer-core": {
"version": "25.14.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.14.0.tgz",
"integrity": "sha512-LQitnes3tBeVbdZ7V/4iwJPLZGgkl9uBVK0W7YYMh68j/3Y9eNuvj4yl+Fdo7zN0SuajOMrhd7aPj3DifK8k6A==",
"version": "25.16.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.16.0.tgz",
"integrity": "sha512-VA5Pf54N8shfopNkZZXCdiiwfnnY8ZJYAMqFQRhlH5mGUhfwf53Ar770GPtdpTDLUqvQeYpIBtC9/G2Jij2IJw==",
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "3.2.5",
"@puppeteer/browsers": "3.2.6",
"chromium-bidi": "157.0.8090-0",
"devtools-protocol": "0.0.1696802",
"devtools-protocol": "0.0.1704951",
"typed-query-selector": "^2.12.3",
"webdriver-bidi-protocol": "1.0.1",
"ws": "^8.22.0"
+2 -2
View File
@@ -25,9 +25,9 @@
]
},
"dependencies": {
"commander": "^15.0.0",
"commander": "^15.1.0",
"pino": "^10.4.0",
"pino-pretty": "^13.2.0",
"puppeteer": "^25.14.0"
"puppeteer": "^25.16.0"
}
}
+9
View File
@@ -143,6 +143,15 @@ export async function extractRenderedContent (page) {
doc.documentElement.setAttribute('data-mode', dataMode)
}
// The article HTML is later re-rendered from an opaque origin (about:blank),
// so resources become cross-origin. Sites rarely send CORS headers for
// images, which makes images with `crossorigin="anonymous"` fail to load
// (and `integrity` checks reject them). Strip both so images render.
for (const el of doc.querySelectorAll('[crossorigin], [integrity]')) {
el.removeAttribute('crossorigin')
el.removeAttribute('integrity')
}
const cs = getComputedStyle(doc.documentElement)
const cssVars = ['--fg', '--bg', '--bd', '--lk', '--hg']
const inlineVars = cssVars