[MM-61271] Upgrade to Electron v33.0.2 (#3181)
* [MM-61271] Upgrade to Electron v33.0.2 * Fix node-abi * Fix and patch nan
This commit is contained in:
16
e2e/package-lock.json
generated
16
e2e/package-lock.json
generated
@@ -12,12 +12,14 @@
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "3.529.0",
|
||||
"@aws-sdk/lib-storage": "3.445.0",
|
||||
"@electron/rebuild": "^3.7.0",
|
||||
"@electron/rebuild": "3.7.0",
|
||||
"axios": "1.7.4",
|
||||
"chai": "4.3.6",
|
||||
"electron-mocha": "12.2.0",
|
||||
"fast-xml-parser": "^4.4.1",
|
||||
"mochawesome": "7.1.3",
|
||||
"nan": "2.22.0",
|
||||
"node-abi": "3.71.0",
|
||||
"playwright": "1.42.0",
|
||||
"ps-node": "0.1.6",
|
||||
"recursive-readdir": "2.2.3",
|
||||
@@ -3504,9 +3506,9 @@
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||
},
|
||||
"node_modules/nan": {
|
||||
"version": "2.20.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.20.0.tgz",
|
||||
"integrity": "sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw=="
|
||||
"version": "2.22.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.22.0.tgz",
|
||||
"integrity": "sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw=="
|
||||
},
|
||||
"node_modules/napi-build-utils": {
|
||||
"version": "1.0.2",
|
||||
@@ -3523,9 +3525,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/node-abi": {
|
||||
"version": "3.65.0",
|
||||
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.65.0.tgz",
|
||||
"integrity": "sha512-ThjYBfoDNr08AWx6hGaRbfPwxKV9kVzAzOzlLKbk2CuqXE2xnCh+cbAGnwM3t8Lq4v9rUB7VfondlkBckcJrVA==",
|
||||
"version": "3.71.0",
|
||||
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.71.0.tgz",
|
||||
"integrity": "sha512-SZ40vRiy/+wRTf21hxkkEjPJZpARzUMVcJoQse2EF8qkUWbbO2z7vd5oA/H6bVH6SZQ5STGcu0KRDS7biNRfxw==",
|
||||
"dependencies": {
|
||||
"semver": "^7.3.5"
|
||||
},
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"test": "electron-mocha --reporter mochawesome dist/e2e_bundle.js",
|
||||
"test:performance": "electron-mocha --reporter json --reporter-option output=./performance/perf-test-report.json dist/e2e_bundle.js",
|
||||
"send-report": "node ./save_report.js",
|
||||
"postinstall": "cross-env CL='/std:c++17' electron-rebuild -m ./node_modules/robotjs"
|
||||
"postinstall": "patch-package && cross-env CL='/std:c++17' electron-rebuild -m ./node_modules/robotjs"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -32,6 +32,8 @@
|
||||
"electron-mocha": "12.2.0",
|
||||
"fast-xml-parser": "^4.4.1",
|
||||
"mochawesome": "7.1.3",
|
||||
"nan": "2.22.0",
|
||||
"node-abi": "3.71.0",
|
||||
"playwright": "1.42.0",
|
||||
"ps-node": "0.1.6",
|
||||
"recursive-readdir": "2.2.3",
|
||||
|
13
e2e/patches/nan+2.22.0.patch
Normal file
13
e2e/patches/nan+2.22.0.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/node_modules/nan/nan_scriptorigin.h b/node_modules/nan/nan_scriptorigin.h
|
||||
index 04e55cf..9949631 100644
|
||||
--- a/node_modules/nan/nan_scriptorigin.h
|
||||
+++ b/node_modules/nan/nan_scriptorigin.h
|
||||
@@ -13,7 +13,7 @@ class ScriptOrigin : public v8::ScriptOrigin {
|
||||
public:
|
||||
|
||||
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 11 \
|
||||
- && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION > 7)
|
||||
+ && defined(V8_MINOR_VERSION) && (V8_MAJOR_VERSION > 12 || (V8_MAJOR_VERSION == 11 && V8_MINOR_VERSION > 7)))
|
||||
explicit ScriptOrigin(v8::Local<v8::Value> name) :
|
||||
v8::ScriptOrigin(name) {}
|
||||
|
Reference in New Issue
Block a user