mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-23 22:15:52 +00:00
commit
5a69043aad
16
package-lock.json
generated
16
package-lock.json
generated
@ -48,7 +48,7 @@
|
|||||||
"eslint-plugin-unicorn": "^48.0.1",
|
"eslint-plugin-unicorn": "^48.0.1",
|
||||||
"fflate": "^0.8.2",
|
"fflate": "^0.8.2",
|
||||||
"mocha": "^11.7.1",
|
"mocha": "^11.7.1",
|
||||||
"playwright": "^1.55.0",
|
"playwright": "^1.56.0",
|
||||||
"rollup": "^4.48.1",
|
"rollup": "^4.48.1",
|
||||||
"sinon": "^21.0.0",
|
"sinon": "^21.0.0",
|
||||||
"tsx": "^4.20.5",
|
"tsx": "^4.20.5",
|
||||||
@ -9747,13 +9747,13 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/playwright": {
|
"node_modules/playwright": {
|
||||||
"version": "1.55.0",
|
"version": "1.56.0",
|
||||||
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.55.0.tgz",
|
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.56.0.tgz",
|
||||||
"integrity": "sha512-sdCWStblvV1YU909Xqx0DhOjPZE4/5lJsIS84IfN9dAZfcl/CIZ5O8l3o0j7hPMjDvqoTF8ZUcc+i/GL5erstA==",
|
"integrity": "sha512-X5Q1b8lOdWIE4KAoHpW3SE8HvUB+ZZsUoN64ZhjnN8dOb1UpujxBtENGiZFE+9F/yhzJwYa+ca3u43FeLbboHA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "1.55.0"
|
"playwright-core": "1.56.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@ -9766,9 +9766,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/playwright-core": {
|
"node_modules/playwright-core": {
|
||||||
"version": "1.55.0",
|
"version": "1.56.0",
|
||||||
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.0.tgz",
|
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.56.0.tgz",
|
||||||
"integrity": "sha512-GvZs4vU3U5ro2nZpeiwyb0zuFaqb9sUiAJuyrWpcGouD8y9/HLgGbNRjIph7zU9D3hnPaisMl9zG9CgFi/biIg==",
|
"integrity": "sha512-1SXl7pMfemAMSDn5rkPeZljxOCYAmQnYLBTExuh6E8USHXGSX3dx6lYZN/xPpTz1vimXmPA9CDnILvmJaB8aSQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
@ -102,7 +102,7 @@
|
|||||||
"eslint-plugin-unicorn": "^48.0.1",
|
"eslint-plugin-unicorn": "^48.0.1",
|
||||||
"fflate": "^0.8.2",
|
"fflate": "^0.8.2",
|
||||||
"mocha": "^11.7.1",
|
"mocha": "^11.7.1",
|
||||||
"playwright": "^1.55.0",
|
"playwright": "^1.56.0",
|
||||||
"rollup": "^4.48.1",
|
"rollup": "^4.48.1",
|
||||||
"sinon": "^21.0.0",
|
"sinon": "^21.0.0",
|
||||||
"tsx": "^4.20.5",
|
"tsx": "^4.20.5",
|
||||||
|
|||||||
@ -243,8 +243,12 @@ export default () => describe('Packet', function() {
|
|||||||
cryptCallsActive--;
|
cryptCallsActive--;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isChromeV141OrAbove = () => typeof window !== 'undefined' && window.navigator.userAgent.match(/Chrome/) && /Chrome\/([0-9.]+)/.exec(navigator.userAgent)[1].split('.')[0] >= 141;
|
||||||
cryptStub.onCall(1).callsFake(function() {
|
cryptStub.onCall(1).callsFake(function() {
|
||||||
expect(cryptCallsActive).to.equal(1);
|
// Chromium disabled some async WebCrypto operations in v141 .
|
||||||
|
// Context: https://github.com/w3c/webcrypto/issues/389#issuecomment-3136298597 .
|
||||||
|
expect(cryptCallsActive).to.equal(isChromeV141OrAbove() ? 0 : 1);
|
||||||
return crypt.apply(this, arguments);
|
return crypt.apply(this, arguments);
|
||||||
});
|
});
|
||||||
cryptStub.callThrough();
|
cryptStub.callThrough();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user