Skip to content

Commit 82154d0

Browse files
committed
6.0.1 release
1 parent 6534ed1 commit 82154d0

12 files changed

Lines changed: 28 additions & 59 deletions

File tree

modules/__tests__/createPrefixer-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ describe('Static Prefixer', () => {
232232
transition: '200ms linear appearance, 100ms linear width',
233233
}
234234
const output = {
235-
WebkitTransition:
236-
'200ms linear -webkit-appearance,200ms linear appearance, 100ms linear width',
237235
MozTransition:
238236
'200ms linear -moz-appearance,200ms linear appearance, 100ms linear width',
237+
WebkitTransition:
238+
'200ms linear -webkit-appearance,200ms linear appearance, 100ms linear width',
239239
transition:
240-
'200ms linear -moz-appearance,200ms linear -webkit-appearance,200ms linear appearance, 100ms linear width',
240+
'200ms linear -ms-appearance,200ms linear -moz-appearance,200ms linear -webkit-appearance,200ms linear appearance, 100ms linear width',
241241
}
242242
expect(prefix(input)).toEqual(output)
243243
expect(prefix(input)).toEqual(output)

modules/generator/generatePrefixMap.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function generatePrefixMap(browserList: Object): Object {
7373
filterAndRemoveIfEmpty(
7474
prefixMap,
7575
flexPropsIE[i],
76-
prefix => prefix !== 'ms' && prefix !== 'Moz'
76+
(prefix) => prefix !== 'ms' && prefix !== 'Moz'
7777
)
7878
}
7979

@@ -82,11 +82,15 @@ export default function generatePrefixMap(browserList: Object): Object {
8282
filterAndRemoveIfEmpty(
8383
prefixMap,
8484
'transition',
85-
prefix => prefix !== 'Moz' && prefix !== 'Webkit'
85+
(prefix) => prefix !== 'Moz' && prefix !== 'Webkit'
8686
)
8787

8888
// remove WebkitFlexDirection as it does not exist
89-
filterAndRemoveIfEmpty(prefixMap, 'flexDirection', prefix => prefix !== 'Moz')
89+
filterAndRemoveIfEmpty(
90+
prefixMap,
91+
'flexDirection',
92+
(prefix) => prefix !== 'Moz'
93+
)
9094

9195
return prefixMap
9296
}

modules/generator/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function generateFile(
1515
compatibility?: boolean
1616
) {
1717
const pluginImports = pluginList
18-
.map(plugin => generateImportString(plugin, compatibility))
18+
.map((plugin) => generateImportString(plugin, compatibility))
1919
.join('\n')
2020

2121
const moduleExporter = compatibility ? 'module.exports = ' : 'export default'
@@ -51,7 +51,7 @@ function saveFile(fileContent: string, path: string): void {
5151
const fs = require('fs')
5252
/* eslint-enable global-require */
5353

54-
fs.writeFile(path, fileContent, err => {
54+
fs.writeFile(path, fileContent, (err) => {
5555
if (err) {
5656
throw err
5757
}

modules/plugins/calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export default function calc(property: string, value: any): ?Array<string> {
99
!isPrefixedValue(value) &&
1010
value.indexOf('calc(') > -1
1111
) {
12-
return prefixes.map(prefix => value.replace(/calc\(/g, `${prefix}calc(`))
12+
return prefixes.map((prefix) => value.replace(/calc\(/g, `${prefix}calc(`))
1313
}
1414
}

modules/plugins/crossFade.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function crossFade(
1313
!isPrefixedValue(value) &&
1414
value.indexOf('cross-fade(') > -1
1515
) {
16-
return prefixes.map(prefix =>
16+
return prefixes.map((prefix) =>
1717
value.replace(/cross-fade\(/g, `${prefix}cross-fade(`)
1818
)
1919
}

modules/plugins/cursor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ const values = {
1010

1111
export default function cursor(property: string, value: any): ?Array<string> {
1212
if (property === 'cursor' && values.hasOwnProperty(value)) {
13-
return prefixes.map(prefix => prefix + value)
13+
return prefixes.map((prefix) => prefix + value)
1414
}
1515
}

modules/plugins/filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function filter(property: string, value: any): ?Array<string> {
1010
!isPrefixedValue(value) &&
1111
value.indexOf('filter(') > -1
1212
) {
13-
return prefixes.map(prefix =>
13+
return prefixes.map((prefix) =>
1414
value.replace(/filter\(/g, `${prefix}filter(`)
1515
)
1616
}

modules/plugins/gradient.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export default function gradient(property: string, value: any): ?Array<string> {
1010
!isPrefixedValue(value) &&
1111
values.test(value)
1212
) {
13-
return prefixes.map(prefix => value.replace(values, grad => prefix + grad))
13+
return prefixes.map((prefix) =>
14+
value.replace(values, (grad) => prefix + grad)
15+
)
1416
}
1517
}

modules/plugins/imageSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function imageSet(property: string, value: any): ?Array<string> {
1010
!isPrefixedValue(value) &&
1111
value.indexOf('image-set(') > -1
1212
) {
13-
return prefixes.map(prefix =>
13+
return prefixes.map((prefix) =>
1414
value.replace(/image-set\(/g, `${prefix}image-set(`)
1515
)
1616
}

modules/plugins/transition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function transition(
6868
// if the property is already prefixed
6969
const webkitOutput = outputValue
7070
.split(/,(?![^()]*(?:\([^()]*\))?\))/g)
71-
.filter(val => !/-moz-|-ms-/.test(val))
71+
.filter((val) => !/-moz-|-ms-/.test(val))
7272
.join(',')
7373

7474
if (property.indexOf('Webkit') > -1) {
@@ -77,7 +77,7 @@ export default function transition(
7777

7878
const mozOutput = outputValue
7979
.split(/,(?![^()]*(?:\([^()]*\))?\))/g)
80-
.filter(val => !/-webkit-|-ms-/.test(val))
80+
.filter((val) => !/-webkit-|-ms-/.test(val))
8181
.join(',')
8282

8383
if (property.indexOf('Moz') > -1) {

0 commit comments

Comments
 (0)