react-native-macos 0.66.54 → 0.66.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTAppearance.mm +2 -6
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/local-cli/cli.js +0 -0
- package/package.json +5 -3
- package/template/package.json +1 -1
- package/Libraries/.npmignore +0 -1
- package/ReactAndroid/.npmignore +0 -5
- package/ReactAndroid/src/main/jni/first-party/fbjni/.gitignore +0 -2
- package/ReactCommon/hermes/inspector/tools/msggen/.gitignore +0 -3
package/React/Base/RCTVersion.m
CHANGED
|
@@ -81,11 +81,7 @@ NSString *RCTColorSchemePreference(NSAppearance *appearance)
|
|
|
81
81
|
return RCTAppearanceColorSchemeLight;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
appearance = appearance ?: [NSAppearance currentDrawingAppearance];
|
|
86
|
-
} else {
|
|
87
|
-
appearance = appearance ?: [NSAppearance currentAppearance];
|
|
88
|
-
}
|
|
84
|
+
appearance = appearance ?: [NSApp effectiveAppearance];
|
|
89
85
|
NSAppearanceName appearanceName = [appearance bestMatchFromAppearancesWithNames:@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]];
|
|
90
86
|
return appearances[appearanceName] ?: RCTAppearanceColorSchemeLight;
|
|
91
87
|
}
|
|
@@ -115,7 +111,7 @@ RCT_EXPORT_MODULE(Appearance)
|
|
|
115
111
|
return std::make_shared<NativeAppearanceSpecJSI>(params);
|
|
116
112
|
}
|
|
117
113
|
|
|
118
|
-
#if TARGET_OS_OSX // [TODO(macOS GH#774): on macOS don't lazy init _currentColorScheme because [
|
|
114
|
+
#if TARGET_OS_OSX // [TODO(macOS GH#774): on macOS don't lazy init _currentColorScheme because [NSApp effectiveAppearance] cannot be executed on background thread.
|
|
119
115
|
- (instancetype)init
|
|
120
116
|
{
|
|
121
117
|
if (self = [super init]) {
|
package/local-cli/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-macos",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.57",
|
|
4
4
|
"bin": "./cli.js",
|
|
5
5
|
"description": "React Native for macOS",
|
|
6
6
|
"license": "MIT",
|
|
@@ -208,10 +208,12 @@
|
|
|
208
208
|
},
|
|
209
209
|
"resolutions": {
|
|
210
210
|
"async": "^3.2.2",
|
|
211
|
-
"es5-ext": "0.10.53"
|
|
211
|
+
"es5-ext": "0.10.53",
|
|
212
|
+
"workspace-tools": "^0.18.4"
|
|
212
213
|
},
|
|
213
214
|
"_justification": {
|
|
214
215
|
"async": "Versions of async prior to 3.2.2 are vulnerable to prototype pollution",
|
|
215
|
-
"es5-ext": "Packages after 0.10.54 and at the moment up until 0.10.59 contain a protest message. A policy prevents us from using packages with protestware, therefore downgrading to the latest release without the message."
|
|
216
|
+
"es5-ext": "Packages after 0.10.54 and at the moment up until 0.10.59 contain a protest message. A policy prevents us from using packages with protestware, therefore downgrading to the latest release without the message.",
|
|
217
|
+
"workspace-tools": "Versions prior to 0.18.4 are vulnerable to command injection and prototype pollution attacks"
|
|
216
218
|
}
|
|
217
219
|
}
|
package/template/package.json
CHANGED
package/Libraries/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__tests__
|
package/ReactAndroid/.npmignore
DELETED