File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,20 +39,20 @@ function camelcase(property) {
3939
4040 // Microsoft vendor-prefixes are uniquely cased
4141 if ( property . startsWith ( '-ms-' ) ) {
42- property = property . substring ( 1 )
42+ property = property . slice ( 1 )
4343 index = property . indexOf ( '-' )
4444 }
4545
4646 let cursor = 0
4747 let result = ''
4848
4949 do {
50- result += property . substring ( cursor , index ) + property [ index + 1 ] . toUpperCase ( )
50+ result += property . slice ( cursor , index ) + property [ index + 1 ] . toUpperCase ( )
5151 cursor = index + 2
5252 index = property . indexOf ( '-' , cursor )
5353 } while ( index !== - 1 )
5454
55- return result + property . substring ( cursor )
55+ return result + property . slice ( cursor )
5656}
5757
5858function process ( node , options = { } ) {
@@ -80,7 +80,9 @@ function process(node, options = {}) {
8080 typeof object [ i ] === 'string' &&
8181 object [ i ] . endsWith ( '!important' )
8282 ) {
83- if ( typeof body [ i ] === 'string' && body [ i ] . endsWith ( '!important' ) ) object [ i ] = body [ i ]
83+ if ( typeof body [ i ] === 'string' && body [ i ] . endsWith ( '!important' ) ) {
84+ object [ i ] = body [ i ]
85+ }
8486 } else {
8587 object [ i ] = body [ i ]
8688 }
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ let objectify = require('./objectifier')
33module . exports = function processResult ( result ) {
44 if ( console && console . warn ) {
55 result . warnings ( ) . forEach ( warn => {
6- let source = warn . plugin || 'PostCSS'
7- console . warn ( source + ': ' + warn . text )
6+ console . warn ( ( warn . plugin || 'PostCSS' ) + ': ' + warn . text )
87 } )
98 }
109 return objectify ( result . root )
You can’t perform that action at this time.
0 commit comments