File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ uplinks:
15
15
maxSockets : 40
16
16
maxFreeSockets : 10
17
17
packages :
18
+ # Get @react-native/normalize-color from npm registry, since its used in deprecated-react-native-prop-types package
19
+ ' @react-native/normalize-color ' :
20
+ access : $all
21
+ publish : $authenticated
22
+ proxy : npmjs
18
23
# Group and isolate all local packages, avoid being proxy from outside
19
24
' @react-native/* ' :
20
25
access : $all
Original file line number Diff line number Diff line change 13
13
const { OS } = require ( '../../Utilities/Platform' ) ;
14
14
const normalizeColor = require ( '../normalizeColor' ) ;
15
15
16
- it ( 'forwards calls to @react-native/normalize-color ' , ( ) => {
17
- jest . resetModules ( ) . mock ( '@react-native/normalize-color ' , ( ) => jest . fn ( ) ) ;
16
+ it ( 'forwards calls to @react-native/normalize-colors ' , ( ) => {
17
+ jest . resetModules ( ) . mock ( '@react-native/normalize-colors ' , ( ) => jest . fn ( ) ) ;
18
18
19
19
expect ( require ( '../normalizeColor' ) ( '#abc' ) ) . not . toBe ( null ) ;
20
- expect ( require ( '@react-native/normalize-color ' ) ) . toBeCalled ( ) ;
20
+ expect ( require ( '@react-native/normalize-colors ' ) ) . toBeCalled ( ) ;
21
21
} ) ;
22
22
23
23
describe ( 'iOS' , ( ) => {
Original file line number Diff line number Diff line change 13
13
import type { ProcessedColorValue } from './processColor' ;
14
14
import type { ColorValue } from './StyleSheet' ;
15
15
16
- import _normalizeColor from '@react-native/normalize-color ' ;
16
+ import _normalizeColor from '@react-native/normalize-colors ' ;
17
17
18
18
function normalizeColor (
19
19
color : ?( ColorValue | ProcessedColorValue ) ,
Original file line number Diff line number Diff line change 114
114
"@react-native-community/cli-platform-ios" : " 10.0.0-alpha.3" ,
115
115
"@react-native/assets-registry" : " ^0.72.0" ,
116
116
"@react-native/gradle-plugin" : " ^0.72.1" ,
117
- "@react-native/normalize-color" : " 2.1.0" ,
118
117
"@react-native/polyfills" : " 2.0.0" ,
118
+ "@react-native/normalize-colors" : " ^0.72.0" ,
119
119
"abort-controller" : " ^3.0.0" ,
120
120
"anser" : " ^1.4.9" ,
121
121
"base64-js" : " ^1.1.2" ,
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @react-native/normalize-color " ,
3
- "version" : " 2.1 .0" ,
2
+ "name" : " @react-native/normalize-colors " ,
3
+ "version" : " 0.72 .0" ,
4
4
"description" : " Color normalization for React Native." ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change 2252
2252
prompts "^2.4.0"
2253
2253
semver "^6.3.0"
2254
2254
2255
+ " @react-native/normalize-color@* " :
2256
+ version "2.1.0"
2257
+ resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.1.0.tgz#939b87a9849e81687d3640c5efa2a486ac266f91"
2258
+ integrity sha512-Z1jQI2NpdFJCVgpY+8Dq/Bt3d+YUi1928Q+/CZm/oh66fzM0RUl54vvuXlPJKybH4pdCZey1eDTPaLHkMPNgWA==
2259
+
2255
2260
" @reactions/component@^2.0.2 " :
2256
2261
version "2.0.2"
2257
2262
resolved "https://registry.yarnpkg.com/@reactions/component/-/component-2.0.2.tgz#40f8c1c2c37baabe57a0c944edb9310dc1ec6642"
You can’t perform that action at this time.
0 commit comments