File tree 6 files changed +15
-42
lines changed 6 files changed +15
-42
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"dist/react-spring.es.js" : {
3
- "bundled" : 75051 ,
4
- "minified" : 36209 ,
5
- "gzipped" : 11302 ,
3
+ "bundled" : 75016 ,
4
+ "minified" : 36173 ,
5
+ "gzipped" : 11288 ,
6
6
"treeshaked" : {
7
- "rollup" : 28460 ,
8
- "webpack" : 29468
7
+ "rollup" : 28404 ,
8
+ "webpack" : 29412
9
9
}
10
10
},
11
11
"dist/react-spring.umd.js" : {
12
- "bundled" : 88356 ,
13
- "minified" : 38276 ,
14
- "gzipped" : 12756
12
+ "bundled" : 88321 ,
13
+ "minified" : 38219 ,
14
+ "gzipped" : 12739
15
15
},
16
16
"dist/NumericalSpring.cjs.js" : {
17
17
"bundled" : 33038 ,
Original file line number Diff line number Diff line change @@ -4987,21 +4987,6 @@ neo-async@^2.5.0:
4987
4987
version "2.5.0"
4988
4988
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.5.0.tgz#76b1c823130cca26acfbaccc8fbaf0a2fa33b18f"
4989
4989
4990
-
4991
- version "1.2.15"
4992
- resolved "https://registry.yarnpkg.com/nerv-shared/-/nerv-shared-1.2.15.tgz#9e7c7f3e32447fe8ae40efdd2ddc85b395797e77"
4993
-
4994
-
4995
- version "1.2.15"
4996
- resolved "https://registry.yarnpkg.com/nerv-utils/-/nerv-utils-1.2.15.tgz#e6db2dc4f9ee1b7a4030920c19ebdd6ea9d86ae9"
4997
-
4998
- nervjs@^1.2.17 :
4999
- version "1.2.17"
5000
- resolved "https://registry.yarnpkg.com/nervjs/-/nervjs-1.2.17.tgz#cf3b02bc82cccc092257ab0f684ce3a6309b53ef"
5001
- dependencies :
5002
- nerv-shared "1.2.15"
5003
- nerv-utils "1.2.15"
5004
-
5005
4990
nice-try@^1.0.4 :
5006
4991
version "1.0.4"
5007
4992
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4"
Original file line number Diff line number Diff line change 1
- import normalizeColor from '../normalize-css-color/index.js'
1
+ import { normalizeColor , colorNames } from '../normalize-css-color/index.js'
2
2
3
3
var linear = t => t
4
4
@@ -122,10 +122,7 @@ var stringShapeRegex = /[0-9\.-]+/g
122
122
// Taken from https://gist.github.com/olmokramer/82ccce673f86db7cda5e
123
123
var colorRegex = / ( # [ \d \w ] + | \w + \( (?: \d + % ? (?: , \s ) * ) { 3 } (?: \d * \. ? \d + ) ? \) ) /
124
124
// Covers color names (transparent, blue, etc.)
125
- var colorNamesRegex = new RegExp (
126
- `(${ Object . keys ( normalizeColor . colorNames ) . join ( '|' ) } )` ,
127
- 'g'
128
- )
125
+ var colorNamesRegex = new RegExp ( `(${ Object . keys ( colorNames ) . join ( '|' ) } )` , 'g' )
129
126
130
127
/**
131
128
* Supports string shapes by extracting numbers so new values can be computed,
Original file line number Diff line number Diff line change 1
- import normalizeColor from '../../normalize-css-color/index.js'
1
+ import { normalizeColor , colorNames } from '../../normalize-css-color/index.js'
2
2
3
3
var linear = t => t
4
4
@@ -122,10 +122,7 @@ var stringShapeRegex = /[0-9\.-]+/g
122
122
// Taken from https://gist.github.com/olmokramer/82ccce673f86db7cda5e
123
123
var colorRegex = / ( # [ \d \w ] + | \w + \( (?: \d + % ? (?: , \s ) * ) { 3 } (?: \d * \. ? \d + ) ? \) ) /
124
124
// Covers color names (transparent, blue, etc.)
125
- var colorNamesRegex = new RegExp (
126
- `(${ Object . keys ( normalizeColor . colorNames ) . join ( '|' ) } )` ,
127
- 'g'
128
- )
125
+ var colorNamesRegex = new RegExp ( `(${ Object . keys ( colorNames ) . join ( '|' ) } )` , 'g' )
129
126
130
127
/**
131
128
* Supports string shapes by extracting numbers so new values can be computed,
Original file line number Diff line number Diff line change 1
- export default function normalizeColor ( color ) {
1
+ export function normalizeColor ( color ) {
2
2
var match
3
3
4
4
if ( typeof color === 'number' ) {
@@ -10,7 +10,7 @@ export default function normalizeColor(color) {
10
10
if ( ( match = matchers . hex6 . exec ( color ) ) )
11
11
return parseInt ( match [ 1 ] + 'ff' , 16 ) >>> 0
12
12
13
- if ( names . hasOwnProperty ( color ) ) return names [ color ]
13
+ if ( colorNames . hasOwnProperty ( color ) ) return colorNames [ color ]
14
14
15
15
if ( ( match = matchers . rgb . exec ( color ) ) ) {
16
16
return (
@@ -166,7 +166,7 @@ function parsePercentage(str) {
166
166
return int / 100
167
167
}
168
168
169
- var names = {
169
+ export const colorNames = {
170
170
transparent : 0x00000000 ,
171
171
172
172
// http://www.w3.org/TR/css3-color/#svg-color
@@ -320,5 +320,3 @@ var names = {
320
320
yellow : 0xffff00ff ,
321
321
yellowgreen : 0x9acd32ff ,
322
322
}
323
-
324
- normalizeColor . colorNames = names
Original file line number Diff line number Diff line change @@ -3216,10 +3216,6 @@ nopt@^4.0.1:
3216
3216
abbrev "1"
3217
3217
osenv "^0.1.4"
3218
3218
3219
- normalize-css-color@^1.0.2 :
3220
- version "1.0.2"
3221
- resolved "https://registry.yarnpkg.com/normalize-css-color/-/normalize-css-color-1.0.2.tgz#02991e97cccec6623fe573afbbf0de6a1f3e9f8d"
3222
-
3223
3219
normalize-package-data@^2.3.2 :
3224
3220
version "2.4.0"
3225
3221
resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f"
You can’t perform that action at this time.
0 commit comments