MM-56996 Fix nan dependency (#2966)

* Fix nan dependency

* Bump electron-mocha

* Upgrade Playwright, manage nan fix with patch-package

* Automate package patching in postinstall step
This commit is contained in:
Mario Vitale
2024-02-29 08:48:42 +01:00
committed by GitHub
parent 4609a6c89d
commit b1ced06feb
3 changed files with 13408 additions and 42073 deletions

24
patches/nan+2.18.0.patch Normal file
View File

@@ -0,0 +1,24 @@
diff --git a/node_modules/nan/nan.h b/node_modules/nan/nan.h
index 2a68349..9c75907 100644
--- a/node_modules/nan/nan.h
+++ b/node_modules/nan/nan.h
@@ -2550,7 +2550,9 @@ NAN_DEPRECATED inline void SetAccessor(
, getter_
, setter_
, obj
+#if !defined(V8_MAJOR_VERSION) || V8_MAJOR_VERSION < 12
, settings
+#endif
, attribute
#if (NODE_MODULE_VERSION < NODE_16_0_MODULE_VERSION)
, signature
@@ -2596,7 +2598,9 @@ inline void SetAccessor(
, getter_
, setter_
, obj
+#if !defined(V8_MAJOR_VERSION) || V8_MAJOR_VERSION < 12
, settings
+#endif
, attribute
);
}